From bdb9c6c7ae621d084276d65f090a48cf0d6e3797 Mon Sep 17 00:00:00 2001 From: Louise Davies Date: Wed, 24 Jul 2024 09:52:58 +0100 Subject: [PATCH] Fix results amount assertion in datafileSearch tests - don't know what changed to cause this, likely backend changes --- .../cypress/e2e/search/datafileSearch.cy.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/datagateway-search/cypress/e2e/search/datafileSearch.cy.ts b/packages/datagateway-search/cypress/e2e/search/datafileSearch.cy.ts index 57c9acfd6..0087af199 100644 --- a/packages/datagateway-search/cypress/e2e/search/datafileSearch.cy.ts +++ b/packages/datagateway-search/cypress/e2e/search/datafileSearch.cy.ts @@ -153,7 +153,7 @@ describe('Datafile search tab', () => { // click on search button cy.findByRole('button', { name: 'Submit search' }).click(); - cy.findAllByRole('row').should('have.length', 27); + cy.findAllByRole('row').should('have.length', 24); // open the filter panel, then select some filters cy.findByRole('button', { name: 'Toggle Format filter panel' }).click(); @@ -261,7 +261,7 @@ describe('Datafile search tab', () => { cy.findByRole('button', { name: 'Apply' }).click(); - cy.findAllByRole('row').should('have.length', 27); + cy.findAllByRole('row').should('have.length', 24); // filter chips should not exist anymore cy.findByTestId('tabpanel-datafile').within(() => { @@ -394,7 +394,7 @@ describe('Datafile search tab', () => { // click on search button cy.findByRole('button', { name: 'Submit search' }).click(); - cy.findAllByRole('row').should('have.length', 27); + cy.findAllByRole('row').should('have.length', 24); cy.findByRole('button', { name: 'Toggle Parameter name filter panel',