Skip to content

Commit

Permalink
cypress: change highlight test
Browse files Browse the repository at this point in the history
  • Loading branch information
abhidg committed Apr 27, 2022
1 parent a4a738e commit 58d15f9
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,18 @@ describe('View case', function () {
cy.visit('/cases');
cy.wait('@getCases');

cy.get('input[id="search-field"]').type('Andorrean{enter}');
cy.get('input[id="search-field"]').type('France{enter}');

cy.get('body').then(($body) => {
if ($body.find('.iubenda-cs-accept-btn').length) {
cy.get('.iubenda-cs-accept-btn').click();
}
});

cy.contains('France').click();
cy.contains('Andorrean')
cy.contains('France')
.should('have.attr', 'class')
.and('equal', 'highlighted');
cy.get('.highlighted').children('mark').contains('Andorrean');
cy.get('.highlighted').children('mark').contains('France');
});

// View of a full case is covered in the curator test.
Expand Down

0 comments on commit 58d15f9

Please sign in to comment.