Skip to content

Commit

Permalink
fix: false positive test 'notSearchable' test (#3473)
Browse files Browse the repository at this point in the history
  • Loading branch information
fhennig authored Dec 19, 2024
1 parent e1cd4e0 commit 861dc32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions website/src/components/SearchPage/SearchFullUI.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,9 @@ describe('SearchFullUI', () => {
it('should not render the form with fields with flag notSearchable', () => {
renderSearchFullUI({
searchFormFilters: [
...defaultSearchFormFilters,
{
name: 'NotSearchable',
label: 'Not searchable',
type: 'string',
autocomplete: false,
notSearchable: true,
Expand All @@ -180,7 +180,7 @@ describe('SearchFullUI', () => {
});

expect(screen.getByLabelText('Accession')).toBeInTheDocument();
expect(screen.queryByLabelText('NotSearchable')).not.toBeInTheDocument();
expect(screen.queryByLabelText('Not searchable')).not.toBeInTheDocument();
});

it('should display timestamp field', () => {
Expand Down

0 comments on commit 861dc32

Please sign in to comment.