Skip to content

Commit

Permalink
Merge pull request #134 from alphagov/LIME-700-DL-TabTitleTest
Browse files Browse the repository at this point in the history
Lime 700 Take outstanding DL tests from the API repo
  • Loading branch information
gds-jbentham authored Jul 25, 2023
2 parents 1a44252 + a3a009c commit c296aaf
Show file tree
Hide file tree
Showing 11 changed files with 414 additions and 42 deletions.
29 changes: 29 additions & 0 deletions test/browser/features/DVA_Driving_Licence.feature
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Feature: DVA Driving licence CRI Error Validations
When User clicks on continue
Then I see the DVA licence number error in the summary as Your licence number should be 8 characters long
And I can see the DVA licence number error in the field as Your licence number should be 8 characters long
And I check the page Title Error: Enter your details exactly as they appear on your UK driving licence – Prove your identity – GOV.UK
Examples:
|DVADrivingLicenceSubject |InvalidLicenceNumber|
|DrivingLicenceSubjectHappyBilly|5566778 |
Expand All @@ -26,6 +27,7 @@ Feature: DVA Driving licence CRI Error Validations
When User clicks on continue
Then I see the DVA licence number error in the summary as Your licence number should not include any symbols or spaces
And I can see the DVA licence number error in the field as Your licence number should not include any symbols or spaces
And I check the page Title Error: Enter your details exactly as they appear on your UK driving licence – Prove your identity – GOV.UK
Examples:
|DVADrivingLicenceSubject |InvalidLicenceNumber|
|DrivingLicenceSubjectHappyBilly|55667^&* |
Expand All @@ -38,6 +40,7 @@ Feature: DVA Driving licence CRI Error Validations
When User clicks on continue
Then I see the DVA licence number error in the summary as Enter the number exactly as it appears on your driving licence
And I can see the DVA licence number error in the field as Enter the number exactly as it appears on your driving licence
And I check the page Title Error: Enter your details exactly as they appear on your UK driving licence – Prove your identity – GOV.UK
Examples:
|DVADrivingLicenceSubject |InvalidLicenceNumber|
|DrivingLicenceSubjectHappyBilly|55667ABC |
Expand All @@ -51,6 +54,7 @@ Feature: DVA Driving licence CRI Error Validations
When User clicks on continue
Then I see the postcode error in summary as Your postcode should be between 5 and 7 characters
And I see the postcode error in field as Your postcode should be between 5 and 7 characters
And I check the page Title Error: Enter your details exactly as they appear on your UK driving licence – Prove your identity – GOV.UK
Examples:
|DVADrivingLicenceSubject |InvalidPostcode |
|DrivingLicenceSubjectHappyBilly|E20A |
Expand All @@ -62,6 +66,7 @@ Feature: DVA Driving licence CRI Error Validations
When User clicks on continue
Then I see the postcode error in summary as Enter your postcode
And I see the postcode error in field as Enter your postcode
And I check the page Title Error: Enter your details exactly as they appear on your UK driving licence – Prove your identity – GOV.UK
Examples:
|DVADrivingLicenceSubject |InvalidPostcode |
|DrivingLicenceSubjectHappyBilly| |
Expand All @@ -73,6 +78,7 @@ Feature: DVA Driving licence CRI Error Validations
When User clicks on continue
Then I see the postcode error in summary as Enter a UK postcode
And I see the postcode error in field as Enter a UK postcode
And I check the page Title Error: Enter your details exactly as they appear on your UK driving licence – Prove your identity – GOV.UK
Examples:
|DVADrivingLicenceSubject |InvalidPostcode |
|DrivingLicenceSubjectHappyBilly|CA 95128 |
Expand All @@ -85,6 +91,7 @@ Feature: DVA Driving licence CRI Error Validations
When User clicks on continue
Then I see the postcode error in summary as Your postcode should only include numbers and letters
And I see the postcode error in field as Your postcode should only include numbers and letters
And I check the page Title Error: Enter your details exactly as they appear on your UK driving licence – Prove your identity – GOV.UK
Examples:
|DVADrivingLicenceSubject |InvalidPostcode |
|DrivingLicenceSubjectHappyBilly|NW* ^%G |
Expand All @@ -97,6 +104,7 @@ Feature: DVA Driving licence CRI Error Validations
When User clicks on continue
Then I see the postcode error in summary as Your postcode should include numbers and letters
And I see the postcode error in field as Your postcode should include numbers and letters
And I check the page Title Error: Enter your details exactly as they appear on your UK driving licence – Prove your identity – GOV.UK
Examples:
|DVADrivingLicenceSubject |InvalidPostcode |
|DrivingLicenceSubjectHappyBilly|123 456 |
Expand All @@ -110,6 +118,7 @@ Feature: DVA Driving licence CRI Error Validations
When User clicks on continue
Then I see the Lastname error in the error summary as Enter your last name as it appears on your driving licence
And I see the Lastname error in the error field as Enter your last name as it appears on your driving licence
And I check the page Title Error: Enter your details exactly as they appear on your UK driving licence – Prove your identity – GOV.UK
Examples:
|DVADrivingLicenceSubject |InvalidLastName |
|DrivingLicenceSubjectHappyBilly|KYLE123 |
Expand All @@ -124,6 +133,7 @@ Feature: DVA Driving licence CRI Error Validations
When User clicks on continue
Then I see the Firstname error summary as Enter your first name as it appears on your driving licence
And I see the Firstname error in the error field as Enter your first name as it appears on your driving licence
And I check the page Title Error: Enter your details exactly as they appear on your UK driving licence – Prove your identity – GOV.UK
Examples:
|DVADrivingLicenceSubject |InvalidFirstName|
|DrivingLicenceSubjectHappyBilly|SELINA987 |
Expand All @@ -138,6 +148,7 @@ Feature: DVA Driving licence CRI Error Validations
When User clicks on continue
Then I see the middlenames error summary as Enter any middle names as they appear on your driving licence
And I see the middlenames error in the error field as Enter any middle names as they appear on your driving licence
And I check the page Title Error: Enter your details exactly as they appear on your UK driving licence – Prove your identity – GOV.UK
Examples:
|DVADrivingLicenceSubject |InvalidMiddleNames|
|DrivingLicenceSubjectHappyBilly|SELINA987 |
Expand All @@ -153,6 +164,7 @@ Feature: DVA Driving licence CRI Error Validations
When User clicks on continue
Then DVA user can see the date of birth error summary as Enter your date of birth as it appears on your driving licence
And DVA user can see the date of birth error in the field as Enter your date of birth as it appears on your driving licence
And I check the page Title Error: Enter your details exactly as they appear on your UK driving licence – Prove your identity – GOV.UK
Examples:
|DVADrivingLicenceSubject |InvalidDayOfBirth|InvalidMonthOfBirth|InvalidYearOfBirth|
|DrivingLicenceSubjectHappyBilly| 51 | 71 | 198 |
Expand All @@ -168,6 +180,7 @@ Feature: DVA Driving licence CRI Error Validations
When User clicks on continue
Then DVA user can see the date of birth error summary as Your date of birth must be in the past
And DVA user can see the date of birth error in the field as Your date of birth must be in the past
And I check the page Title Error: Enter your details exactly as they appear on your UK driving licence – Prove your identity – GOV.UK
Examples:
|DVADrivingLicenceSubject |InvalidDayOfBirth|InvalidMonthOfBirth|InvalidYearOfBirth|
|DrivingLicenceSubjectHappyBilly| 10 | 10 | 2042 |
Expand All @@ -182,6 +195,7 @@ Feature: DVA Driving licence CRI Error Validations
When User clicks on continue
Then I see DVA issue date error in summary as Enter the date as it appears on your driving licence
And I see DVA invalid issue date field error as Enter the date as it appears on your driving licence
And I check the page Title Error: Enter your details exactly as they appear on your UK driving licence – Prove your identity – GOV.UK
Examples:
|DVADrivingLicenceSubject |InvalidDayOfIssue|InvalidMonthOfIssue|InvalidYearOfIssue|
|DrivingLicenceSubjectHappyBilly| AA | BB | AABC |
Expand All @@ -197,6 +211,7 @@ Feature: DVA Driving licence CRI Error Validations
When User clicks on continue
Then I see DVA issue date error in summary as The issue date must be in the past
And I see DVA issue date error in summary as The issue date must be in the past
And I check the page Title Error: Enter your details exactly as they appear on your UK driving licence – Prove your identity – GOV.UK
Examples:
|DVADrivingLicenceSubject |InvalidDayOfIssue|InvalidMonthOfIssue|InvalidYearOfIssue|
|DrivingLicenceSubjectHappyBilly| 01 | 10 | 2043 |
Expand All @@ -211,6 +226,7 @@ Feature: DVA Driving licence CRI Error Validations
When User clicks on continue
Then I can see the valid to date error in the error summary as Enter the date as it appears on your driving licence
And I can see the Valid to date field error as Enter the date as it appears on your driving licence
And I check the page Title Error: Enter your details exactly as they appear on your UK driving licence – Prove your identity – GOV.UK
Examples:
|DVADrivingLicenceSubject |InvalidValidToDay|InvalidValidToMonth|InvalidValidToYear|
|DrivingLicenceSubjectHappyBilly| AA | BC | AABD |
Expand All @@ -226,6 +242,19 @@ Feature: DVA Driving licence CRI Error Validations
When User clicks on continue
Then I can see the valid to date error in the error summary as You cannot use an expired driving licence
And I can see the Valid to date field error as You cannot use an expired driving licence
And I check the page Title Error: Enter your details exactly as they appear on your UK driving licence – Prove your identity – GOV.UK
Examples:
|DVADrivingLicenceSubject |InvalidValidToDay|InvalidValidToMonth|InvalidValidToYear|
|DrivingLicenceSubjectHappyBilly| 10 | 01 | 2010 |

@mock-api:dva-ConsentError @validation-regression @build @staging
Scenario Outline: DVA Driving Licence error validation when DVA consent checkbox is unselected
Given User enters DVA data as a <DVADrivingLicenceSubject>
And DVA consent checkbox is unselected
When User clicks on continue
Then I can see the DVA consent error summary as You must give your consent to continue
And I can see the DVA consent error on the checkbox as Error: You must give your consent to continue
And I check the page Title Error: Enter your details exactly as they appear on your UK driving licence – Prove your identity – GOV.UK
Examples:
|DVADrivingLicenceSubject |
|DrivingLicenceSubjectHappyBilly|
Loading

0 comments on commit c296aaf

Please sign in to comment.