-
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 remote-tracking branch 'origin/main'
- Loading branch information
Showing
32 changed files
with
412 additions
and
240 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
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,14 +1,14 @@ | ||
describe('Check the LPA', () => { | ||
it('cannot change when personal welfare LPA can be used', () => { | ||
cy.visit('/fixtures?redirect=/check-your-lpa&progress=peopleToNotifyAboutYourLpa&lpa-type=personal-welfare'); | ||
cy.visit('/fixtures?redirect=/check-your-lpa&progress=addCorrespondent&lpa-type=personal-welfare'); | ||
|
||
cy.contains('.govuk-summary-list__row', 'When your attorneys can use your LPA') | ||
.contains('Only when I do not have mental capacity') | ||
.contains('Change').should('not.exist'); | ||
}); | ||
|
||
it("can submit the completed LPA", () => { | ||
cy.visit('/fixtures?redirect=/check-your-lpa&progress=peopleToNotifyAboutYourLpa&[email protected]'); | ||
cy.visit('/fixtures?redirect=/check-your-lpa&progress=addCorrespondent&[email protected]'); | ||
|
||
cy.contains('h1', "Check your LPA") | ||
|
||
|
@@ -45,7 +45,7 @@ describe('Check the LPA', () => { | |
}); | ||
|
||
it('does not allow checking when no changes', () => { | ||
cy.visit('/fixtures?redirect=/check-your-lpa&progress=peopleToNotifyAboutYourLpa'); | ||
cy.visit('/fixtures?redirect=/check-your-lpa&progress=addCorrespondent'); | ||
|
||
cy.get('#f-checked-and-happy').check({ force: true }) | ||
cy.contains('button', 'Confirm').click(); | ||
|
@@ -64,7 +64,7 @@ describe('Check the LPA', () => { | |
describe('CP acting on paper', () => { | ||
describe('on first check', () => { | ||
it('content is tailored for paper CPs, a details component is shown and nav redirects to payment', () => { | ||
cy.visit('/fixtures?redirect=/check-your-lpa&progress=peopleToNotifyAboutYourLpa&certificateProvider=paper'); | ||
cy.visit('/fixtures?redirect=/check-your-lpa&progress=addCorrespondent&certificateProvider=paper'); | ||
|
||
cy.get('label[for=f-checked-and-happy]').contains('I’ve checked this LPA and I’m happy to show it to my certificate provider, Charlie Cooper') | ||
cy.get('details').contains('What happens if I need to make changes later?') | ||
|
@@ -126,7 +126,7 @@ describe('Check the LPA', () => { | |
describe('CP acting online', () => { | ||
describe('on first check', () => { | ||
it('content is tailored for online CPs, a details component is shown and nav redirects to payment', () => { | ||
cy.visit('/fixtures?redirect=/check-your-lpa&progress=peopleToNotifyAboutYourLpa'); | ||
cy.visit('/fixtures?redirect=/check-your-lpa&progress=addCorrespondent'); | ||
|
||
cy.get('label[for=f-checked-and-happy]').contains('I’ve checked this LPA and I’m happy for OPG to share it with my certificate provider, Charlie Cooper') | ||
cy.get('details').contains('What happens if I need to make changes later?') | ||
|
@@ -186,7 +186,7 @@ describe('Check the LPA', () => { | |
}) | ||
|
||
it("errors when not selected", () => { | ||
cy.visit('/fixtures?redirect=/check-your-lpa&progress=peopleToNotifyAboutYourLpa'); | ||
cy.visit('/fixtures?redirect=/check-your-lpa&progress=addCorrespondent'); | ||
cy.contains('button', 'Confirm').click(); | ||
|
||
cy.get('.govuk-error-summary').within(() => { | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
ARG IMPOSTER_VERSION=$IMPOSTER_VERSION | ||
|
||
FROM badouralix/curl-jq:latest as build | ||
|
||
RUN curl -L https://github.com/outofcoffee/imposter/releases/download/v3.36.0/imposter-plugin-js-graal.zip --output imposter-plugin-js-graal.zip | ||
ARG IMPOSTER_VERSION=$IMPOSTER_VERSION | ||
RUN curl -L "https://github.com/outofcoffee/imposter/releases/download/v${IMPOSTER_VERSION}/imposter-plugin-js-graal.zip" --output imposter-plugin-js-graal.zip | ||
|
||
FROM outofcoffee/imposter:3.39.0 | ||
FROM outofcoffee/imposter:${IMPOSTER_VERSION} | ||
|
||
COPY --from=build imposter-plugin-js-graal.zip /opt/imposter/plugins/imposter-plugin-js-graal.zip |
Oops, something went wrong.