Merge pull request #25382 from simonedstrom96/add-test-id-to-select-component-input-props

Add testid to Select component
This commit is contained in:
Camila Belo
2024-07-03 15:10:39 +02:00
committed by GitHub
4 changed files with 18 additions and 3 deletions
@@ -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'));