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:
@@ -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'));
|
||||
|
||||
Reference in New Issue
Block a user