Skip to content

Commit

Permalink
UIIN-2514 Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
BogdanDenis committed Nov 8, 2023
1 parent 834197c commit bd00baa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/InstancesList/InstancesList.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ describe('InstancesList', () => {
renderInstancesList({ segment: 'instances' });

fireEvent.click(screen.getByRole('button', { name: 'Advanced search' }));
indexRef(screen.getAllByRole('textbox', { name: 'Search for' })[0], {
fireEvent.change(screen.getAllByRole('textbox', { name: 'Search for' })[0], {
target: { value: 'test2' }
});
const advancedSearchSubmit = screen.getAllByRole('button', { name: 'Search' })[0];
Expand All @@ -566,7 +566,7 @@ describe('InstancesList', () => {
renderInstancesList({ segment: 'instances' });

fireEvent.click(screen.getByRole('button', { name: 'Advanced search' }));
indexRef(screen.getAllByRole('textbox', { name: 'Search for' })[0], {
fireEvent.change(screen.getAllByRole('textbox', { name: 'Search for' })[0], {
target: { value: 'test' }
});

Expand All @@ -582,7 +582,7 @@ describe('InstancesList', () => {
it('should show Save Holdings UUIDs button', () => {
renderInstancesList({ segment: 'holdings' });

indexRef(screen.getByRole('combobox'), {
fireEvent.change(screen.getByRole('combobox'), {
target: { value: 'all' }
});

Expand Down

0 comments on commit bd00baa

Please sign in to comment.