Skip to content

Commit

Permalink
temp: test workaround for apparent paragon bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ArturGaspar committed Jul 29, 2024
1 parent 71f21f4 commit 7bb2dfe
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/search-modal/SearchUI.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -487,14 +487,15 @@ describe('<SearchUI />', () => {
});

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(); });
Expand Down

0 comments on commit 7bb2dfe

Please sign in to comment.