Fixed RepoUrlPickerHost having incorrect testid in test, data-testid was specified (but did nothing) and the test expected the hardcoded 'select' testid

Signed-off-by: Simon Edström <simon.edstrom@scania.com>
This commit is contained in:
Simon Edström
2024-07-03 14:25:21 +02:00
parent f0426dc9f5
commit ece2dae403
@@ -64,7 +64,7 @@ describe('RepoUrlPickerHostField', () => {
</TestApiProvider>,
);
fireEvent.mouseDown(getByTestId('select'));
fireEvent.mouseDown(getByTestId('host-select'));
expect(getByText('gitlab.com')).toBeInTheDocument();
const listbox = within(getByRole('combobox'));
@@ -93,7 +93,7 @@ describe('RepoUrlPickerHostField', () => {
</TestApiProvider>,
);
fireEvent.mouseDown(getByTestId('select'));
fireEvent.mouseDown(getByTestId('host-select'));
expect(getByText('gitlab.com')).toBeInTheDocument();
const listbox = within(getByRole('combobox'));