-
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-1306 Delete or withdraw an LPA (#804)
- Loading branch information
Showing
30 changed files
with
862 additions
and
65 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
describe('Delete LPA', () => { | ||
it('can be deleted', () => { | ||
cy.visit('/fixtures?redirect=&progress=provideYourDetails'); | ||
|
||
cy.contains('Sam Smith'); | ||
cy.contains('a', 'Delete LPA').click(); | ||
|
||
cy.checkA11yApp(); | ||
cy.contains('button', 'Delete this LPA').click(); | ||
|
||
cy.checkA11yApp(); | ||
cy.contains('has been deleted'); | ||
cy.contains('a', 'Return to dashboard').click(); | ||
|
||
cy.contains('Sam Smith').should('not.exist'); | ||
}); | ||
}); |
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,17 @@ | ||
describe('Withdraw LPA', () => { | ||
it('can be withdrawn', () => { | ||
cy.visit('/fixtures?redirect=&progress=submitted'); | ||
|
||
cy.contains('Sam Smith'); | ||
cy.contains('a', 'Withdraw LPA').click(); | ||
|
||
cy.checkA11yApp(); | ||
cy.contains('button', 'Withdraw this LPA').click(); | ||
|
||
cy.checkA11yApp(); | ||
cy.contains('You have withdrawn'); | ||
cy.contains('a', 'Return to dashboard').click(); | ||
|
||
cy.contains('.app-dashboard-card', 'Sam Smith').contains('.govuk-tag', 'Withdrawn'); | ||
}); | ||
}); |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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.