mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-29 22:02:01 +00:00
Compare commits
21 Commits
fix_a11y_D
...
users/artr
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
423481e90a | ||
|
|
8645ed3898 | ||
|
|
b947ed6161 | ||
|
|
dc543b5ae3 | ||
|
|
54cd7a32d8 | ||
|
|
16bb03c47c | ||
|
|
e9b168be6d | ||
|
|
4b01648168 | ||
|
|
b67078a310 | ||
|
|
3672da1e1d | ||
|
|
899d7459c1 | ||
|
|
1b1371381e | ||
|
|
3e7c5f4b14 | ||
|
|
0fc5f070cc | ||
|
|
0ffebc14ca | ||
|
|
1203427537 | ||
|
|
6c9176f4ba | ||
|
|
3ef992c1af | ||
|
|
4af14bc310 | ||
|
|
ed3fb9e09a | ||
|
|
167c55a24a |
@@ -107,11 +107,11 @@ describe("New Vertex Component", () => {
|
||||
it("should call onTypeChange method on type dropdown change", () => {
|
||||
const DOWN_ARROW = { keyCode: 40 };
|
||||
const onTypeChange = jest.fn();
|
||||
const dropdown = screen.getByRole("combobox");
|
||||
const dropdown = screen.getByRole("listbox");
|
||||
dropdown.onclick = onTypeChange();
|
||||
dropdown.onkeydown = onTypeChange();
|
||||
|
||||
fireEvent.keyDown(screen.getByRole("combobox"), DOWN_ARROW);
|
||||
fireEvent.keyDown(screen.getByRole("listbox"), DOWN_ARROW);
|
||||
fireEvent.click(screen.getByText(/number/));
|
||||
expect(onTypeChange).toHaveBeenCalled();
|
||||
});
|
||||
|
||||
@@ -165,6 +165,7 @@ export const NewVertexComponent: FunctionComponent<INewVertexComponentProps> = (
|
||||
</div>
|
||||
<div>
|
||||
<Dropdown
|
||||
role="listbox"
|
||||
placeholder="Select an option"
|
||||
defaultSelectedKey={data.values[0].type}
|
||||
style={{ width: 100 }}
|
||||
@@ -173,7 +174,6 @@ export const NewVertexComponent: FunctionComponent<INewVertexComponentProps> = (
|
||||
text: type,
|
||||
}))}
|
||||
onChange={(_, options: IDropdownOption) => onTypeChange(options.key.toString(), index)}
|
||||
ariaLabel="Select an option"
|
||||
/>
|
||||
</div>
|
||||
<div className="actionCol">
|
||||
|
||||
Reference in New Issue
Block a user