-
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.
- Loading branch information
Showing
39 changed files
with
1,900 additions
and
1,047 deletions.
There are no files selected for viewing
49 changes: 49 additions & 0 deletions
49
cypress/e2e/certificate-provider/choose-not-to-be-a-certificate-provider.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 |
---|---|---|
@@ -0,0 +1,49 @@ | ||
const {randomShareCode, TestEmail} = require("../../support/e2e"); | ||
|
||
describe('Choose not to be a certificate provider', () => { | ||
describe('can enter reference number to not be a certificate provider', () => { | ||
it('when LPA has been signed and witnessed', () => { | ||
const shareCode = randomShareCode() | ||
cy.visit(`/fixtures/certificate-provider?redirect=/certificate-provider-enter-reference-number-opt-out&withShareCode=${shareCode}&email=${TestEmail}&progress=signedByDonor`) | ||
|
||
cy.checkA11yApp(); | ||
|
||
cy.get('#f-reference-number').type(shareCode); | ||
cy.contains('Continue').click(); | ||
|
||
cy.url().should('contain', '/confirm-you-do-not-want-to-be-a-certificate-provider') | ||
cy.checkA11yApp(); | ||
|
||
cy.contains('Property and affairs') | ||
|
||
cy.contains('button', 'Confirm').click(); | ||
|
||
cy.url().should('contain', '/you-have-decided-not-to-be-a-certificate-provider') | ||
cy.checkA11yApp(); | ||
|
||
cy.contains('We have contacted Sam Smith') | ||
}); | ||
|
||
it('when LPA has not been signed and witnessed', () => { | ||
const shareCode = randomShareCode() | ||
cy.visit(`/fixtures/certificate-provider?redirect=/certificate-provider-enter-reference-number-opt-out&withShareCode=${shareCode}&email=${TestEmail}`) | ||
|
||
cy.checkA11yApp(); | ||
|
||
cy.get('#f-reference-number').type(shareCode); | ||
cy.contains('Continue').click(); | ||
|
||
cy.url().should('contain', '/confirm-you-do-not-want-to-be-a-certificate-provider') | ||
cy.checkA11yApp(); | ||
|
||
cy.contains('Property and affairs') | ||
|
||
cy.contains('button', 'Confirm').click(); | ||
|
||
cy.url().should('contain', '/you-have-decided-not-to-be-a-certificate-provider') | ||
cy.checkA11yApp(); | ||
|
||
cy.contains('We have contacted Sam Smith') | ||
}); | ||
}) | ||
}) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
version: '3.8' | ||
|
||
services: | ||
app: | ||
image: ${ECR_REGISTRY}/modernising-lpa/app:${TAG} |
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,5 +1,3 @@ | ||
version: '3.8' | ||
|
||
services: | ||
app: | ||
build: | ||
|
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,5 +1,3 @@ | ||
version: '3.8' | ||
|
||
services: | ||
app: | ||
build: | ||
|
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.