Compare commits

..

21 Commits

Author SHA1 Message Date
artrejo
423481e90a Merge branch 'master' of https://github.com/Azure/cosmos-explorer into users/artrejo/test 2022-01-26 13:37:24 -08:00
artrejo
8645ed3898 Fix build and move allowedParentOrigins back to ConfigContext 2022-01-24 12:33:59 -08:00
artrejo
b947ed6161 Use updateConfigContext when updating from external configs 2022-01-24 12:08:52 -08:00
artrejo
dc543b5ae3 Make allowedEndpoints a read-only array 2022-01-24 11:08:37 -08:00
artrejo
54cd7a32d8 Log errors 2022-01-21 18:20:22 -08:00
artrejo
16bb03c47c Add missing endpoints 2022-01-21 17:45:47 -08:00
artrejo
e9b168be6d Fix strict build 2022-01-21 17:05:37 -08:00
artrejo
4b01648168 fix e2e tests 2022-01-21 16:54:31 -08:00
artrejo
b67078a310 format 2022-01-21 08:22:32 -08:00
artrejo
3672da1e1d Add allowed endpoints to make unit tests pass 2022-01-21 08:21:47 -08:00
artrejo
899d7459c1 Fix Juno and Phoenix validations 2022-01-21 08:20:29 -08:00
artrejo
1b1371381e fix build .... 2022-01-20 18:32:16 -08:00
artrejo
3e7c5f4b14 Revert changes to package-lock 2022-01-20 18:21:28 -08:00
artrejo
0fc5f070cc build cont .... 2022-01-20 18:07:42 -08:00
artrejo
0ffebc14ca Format 2022-01-20 18:02:41 -08:00
artrejo
1203427537 Fix build cont... 2022-01-20 18:00:24 -08:00
artrejo
6c9176f4ba Firx build cont. 2022-01-20 17:59:56 -08:00
artrejo
3ef992c1af Fix build cont. 2022-01-20 17:53:46 -08:00
artrejo
4af14bc310 Fix build issues 2022-01-20 17:50:06 -08:00
artrejo
ed3fb9e09a Merge branch 'master' of https://github.com/Azure/cosmos-explorer into users/artrejo/MSRC69675 2022-01-20 16:44:48 -08:00
artrejo
167c55a24a Validate endpoints from feature flags 2022-01-20 16:33:25 -08:00
2 changed files with 3 additions and 3 deletions

View File

@@ -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();
});

View File

@@ -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">