From 7bb2dfe385bcf7f2af4e36a58145794b7da7ace6 Mon Sep 17 00:00:00 2001 From: Artur Gaspar Date: Mon, 29 Jul 2024 11:29:54 -0300 Subject: [PATCH] temp: test workaround for apparent paragon bug --- src/search-modal/SearchUI.test.jsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/search-modal/SearchUI.test.jsx b/src/search-modal/SearchUI.test.jsx index c653807dfb..99f7eaf5c2 100644 --- a/src/search-modal/SearchUI.test.jsx +++ b/src/search-modal/SearchUI.test.jsx @@ -487,14 +487,15 @@ describe('', () => { }); it('can do a keyword search of the tag options', async () => { - const { getByRole, getByLabelText, queryByLabelText } = rendered; + const { getByRole, getByLabelText, getByPlaceholderText, queryByLabelText } = rendered; // Now open the filters menu: fireEvent.click(getByRole('button', { name: 'Tags' }), {}); // The dropdown menu in this case doesn't have a role; let's just assume it's displayed. const expandButtonLabel = /Expand to show child tags of "ESDC Skills and Competencies"/i; await waitFor(() => { expect(getByLabelText(expandButtonLabel)).toBeInTheDocument(); }); - const input = getByLabelText('Search tags'); + // const input = getByLabelText('Search tags'); + const input = getByPlaceholderText('Search tags'); fireEvent.change(input, { target: { value: 'Lightcast' } }); await waitFor(() => { expect(queryByLabelText(/^ESDC Skills and Competencies/i)).toBeNull(); });