X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/09a02c42b441f2191641649e5193ea0a39a35e58..261201611113224f4a61b3979f6cd9992c4aa6c6:/cypress/integration/search.spec.js diff --git a/cypress/integration/search.spec.js b/cypress/integration/search.spec.js index 06131a2e..8806d12d 100644 --- a/cypress/integration/search.spec.js +++ b/cypress/integration/search.spec.js @@ -72,11 +72,11 @@ describe('Search tests', function() { cy.loginAs(activeUser); const searchQuery = `${colName} type:arvados#collection`; // Search for only collection's current version - cy.visit(`/search-results?q=${encodeURIComponent(searchQuery)}`); + cy.doSearch(`${searchQuery}`); cy.get('[data-cy=search-results]').should('contain', 'head version'); cy.get('[data-cy=search-results]').should('not.contain', 'version 1'); // ...and then, include old versions. - cy.visit(`/search-results?q=${encodeURIComponent(searchQuery + ' is:pastVersion')}`); + cy.doSearch(`${searchQuery} is:pastVersion`); cy.get('[data-cy=search-results]').should('contain', 'head version'); cy.get('[data-cy=search-results]').should('contain', 'version 1'); });