Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas@di-pentima.com.ar>
// Search for only collection's current version
cy.visit(`/search-results?q=${encodeURIComponent(searchQuery)}`);
cy.get('[data-cy=search-results]').should('contain', 'head version');
// 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');
// ...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
});
});
});
\ No newline at end of file