Skip to content

Commit

Permalink
Add e2e test for modification
Browse files Browse the repository at this point in the history
  • Loading branch information
leung018 committed Jun 10, 2024
1 parent bd21e1e commit 49349e9
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions cypress/e2e/spec.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,17 @@ describe('End to end tests', () => {
cy.contains('Valid Question Set Name')
})

it('should able to modify existing question set', () => {
createQuestionSet({ cy })

cy.contains('Edit').click()
cy.contains('Question Set Name').type('Edited name')
cy.contains('Save').click()

assertIsInHomePage(cy)
cy.contains('Edited name')
})

it('should allow navigate to home page after submitted quiz', () => {
createQuestionSet({ cy })

Expand Down

0 comments on commit 49349e9

Please sign in to comment.