X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/7437e0b4a85480fc6ca977488a5bb501e7fa1e3e..eaf76a93400029d3d788264b829bf878aad1f661:/cypress/integration/search.spec.js diff --git a/cypress/integration/search.spec.js b/cypress/integration/search.spec.js index 06131a2ef0..8806d12d48 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'); });