Skip to content

Commit

Permalink
fix attorney name warning e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
acsauk committed Dec 20, 2023
1 parent 8235e9f commit 3b1ad75
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions cypress/e2e/donor/choose-attorneys.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,13 @@ describe('Choose attorneys', () => {
cy.contains('button', 'Save and continue').click();
cy.url().should('contain', '/choose-attorneys');

cy.contains('The donor’s name is also Sam Smith. By saving this section, you are confirming that these are two different people with the same name.');
cy.contains('The donor’s name is also Sam Smith. The donor cannot also be an attorney. By saving this section, you are confirming that these are two different people with the same name.');

cy.contains('button', 'Save and continue').click();
cy.url().should('contain', '/choose-attorneys-address');
});

it.only('permanently warns when date of birth is under 18', () => {
it('permanently warns when date of birth is under 18', () => {
cy.visit('/fixtures?redirect=/choose-replacement-attorneys&progress=provideYourDetails');

cy.get('#f-first-names').type('John');
Expand All @@ -124,7 +124,7 @@ describe('Choose attorneys', () => {
cy.contains('This attorney is under 18 years old. You can continue making your LPA but you will not be able to sign it until they are 18.');
});

it.only('warns when date of birth is over 100', () => {
it('warns when date of birth is over 100', () => {
cy.visit('/fixtures?redirect=/choose-attorneys&progress=provideYourDetails');

cy.get('#f-first-names').type('John');
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/donor/choose-replacement-attorneys.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ describe('Choose replacement attorneys', () => {
cy.contains('button', 'Save and continue').click();
cy.url().should('contain', '/choose-replacement-attorneys');

cy.contains('The donor’s name is also Sam Smith. By saving this section, you are confirming that these are two different people with the same name.');
cy.contains('The donor’s name is also Sam Smith. The donor cannot also be a replacement attorney. By saving this section, you are confirming that these are two different people with the same name.');

cy.contains('button', 'Save and continue').click();
cy.url().should('contain', '/choose-replacement-attorneys-address');
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/donor/your-details.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ describe('Donor details', () => {
cy.contains('You are under 18. By continuing, you understand that you must be at least 18 years old on the date you sign the LPA, or it will be rejected.');
});

it.only('warns when date of birth is over 100', () => {
it('warns when date of birth is over 100', () => {
cy.get('#f-first-names').type('John');
cy.get('#f-last-name').type('Doe');
cy.get('#f-date-of-birth').type('1');
Expand Down

0 comments on commit 3b1ad75

Please sign in to comment.