Skip to content

Commit

Permalink
Improve test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
wlsf82 committed Jun 22, 2024
1 parent cf0a6bb commit 83ddca4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cypress/e2e/checklist.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@ describe('Cypress Skills Checklist', () => {
}
})

context('Perncentages', () => {
it('checking one checkbox changes the percentage from zero to something else', () => {
context('Footer', () => {
it('checking one checkbox changes the counter from zero to one', () => {
cy.contains('footer', '0 /').should('be.visible')
cy.contains('footer', '0%').should('be.visible')

cy.get('main input[type="checkbox"]').first().check()

cy.contains('footer', '%)').should('be.visible')
cy.contains('footer', '1 /').should('be.visible')
cy.contains('footer', '0%').should('not.exist')
})

Expand Down

0 comments on commit 83ddca4

Please sign in to comment.