Skip to content

Commit 196a9c8

Browse files
committed
Move accessibility tests on form errors to form error scenarios
1 parent 6ad44fe commit 196a9c8

16 files changed

Lines changed: 21 additions & 26 deletions

lung_cancer_screening/questions/jinja2/_speak_to_a_gp_if.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<div class="nhsuk-do-dont-list">
2-
<h3 class="nhsuk-do-dont-list__label">Speak to a GP if:</h3>
2+
<h2 class="nhsuk-do-dont-list__label">Speak to a GP if:</h2>
33
<p>You have any of the following symptoms:</p>
44

55
<ul class="nhsuk-list nhsuk-list--bullet" role="list">

lung_cancer_screening/questions/jinja2/age_range_exit.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
{% block content %}
1616
<div class="nhsuk-grid-row">
1717
<div class="nhsuk-grid-column-two-thirds">
18-
<h2 class="title">You are not eligible for lung cancer screening</h2>
18+
<h1 class="nhsuk-heading-l">You are not eligible for lung cancer screening</h1>
1919

2020
<p>NHS lung cancer screening is for people between the ages of 55 and 74.</p>
2121
<p>According to the date of birth you have provided you are not in this age range.</p>

lung_cancer_screening/questions/jinja2/non_smoker_exit.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
{% block content %}
1616
<div class="nhsuk-grid-row">
1717
<div class="nhsuk-grid-column-two-thirds">
18-
<h2 class="title">You are not eligible for lung cancer screening</h2>
18+
<h1 class="nhsuk-heading-l">You are not eligible for lung cancer screening</h1>
1919

2020
<p>NHS lung cancer screening is for people who have smoked or are current smokers.</p>
2121

tests/features/asbestos_exposure.feature

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,14 @@ Feature: Asbestos exposure page
33
Given I am logged in
44
When I go to "/asbestos-exposure"
55
Then there are no accessibility violations
6-
When I click "Continue"
7-
Then there are no accessibility violations
86

97
Scenario: Form errors
108
Given I am logged in
119
When I go to "/asbestos-exposure"
1210
And I click "Continue"
1311
Then I am on "/asbestos-exposure"
1412
And I see a form error "Select if you have been exposed to asbestos"
13+
And there are no accessibility violations
1514

1615
Scenario: Navigating backwards and forwards
1716
Given I am logged in

tests/features/cancer_diagnosis.feature

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,14 @@ Feature: Cancer diagnosis page
33
Given I am logged in
44
When I go to "/cancer-diagnosis"
55
Then there are no accessibility violations
6-
When I click "Continue"
7-
Then there are no accessibility violations
86

97
Scenario: Form errors
108
Given I am logged in
119
When I go to "/cancer-diagnosis"
1210
And I click "Continue"
1311
Then I am on "/cancer-diagnosis"
1412
And I see a form error "Select if you have been diagnosed with cancer"
13+
And there are no accessibility violations
1514

1615
Scenario: Navigating backwards and forwards
1716
Given I am logged in

tests/features/date_of_birth_page.feature

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ Feature: Date of birth page
33
Given I am logged in
44
When I go to "/date-of-birth"
55
Then there are no accessibility violations
6-
When I click "Continue"
7-
Then there are no accessibility violations
86

97
Scenario: Form errors
108
Given I am logged in
@@ -22,6 +20,7 @@ Feature: Date of birth page
2220
When I fill in and submit my date of birth with "31-02-2001"
2321
Then I am on "/date-of-birth"
2422
And I see a form error "Date of birth must be a real date"
23+
And there are no accessibility violations
2524

2625
Scenario: Eligibility of people not in age range
2726
Given I am logged in

tests/features/ethnicity.feature

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,14 @@ Feature: Ethnicity page
33
Given I am logged in
44
When I go to "/ethnicity"
55
Then there are no accessibility violations
6-
When I click "Continue"
7-
Then there are no accessibility violations
86

97
Scenario: Form errors
108
Given I am logged in
119
When I go to "/ethnicity"
1210
And I click "Continue"
1311
Then I am on "/ethnicity"
1412
And I see a form error "Select your ethnic background"
13+
And there are no accessibility violations
1514

1615
Scenario: Navigating backwards and forwards
1716
Given I am logged in

tests/features/family_history_lung_cancer.feature

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,14 @@ Feature: Family history of lung cancer page
33
Given I am logged in
44
When I go to "/family-history-lung-cancer"
55
Then there are no accessibility violations
6-
When I click "Continue"
7-
Then there are no accessibility violations
86

97
Scenario: Form errors
108
Given I am logged in
119
When I go to "/family-history-lung-cancer"
1210
And I click "Continue"
1311
Then I am on "/family-history-lung-cancer"
1412
And I see a form error "Select if any of your parents, siblings or children have had a diagnosis of lung cancer"
13+
And there are no accessibility violations
1514

1615
Scenario: Navigating backwards and forwards
1716
Given I am logged in

tests/features/gender.feature

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,14 @@ Feature: Gender page
33
Given I am logged in
44
When I go to "/gender"
55
Then there are no accessibility violations
6-
When I click "Continue"
7-
Then there are no accessibility violations
86

97
Scenario: Form errors
108
Given I am logged in
119
When I go to "/gender"
1210
And I click "Continue"
1311
Then I am on "/gender"
1412
And I see a form error "Select the option that best describes your gender"
13+
And there are no accessibility violations
1514

1615
Scenario: Navigating backwards and forwards
1716
Given I am logged in

tests/features/have_you_ever_smoked_page.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,22 @@ Feature: Have you ever smoked page
33
Given I am logged in
44
When I go to "/have-you-ever-smoked"
55
Then there are no accessibility violations
6-
When I click "Continue"
7-
Then there are no accessibility violations
86

97
Scenario: Form errors
108
Given I am logged in
119
When I go to "/have-you-ever-smoked"
1210
And I submit the form
1311
Then I am on "/have-you-ever-smoked"
1412
And I see a form error "Select if you have ever smoked"
13+
And there are no accessibility violations
1514

1615
Scenario: Eligibility of non smokers
1716
Given I am logged in
1817
When I go to "/have-you-ever-smoked"
1918
And I fill in and submit my smoking status with "No, I have never smoked"
2019
Then I am on "/non-smoker-exit"
2120
And I see a title "You are not eligible for lung cancer screening"
21+
And there are no accessibility violations
2222

2323
Scenario: Navigating backwards and forwards
2424
Given I am logged in

0 commit comments

Comments
 (0)