-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcheck_need_appointment.feature
More file actions
36 lines (31 loc) · 1.36 KB
/
check_need_appointment.feature
File metadata and controls
36 lines (31 loc) · 1.36 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
@CheckNeedAppointment
Feature: Check if you need an appointment page
Scenario: The page is accessible
Given I am logged in
When I go to "/check-if-you-need-an-appointment"
Then there are no accessibility violations
Scenario: Form errors
Given I am logged in
When I go to "/check-if-you-need-an-appointment"
And I click "Continue"
Then I am on "/check-if-you-need-an-appointment"
And I see a form error "Select if you can continue online"
And there are no accessibility violations
Scenario: Eligibility exit if needs face to face appointment
Given I am logged in
When I go to "/check-if-you-need-an-appointment"
Then I see a back link to "/date-of-birth"
When I check "Yes, one or more of these things applies to me and I need a face-to-face appointment" and submit
Then I am on "/call-us-to-book-an-appointment"
Scenario: Navigating backwards and forwards
Given I am logged in
When I go to "/check-if-you-need-an-appointment"
Then I see a back link to "/date-of-birth"
When I check "No, I can continue online" and submit
Then I am on "/height"
Scenario: Checking responses and changing them
Given I am logged in
When I go to "/check-if-you-need-an-appointment"
And I check "No, I can continue online" and submit
When I click "Back"
Then I see "No, I can continue online" selected