Skip to content

Commit

Permalink
test(DTFS2-7675): update data-cy in e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Roberts committed Jan 17, 2025
1 parent 90734f4 commit 2de0703
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"]'),
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand Down

0 comments on commit 2de0703

Please sign in to comment.