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.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.