13494: Fixes another integration test check.
[arvados-workbench2.git] / cypress / integration / search.spec.js
index 0fba64cdffec01221c488a7b0c94f92d65d5c03c..60292aa50e3edfb927605f1346a126b984420700 100644 (file)
@@ -72,12 +72,12 @@ describe('Search tests', function() {
             const searchQuery = `${colName} type:arvados#collection`;
             // Search for only collection's current version
             cy.visit(`/search-results?q=${encodeURIComponent(searchQuery)}`);
-            cy.get('[data-cy=search-results]').should('contain', 'current');
-            cy.get('[data-cy=search-results]').should('not.contain', 'old version');
+            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.get('[data-cy=search-results]').should('contain', 'current');
-            cy.get('[data-cy=search-results]').should('contain', 'old version');
+            cy.get('[data-cy=search-results]').should('contain', 'head version');
+            cy.get('[data-cy=search-results]').should('contain', 'version 1');
         });
     });
 });
\ No newline at end of file