Skip to content

Commit

Permalink
MLPAB-2358 cover back links
Browse files Browse the repository at this point in the history
  • Loading branch information
acsauk committed Sep 17, 2024
1 parent b758898 commit 70dbb97
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions cypress/e2e/navigation.cy.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
describe('High level navigation', () => {
describe('back link', () => {
it('navigates to the previous page', () => {
cy.visit('/fixtures?redirect=/task-list&progress=provideYourDetails')
cy.contains('a', 'Choose your attorneys').click()

cy.url().should('contain', '/choose-attorneys-guidance')
cy.contains('button', 'Continue').click()

cy.url().should('contain', '/choose-attorneys')
cy.contains('a', 'Back').click()

cy.url().should('contain', '/choose-attorneys-guidance')
})
})
})

0 comments on commit 70dbb97

Please sign in to comment.