X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/7437e0b4a85480fc6ca977488a5bb501e7fa1e3e..207429c4a8863bce7e53082179e3e3b78c67b073:/cypress/integration/search.spec.js?ds=sidebyside 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'); });