From 15fabbc0e983229693dbaf8bbe4e0b0525a21818 Mon Sep 17 00:00:00 2001 From: Priest-Stephens Date: Fri, 3 Jan 2025 10:10:49 +0000 Subject: [PATCH] fix(web): update failing cookies e2e tests (applics-1207) --- .../cypress/support/common-methods/assertUserOnThePage.js | 2 +- packages/e2e_tests/cypress/e2e/cookie-settings.cy.js | 4 ++-- packages/e2e_tests/cypress/e2e/footer-links.cy.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/e2e-tests/cypress/support/common-methods/assertUserOnThePage.js b/e2e-tests/cypress/support/common-methods/assertUserOnThePage.js index 83693be7b..f7b03c058 100644 --- a/e2e-tests/cypress/support/common-methods/assertUserOnThePage.js +++ b/e2e-tests/cypress/support/common-methods/assertUserOnThePage.js @@ -737,7 +737,7 @@ module.exports = (pageName) => { cy.url().should('include', '/what-happens-after-the-decision-is-made'); break; case 'cookies settings': - cy.title().should('eq', 'Cookies on application service'); + cy.title().should('eq', 'Cookies on the Find a National Infrastructure Project service'); cy.get('h1') .invoke('text') .then((text) => { diff --git a/packages/e2e_tests/cypress/e2e/cookie-settings.cy.js b/packages/e2e_tests/cypress/e2e/cookie-settings.cy.js index 7bf6d4fed..5654cbbee 100644 --- a/packages/e2e_tests/cypress/e2e/cookie-settings.cy.js +++ b/packages/e2e_tests/cypress/e2e/cookie-settings.cy.js @@ -14,7 +14,7 @@ describe('Accept and Decline cookie settings on view cookies page', () => { it('Should navigate to the view cookies page and accept cookies', () => { cookies.clickOnCookieChoice('view'); cy.url().should('include', '/cookies'); - basepage.locateH1ByText('Cookies on application service'); + basepage.locateH1ByText('Cookies on the Find a National Infrastructure Project service'); cookies.selectRadioChoice('yes'); cookies.clickSaveChangesButton(); cookies.cookiesUpdatedText(); @@ -26,7 +26,7 @@ describe('Accept and Decline cookie settings on view cookies page', () => { it('Should navigate to the view cookies page and decline cookies', () => { cookies.clickOnCookieChoice('view'); cy.url().should('include', '/cookies'); - basepage.locateH1ByText('Cookies on application service'); + basepage.locateH1ByText('Cookies on the Find a National Infrastructure Project service'); cookies.selectRadioChoice('no'); cookies.clickSaveChangesButton(); cookies.cookiesUpdatedText(); diff --git a/packages/e2e_tests/cypress/e2e/footer-links.cy.js b/packages/e2e_tests/cypress/e2e/footer-links.cy.js index df5bd0fba..bdcef23f3 100644 --- a/packages/e2e_tests/cypress/e2e/footer-links.cy.js +++ b/packages/e2e_tests/cypress/e2e/footer-links.cy.js @@ -22,7 +22,7 @@ describe('Visit footer links and verify they redirect to the correct page', () = it('Should click Cookies Link', () => { basepage.clickFooterLink('Cookies'); - basepage.locateH1ByText('Cookies on application service'); + basepage.locateH1ByText('Cookies on the Find a National Infrastructure Project service'); cy.url().should('include', '/cookies'); });