Skip to content

Commit

Permalink
fix(web): update failing cookies e2e tests (applics-1207)
Browse files Browse the repository at this point in the history
  • Loading branch information
cprieststephens committed Jan 3, 2025
1 parent 356bdc7 commit 15fabbc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down
4 changes: 2 additions & 2 deletions packages/e2e_tests/cypress/e2e/cookie-settings.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion packages/e2e_tests/cypress/e2e/footer-links.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
});

Expand Down

0 comments on commit 15fabbc

Please sign in to comment.