X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/98f76da8dcb959f618f7607ea1c1f5c8a6b09523..09a02c42b441f2191641649e5193ea0a39a35e58:/cypress/integration/search.spec.js?ds=sidebyside diff --git a/cypress/integration/search.spec.js b/cypress/integration/search.spec.js index 05c345c9a8..06131a2ef0 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. @@ -73,11 +74,11 @@ describe('Search tests', function() { // Search for only collection's current version cy.visit(`/search-results?q=${encodeURIComponent(searchQuery)}`); cy.get('[data-cy=search-results]').should('contain', 'head version'); - cy.get('[data-cy=search-results]').should('not.contain', 'old 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.get('[data-cy=search-results]').should('contain', 'head version'); - cy.get('[data-cy=search-results]').should('contain', 'old version'); + cy.get('[data-cy=search-results]').should('contain', 'version 1'); }); }); }); \ No newline at end of file