Skip to content

Commit

Permalink
Add e2e test for instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
ajuvonen committed Mar 19, 2024
1 parent 8da088c commit 7447035
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cypress/e2e/schedule.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,12 @@ describe('Schedule tests', () => {
cy.get('.training-card__rating .v-selection-control:nth-child(4) i').should('have.class', 'mdi-star-outline');
cy.get('.training-card__rating .v-selection-control:nth-child(5) i').should('have.class', 'mdi-star-outline');
});

it('displays instructions', () => {
cy.addTraining();
cy.get('.training-card__more-button').click();
cy.get('.training-card__instructions').should('have.text', 'Take it easy');
cy.get('.training-card__instructions__close-button').click();
cy.get('.training-card__instructions').should('not.exist');
});
});

0 comments on commit 7447035

Please sign in to comment.