X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/9ea56060efd17410075fc213f347867e51955224..f911ca4c0128fe80259cdbc7061d89386f5f55c0:/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'); });