Skip to content

Commit

Permalink
Merge pull request #643 from DFE-Digital/feature/151380
Browse files Browse the repository at this point in the history
Updated expected date error message
  • Loading branch information
danielryannimble authored Jun 28, 2024
2 parents 671c470 + 79e5bf8 commit 6483225
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ describe("Testing the External expert visit task", () => {
externalExpertVisitEditPage
.withVisitDate("aq","12","2010")
.clickContinue()
.errorForVisitDate().showsError("Enter a date in the correct format")
.errorForVisitDate().showsError("Day must be a number, like 12")
.withVisitDate("21","12","1999")
.clickContinue()
.errorForVisitDate().showsError("Year must be between 2000 and 2050")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ describe("Testing the admissions arragements task", () => {
admissionsArrangementsEditPage
.withExpectedDate("zx","12","2010")
.clickContinue()
.errorForExpectedDate().showsError("Enter a date in the correct format")
.errorForExpectedDate().showsError("Day must be a number, like 12")
.withExpectedDate("15","12","1999")
.clickContinue()
.errorForExpectedDate().showsError("Year must be between 2000 and 2050")
Expand All @@ -92,7 +92,7 @@ describe("Testing the admissions arragements task", () => {
.withExpectedDate("15","4","2050")
.withConfirmedDate("aq","12","2010")
.clickContinue()
.errorForConfirmedDate().showsError("Enter a date in the correct format")
.errorForConfirmedDate().showsError("Day must be a number, like 12")
.withConfirmedDate("21","12","1999")
.clickContinue()
.errorForConfirmedDate().showsError("Year must be between 2000 and 2050")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ describe("Testing kick off meeting Task", () => {
kickOffMeetingEditPage
.withComments(dataGenerator.generateAlphaNumeric(101))
.clickContinue()
.errorForComments().showsError("comments must be 100 characters or less")
.errorForComments().showsError("Comments must be 100 characters or less")

kickOffMeetingEditPage
.withComments("#TaTers")
Expand Down Expand Up @@ -138,7 +138,7 @@ describe("Testing kick off meeting Task", () => {
kickOffMeetingEditPage
.withProvisionalOpeningDate("Z", "3", "2020")
.clickContinue()
.errorForProvisionalOpeningDate().showsError("Enter a date in the correct format")
.errorForProvisionalOpeningDate().showsError("Day must be a number, like 12")
.withProvisionalOpeningDate("1", "3", "2051")
.clickContinue()
.errorForProvisionalOpeningDate().showsError("Year must be between 2000 and 2050")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ describe("Payment Schedule Task", () => {
.schoolNameIs(project.schoolName)
.withPaymentDueDate("a", "12", "2025")
.clickContinue()
.errorForPaymentDueDate().showsError("Enter a date in the correct format")
.errorForPaymentDueDate().showsError("Day must be a number, like 12")

cy.executeAccessibilityTests();

Expand All @@ -95,7 +95,7 @@ describe("Payment Schedule Task", () => {
.schoolNameIs(project.schoolName)
.withPaymentActualDate("a", "12", "2025")
.clickContinue()
.errorForPaymentActualDate().showsError("Enter a date in the correct format")
.errorForPaymentActualDate().showsError("Day must be a number, like 12")

cy.executeAccessibilityTests();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ describe("Trust Letter Sent Task", () => {
refunds
.withLatestRefundDate("a", "12", "2025")
.clickContinue()
.errorForLatestRefundDate().showsError("Enter a date in the correct format")
.errorForLatestRefundDate().showsError("Day must be a number, like 12")

cy.executeAccessibilityTests();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ describe("Trust Letter Sent Task", () => {
trustLetter
.withTrustLetterDate("a", "12", "2025")
.clickContinue()
.errorForPaymentDueDate().showsError("Enter a date in the correct format")
.errorForPaymentDueDate().showsError("Day must be a number, like 12")

cy.executeAccessibilityTests();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ describe("Write off Task", () => {
.schoolNameIs(project.schoolName)
.withWriteOffDate("a", "12", "2025")
.clickContinue()
.errorForWriteOffDate().showsError("Enter a date in the correct format")
.errorForWriteOffDate().showsError("Day must be a number, like 12")

cy.executeAccessibilityTests({ "aria-allowed-attr": { enabled: false } });

Expand All @@ -81,7 +81,7 @@ describe("Write off Task", () => {
.schoolNameIs(project.schoolName)
.withApprovalDate("a", "12", "2025")
.clickContinue()
.errorForApprovalDate().showsError("Enter a date in the correct format")
.errorForApprovalDate().showsError("Day must be a number, like 12")

cy.executeAccessibilityTests({ "aria-allowed-attr": { enabled: false } });

Expand Down

0 comments on commit 6483225

Please sign in to comment.