-
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.
Merge branch 'main' into MLPAB-2636-add-secret-arn-to-event-received
- Loading branch information
Showing
48 changed files
with
399 additions
and
793 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
describe('When can the LPA be used', () => { | ||
beforeEach(() => { | ||
cy.visit('/fixtures?redirect=/when-can-the-lpa-be-used&progress=chooseYourAttorneys'); | ||
}); | ||
beforeEach(() => { | ||
cy.visit('/fixtures?redirect=/when-can-the-lpa-be-used&progress=chooseYourAttorneys'); | ||
}); | ||
|
||
it('can be submitted', () => { | ||
cy.get('#f-selected').check('when-has-capacity', { force: true }); | ||
|
||
it('can be submitted', () => { | ||
cy.get('#f-when').check('when-has-capacity', { force: true }); | ||
cy.checkA11yApp(); | ||
|
||
cy.checkA11yApp(); | ||
cy.contains('button', 'Save and continue').click(); | ||
cy.url().should('contain', '/task-list'); | ||
}); | ||
|
||
cy.contains('button', 'Save and continue').click(); | ||
cy.url().should('contain', '/task-list'); | ||
}); | ||
it('errors when unselected', () => { | ||
cy.contains('button', 'Save and continue').click(); | ||
|
||
it('errors when unselected', () => { | ||
cy.contains('button', 'Save and continue').click(); | ||
cy.get('.govuk-error-summary').within(() => { | ||
cy.contains('Select when your attorneys can use your LPA'); | ||
}); | ||
|
||
cy.get('.govuk-error-summary').within(() => { | ||
cy.contains('Select when your attorneys can use your LPA'); | ||
cy.contains('.govuk-fieldset .govuk-error-message', 'Select when your attorneys can use your LPA'); | ||
}); | ||
|
||
cy.contains('.govuk-fieldset .govuk-error-message', 'Select when your attorneys can use your LPA'); | ||
}); | ||
}); |
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 |
---|---|---|
|
@@ -40,7 +40,7 @@ describe('Dashboard', () => { | |
cy.get('#f-email').type('[email protected]'); | ||
cy.contains('button', 'Save and continue').click() | ||
|
||
cy.get('#f-can-sign').check({ force: true }); | ||
cy.get('#f-selected').check({ force: true }); | ||
cy.contains('button', 'Save and continue').click() | ||
|
||
cy.get('[name="contact-language"]').check('en', { force: true }) | ||
|
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.