X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/eb7235a7a2cf4c6b6f52b42ac8313de388235aa9..87fff7ceda76e813646e3fe1c2c41bb8ad567143:/cypress/integration/search.spec.js diff --git a/cypress/integration/search.spec.js b/cypress/integration/search.spec.js index 60292aa5..8806d12d 100644 --- a/cypress/integration/search.spec.js +++ b/cypress/integration/search.spec.js @@ -46,6 +46,7 @@ describe('Search tests', function() { cy.createCollection(adminUser.token, { name: colName, owner_uuid: activeUser.user.uuid, + preserve_version: true, manifest_text: ". 37b51d194a7513e45b56f6524f2d51f2+3 0:3:bar\n"}) .as('originalVersion').then(function() { // Change the file name to create a new version. @@ -71,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'); });