-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MLPAB-2228 Make back and return to task list consistent for your deta…
…ils task (#1380)
- Loading branch information
Showing
31 changed files
with
369 additions
and
358 deletions.
There are no files selected for viewing
108 changes: 54 additions & 54 deletions
108
cypress/e2e/certificate-provider/confirm-your-details.cy.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,82 +1,82 @@ | ||
describe('Confirm your details', () => { | ||
describe('shows details for', () => { | ||
it('lay certificate providers', () => { | ||
cy.visit('/fixtures/certificate-provider?redirect=/enter-date-of-birth'); | ||
describe('shows details for', () => { | ||
it('lay certificate providers', () => { | ||
cy.visit('/fixtures/certificate-provider?redirect=/enter-date-of-birth'); | ||
|
||
cy.get('#f-date-of-birth').type('1'); | ||
cy.get('#f-date-of-birth-month').type('2'); | ||
cy.get('#f-date-of-birth-year').type('1990'); | ||
cy.get('#f-date-of-birth').type('1'); | ||
cy.get('#f-date-of-birth-month').type('2'); | ||
cy.get('#f-date-of-birth-year').type('1990'); | ||
|
||
cy.contains('button', 'Save and continue').click(); | ||
cy.contains('button', 'Save and continue').click(); | ||
|
||
cy.url().should('contain', '/your-preferred-language'); | ||
cy.checkA11yApp(); | ||
cy.url().should('contain', '/your-preferred-language'); | ||
cy.checkA11yApp(); | ||
|
||
cy.get('[name="language-preference"]').check('cy', { force: true }) | ||
cy.get('[name="language-preference"]').check('cy', { force: true }) | ||
|
||
cy.contains('button', 'Save and continue').click() | ||
cy.contains('button', 'Save and continue').click() | ||
|
||
cy.url().should('contain', '/confirm-your-details'); | ||
cy.checkA11yApp(); | ||
cy.url().should('contain', '/confirm-your-details'); | ||
cy.checkA11yApp(); | ||
|
||
cy.contains('1 February 1990'); | ||
cy.contains('Charlie Cooper'); | ||
cy.contains('dt', 'Address').parent().contains('5 RICHMOND PLACE') | ||
cy.contains('07700 900 000'); | ||
cy.contains('1 February 1990'); | ||
cy.contains('Charlie Cooper'); | ||
cy.contains('dt', 'Address').parent().contains('5 RICHMOND PLACE') | ||
cy.contains('07700 900 000'); | ||
|
||
cy.contains('button', 'Continue').click(); | ||
cy.url().should('contain', '/your-role'); | ||
}); | ||
cy.contains('button', 'Continue').click(); | ||
cy.url().should('contain', '/your-role'); | ||
}); | ||
|
||
it('professional certificate providers', () => { | ||
cy.visit('/fixtures/certificate-provider?redirect=/enter-date-of-birth&relationship=professional'); | ||
it('professional certificate providers', () => { | ||
cy.visit('/fixtures/certificate-provider?redirect=/enter-date-of-birth&relationship=professional'); | ||
|
||
cy.get('#f-date-of-birth').type('1'); | ||
cy.get('#f-date-of-birth-month').type('2'); | ||
cy.get('#f-date-of-birth-year').type('1990'); | ||
cy.get('#f-date-of-birth').type('1'); | ||
cy.get('#f-date-of-birth-month').type('2'); | ||
cy.get('#f-date-of-birth-year').type('1990'); | ||
|
||
cy.contains('button', 'Save and continue').click(); | ||
cy.contains('button', 'Save and continue').click(); | ||
|
||
cy.url().should('contain', '/what-is-your-home-address'); | ||
cy.checkA11yApp(); | ||
cy.url().should('contain', '/what-is-your-home-address'); | ||
cy.checkA11yApp(); | ||
|
||
cy.contains('a', 'Enter address manually').click() | ||
cy.contains('a', 'Enter address manually').click() | ||
|
||
cy.url().should('contain', '/what-is-your-home-address'); | ||
cy.checkA11yApp(); | ||
cy.url().should('contain', '/what-is-your-home-address'); | ||
cy.checkA11yApp(); | ||
|
||
cy.get('#f-address-line-1').type('6 RICHMOND PLACE'); | ||
cy.get('#f-address-town').type('Birmingham'); | ||
cy.get('#f-address-postcode').type('B14 7ED'); | ||
cy.get('#f-address-line-1').type('6 RICHMOND PLACE'); | ||
cy.get('#f-address-town').type('Birmingham'); | ||
cy.get('#f-address-postcode').type('B14 7ED'); | ||
|
||
cy.contains('button', 'Continue').click(); | ||
cy.contains('button', 'Save and continue').click(); | ||
|
||
cy.url().should('contain', '/your-preferred-language'); | ||
cy.url().should('contain', '/your-preferred-language'); | ||
|
||
cy.get('[name="language-preference"]').check('cy', { force: true }) | ||
cy.get('[name="language-preference"]').check('cy', { force: true }) | ||
|
||
cy.contains('button', 'Save and continue').click() | ||
cy.contains('button', 'Save and continue').click() | ||
|
||
cy.url().should('contain', '/confirm-your-details'); | ||
cy.checkA11yApp(); | ||
cy.url().should('contain', '/confirm-your-details'); | ||
cy.checkA11yApp(); | ||
|
||
cy.contains('1 February 1990'); | ||
cy.contains('dt', 'Home address').parent().contains('6 RICHMOND PLACE') | ||
cy.contains('1 February 1990'); | ||
cy.contains('dt', 'Home address').parent().contains('6 RICHMOND PLACE') | ||
|
||
cy.contains('dt', 'Work address').parent().contains('5 RICHMOND PLACE') | ||
cy.contains('Charlie Cooper'); | ||
cy.contains('5 RICHMOND PLACE'); | ||
cy.contains('07700 900 000'); | ||
cy.contains('dt', 'Work address').parent().contains('5 RICHMOND PLACE') | ||
cy.contains('Charlie Cooper'); | ||
cy.contains('5 RICHMOND PLACE'); | ||
cy.contains('07700 900 000'); | ||
|
||
cy.contains('button', 'Continue').click(); | ||
cy.url().should('contain', '/your-role'); | ||
}); | ||
cy.contains('button', 'Continue').click(); | ||
cy.url().should('contain', '/your-role'); | ||
}); | ||
|
||
it('shows contact number when donor acting on paper', () => { | ||
cy.visit('/fixtures/certificate-provider?redirect=/confirm-your-details&donorChannel=paper'); | ||
it('shows contact number when donor acting on paper', () => { | ||
cy.visit('/fixtures/certificate-provider?redirect=/confirm-your-details&donorChannel=paper'); | ||
|
||
cy.contains('Contact number').should('exist'); | ||
cy.contains('Mobile number').should('not.exist'); | ||
cy.contains('Contact number').should('exist'); | ||
cy.contains('Mobile number').should('not.exist'); | ||
}) | ||
}) | ||
}) | ||
}); |
2 changes: 1 addition & 1 deletion
2
cypress/e2e/certificate-provider/what-is-your-home-address.cy.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.