13494: Fixes another integration test check.
authorLucas Di Pentima <lucas@di-pentima.com.ar>
Thu, 19 Nov 2020 16:13:06 +0000 (13:13 -0300)
committerLucas Di Pentima <lucas@di-pentima.com.ar>
Thu, 19 Nov 2020 16:13:06 +0000 (13:13 -0300)
Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas@di-pentima.com.ar>

cypress/integration/search.spec.js

index 05c345c9a8629ecc06f6683d6c9135e5d48c80b5..60292aa50e3edfb927605f1346a126b984420700 100644 (file)
@@ -73,11 +73,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