From 3b1ad758674d3c7c87bf31fb822c86e62988ade4 Mon Sep 17 00:00:00 2001 From: Alex Saunders Date: Wed, 20 Dec 2023 11:42:16 +0000 Subject: [PATCH] fix attorney name warning e2e tests --- cypress/e2e/donor/choose-attorneys.cy.js | 6 +++--- cypress/e2e/donor/choose-replacement-attorneys.cy.js | 2 +- cypress/e2e/donor/your-details.cy.js | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cypress/e2e/donor/choose-attorneys.cy.js b/cypress/e2e/donor/choose-attorneys.cy.js index d3c841c3ab..c17b8441a3 100644 --- a/cypress/e2e/donor/choose-attorneys.cy.js +++ b/cypress/e2e/donor/choose-attorneys.cy.js @@ -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'); @@ -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'); diff --git a/cypress/e2e/donor/choose-replacement-attorneys.cy.js b/cypress/e2e/donor/choose-replacement-attorneys.cy.js index 8458a2bfaa..1367e1912f 100644 --- a/cypress/e2e/donor/choose-replacement-attorneys.cy.js +++ b/cypress/e2e/donor/choose-replacement-attorneys.cy.js @@ -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'); diff --git a/cypress/e2e/donor/your-details.cy.js b/cypress/e2e/donor/your-details.cy.js index 4b62069f4d..a1629555ad 100644 --- a/cypress/e2e/donor/your-details.cy.js +++ b/cypress/e2e/donor/your-details.cy.js @@ -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');