diff --git a/e2e-tests/gef/cypress/e2e/pages/amendments/what-do-you-need-to-change.js b/e2e-tests/gef/cypress/e2e/pages/amendments/what-do-you-need-to-change.js index ff5bb527c1..0e7b9c990b 100644 --- a/e2e-tests/gef/cypress/e2e/pages/amendments/what-do-you-need-to-change.js +++ b/e2e-tests/gef/cypress/e2e/pages/amendments/what-do-you-need-to-change.js @@ -2,8 +2,8 @@ const whatDoYouNeedToChange = { coverEndDateCheckbox: () => cy.get('[data-cy="cover-end-date-checkbox"]'), facilityValueCheckbox: () => cy.get('[data-cy="facility-value-checkbox"]'), errorSummary: () => cy.get('[data-cy="error-summary"]'), - selectionErrorMessage: () => cy.get('[data-cy="selection-error-message"]'), - pageTitle: () => cy.get('[data-cy="page-title"]'), + amendmentOptionsInlineError: () => cy.get('[data-cy="amendment-options-inline-error"]'), + pageHeading: () => cy.get('[data-cy="page-heading"]'), backLink: () => cy.get('[data-cy="back-link"]'), warning: () => cy.get('[data-cy="warning"]'), }; diff --git a/e2e-tests/ukef/cypress/e2e/journeys/portal/amendments/change-facility-value-journey.happy-path.spec.js b/e2e-tests/ukef/cypress/e2e/journeys/portal/amendments/change-facility-value-journey.happy-path.spec.js index 7a37654cbb..f73bb0d44d 100644 --- a/e2e-tests/ukef/cypress/e2e/journeys/portal/amendments/change-facility-value-journey.happy-path.spec.js +++ b/e2e-tests/ukef/cypress/e2e/journeys/portal/amendments/change-facility-value-journey.happy-path.spec.js @@ -62,7 +62,7 @@ context('Amendments - change facility value journey - happy path', () => { whatDoYouNeedToChange.coverEndDateCheckbox().should('not.be.checked'); whatDoYouNeedToChange.facilityValueCheckbox().should('not.be.checked'); - whatDoYouNeedToChange.pageTitle().contains('What do you need to change?'); + whatDoYouNeedToChange.pageHeading().contains('What do you need to change?'); whatDoYouNeedToChange.backLink(); whatDoYouNeedToChange.warning().contains('Check your records for the most up-to-date values'); diff --git a/e2e-tests/ukef/cypress/e2e/journeys/portal/amendments/change-facility-value-journey.unhappy-path.spec.js b/e2e-tests/ukef/cypress/e2e/journeys/portal/amendments/change-facility-value-journey.unhappy-path.spec.js index b524ff4a03..b7512a190a 100644 --- a/e2e-tests/ukef/cypress/e2e/journeys/portal/amendments/change-facility-value-journey.unhappy-path.spec.js +++ b/e2e-tests/ukef/cypress/e2e/journeys/portal/amendments/change-facility-value-journey.unhappy-path.spec.js @@ -68,8 +68,8 @@ context('Amendments - change facility value journey - unhappy path', () => { whatDoYouNeedToChange.errorSummary().should('be.visible'); whatDoYouNeedToChange.errorSummary().contains('Select if you need to change the facility cover end date, value or both'); - whatDoYouNeedToChange.selectionErrorMessage().should('be.visible'); - whatDoYouNeedToChange.selectionErrorMessage().contains('Select if you need to change the facility cover end date, value or both'); + whatDoYouNeedToChange.amendmentOptionsInlineError().should('be.visible'); + whatDoYouNeedToChange.amendmentOptionsInlineError().contains('Select if you need to change the facility cover end date, value or both'); }); it('navigate to facility value page', () => {