From bd00baaf150d74f5712202013c4b81d3fa6c170d Mon Sep 17 00:00:00 2001 From: Denys Bohdan Date: Wed, 8 Nov 2023 11:18:29 +0100 Subject: [PATCH] UIIN-2514 Fix tests --- src/components/InstancesList/InstancesList.test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/InstancesList/InstancesList.test.js b/src/components/InstancesList/InstancesList.test.js index 774b31732..9e5914712 100644 --- a/src/components/InstancesList/InstancesList.test.js +++ b/src/components/InstancesList/InstancesList.test.js @@ -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]; @@ -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' } }); @@ -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' } });