-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy patheducation.feature
More file actions
36 lines (32 loc) · 1.37 KB
/
education.feature
File metadata and controls
36 lines (32 loc) · 1.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
@Education
Feature: Education page
Scenario: The page is accessible
Given I am logged in
When I go to "/education"
Then there are no accessibility violations
Scenario: Form errors
Given I am logged in
When I go to "/education"
And I click "Continue"
Then I am on "/education"
And I see a form error "Select your level of education"
And there are no accessibility violations
Scenario: Navigating backwards and forwards
Given I am logged in
When I go to "/education"
Then I see a back link to "/ethnicity"
When I fill in and submit my education with "A-levels"
Then I am on "/respiratory-conditions"
Scenario: Checking responses and changing them
Given I am logged in
When I go to "/education"
And I fill in and submit my education with "A-levels"
When I go to "/check-your-answers"
Then I see "A-levels" as a response to "Highest level of education" under "About you"
And I see "/education?change=True" as a link to change "Highest level of education" under "About you"
When I click the link to change "Highest level of education" under "About you"
Then I am on "/education?change=True"
And I see "A-levels" selected
When I fill in and submit my education with "GCSEs"
Then I am on "/check-your-answers"
And I see "GCSEs" as a response to "Highest level of education" under "About you"