diff --git a/e2e/cypress/e2e/runner/dateValidation.js b/e2e/cypress/e2e/runner/dateValidation.js index d0080e1a78..61b7a26119 100644 --- a/e2e/cypress/e2e/runner/dateValidation.js +++ b/e2e/cypress/e2e/runner/dateValidation.js @@ -22,7 +22,7 @@ Then("I see the date parts error {string}", (error) => { /** * Date parts only show one error at a time. */ - cy.findByText("Fix the following errors"); + cy.findByText("There is a problem"); cy.findByRole("link", { name: error, exact: false }); }); @@ -32,7 +32,7 @@ Then( /** * Date parts only show one error at a time. */ - cy.findByText("Fix the following errors"); + cy.findByText("There is a problem"); cy.get(`#${fieldName}-error`).within(() => { cy.findByText(error, { exact: false }); }); diff --git a/e2e/cypress/e2e/runner/initialiseSession.feature b/e2e/cypress/e2e/runner/initialiseSession.feature index cce8ccda7c..a63732ed4d 100644 --- a/e2e/cypress/e2e/runner/initialiseSession.feature +++ b/e2e/cypress/e2e/runner/initialiseSession.feature @@ -6,7 +6,7 @@ Feature: Initialise session - prepopulate a session | form | callbackUrl | redirectPath | message | htmlMessage | title | | initialiseSession | https://61bca17e-fe74-40e0-9c15-a901ad120eca.mock.pstmn.io | /summary | | | | And I go to the initialised session URL - Then I see "Summary" + Then I see the heading "Summary" Scenario: The configured message is displayed @@ -15,7 +15,7 @@ Feature: Initialise session - prepopulate a session | form | callbackUrl | redirectPath | message | htmlMessage | title | | initialiseSession | https://61bca17e-fe74-40e0-9c15-a901ad120eca.mock.pstmn.io | /summary | your favourite egg is wrong | | | And I go to the initialised session URL - Then I see "Summary" + Then I see the heading "Summary" And I see "your favourite egg is wrong" Scenario: The configured htmlMessage is displayed @@ -24,7 +24,7 @@ Feature: Initialise session - prepopulate a session | form | callbackUrl | redirectPath | message | htmlMessage | title | | initialiseSession | https://61bca17e-fe74-40e0-9c15-a901ad120eca.mock.pstmn.io | /summary | |
This is not a type of egg
| | And I go to the initialised session URL - Then I see "Summary" + Then I see the heading "Summary" And I see "This is not a type of egg" And I don't see "" @@ -46,4 +46,4 @@ Feature: Initialise session - prepopulate a session And I declare and continue Then I see "Cookies are files saved on your phone" When I revisit the status page - Then I see "Cookies are files saved on your phone" \ No newline at end of file + Then I see "Cookies are files saved on your phone" diff --git a/e2e/cypress/support/step_definitions/common/i_see_the_error_string_for_string.js b/e2e/cypress/support/step_definitions/common/i_see_the_error_string_for_string.js index b1c0e2a70e..5ed4d1f281 100644 --- a/e2e/cypress/support/step_definitions/common/i_see_the_error_string_for_string.js +++ b/e2e/cypress/support/step_definitions/common/i_see_the_error_string_for_string.js @@ -1,7 +1,7 @@ import { When } from "@badeball/cypress-cucumber-preprocessor"; When("I see the error {string} for {string}", (error, fieldName) => { - cy.findByText("Fix the following errors"); + cy.findByText("There is a problem"); cy.findByRole("link", { name: error }); cy.findByRole("group", { description: `Error: ${error}` }); }); diff --git a/runner/src/server/plugins/engine/pageControllers/PageControllerBase.ts b/runner/src/server/plugins/engine/pageControllers/PageControllerBase.ts index d21fb54cd8..6885745b51 100644 --- a/runner/src/server/plugins/engine/pageControllers/PageControllerBase.ts +++ b/runner/src/server/plugins/engine/pageControllers/PageControllerBase.ts @@ -611,7 +611,7 @@ export class PageControllerBase { }); formResult.errors = Object.is(formResult.errors, null) - ? { titleText: "Fix the following errors" } + ? { titleText: "There is a problem" } : formResult.errors; formResult.errors.errorList = reformattedErrors; } @@ -638,7 +638,7 @@ export class PageControllerBase { }); formResult.errors = Object.is(formResult.errors, null) - ? { titleText: "Fix the following errors" } + ? { titleText: "There is a problem" } : formResult.errors; formResult.errors.errorList = reformattedErrors; } @@ -841,7 +841,7 @@ export class PageControllerBase { } get errorSummaryTitle() { - return "Fix the following errors"; + return "There is a problem"; } /** diff --git a/runner/src/server/plugins/engine/pluginHandlers/exit/prehandlers/utils.ts b/runner/src/server/plugins/engine/pluginHandlers/exit/prehandlers/utils.ts index 19229333a8..4eb911ca12 100644 --- a/runner/src/server/plugins/engine/pluginHandlers/exit/prehandlers/utils.ts +++ b/runner/src/server/plugins/engine/pluginHandlers/exit/prehandlers/utils.ts @@ -19,7 +19,7 @@ export function errorListFromValidationResult( const errorList = errors.details.map(errorListItemToErrorVM); return { - titleText: "Fix the following errors", + titleText: "There is a problem", errorList: errorList.filter( ({ text }, index) => index === errorList.findIndex((err) => err.text === text) diff --git a/runner/src/server/plugins/engine/types.ts b/runner/src/server/plugins/engine/types.ts index af24b5e51c..0da5951902 100644 --- a/runner/src/server/plugins/engine/types.ts +++ b/runner/src/server/plugins/engine/types.ts @@ -61,7 +61,7 @@ export type FormSubmissionState = { }; export type FormSubmissionErrors = { - titleText: string; // e.b: "Fix the following errors" + titleText: string; // e.b: "There is a problem" errorList: { path: string; // e.g: "firstName" href: string; // e.g: "#firstName" diff --git a/runner/src/server/plugins/engine/views/components/fileuploadfield.html b/runner/src/server/plugins/engine/views/components/fileuploadfield.html index 085a0a2e86..9bcf102a0c 100644 --- a/runner/src/server/plugins/engine/views/components/fileuploadfield.html +++ b/runner/src/server/plugins/engine/views/components/fileuploadfield.html @@ -5,8 +5,8 @@
You previously uploaded the file ‘{{component.model.value}}’
{% endif %}Your file was successfully selected - +