Skip to content

Commit df50344

Browse files
committed
Fix ui tests
1 parent cb0eae1 commit df50344

6 files changed

Lines changed: 6 additions & 23 deletions

features/questionnaire.feature

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,6 @@ Feature: Questionnaire
7676
When I check "Cigarettes"
7777
And I submit the form
7878

79-
Then I am on "/cigarettes-smoking-current"
80-
When I check "Yes" and submit
81-
82-
Then I am on "/cigarettes-smoked-total-years"
83-
When I fill in "Roughly how many years have you smoked cigarettes?" with "10"
84-
And I submit the form
85-
8679
Then I am on "/cigarettes-smoking-frequency"
8780
When I check "Daily" and submit
8881

@@ -113,7 +106,7 @@ Feature: Questionnaire
113106
And I see "18" as a response to "Age you started smoking" under "Smoking history"
114107
And I see "Yes (10 years)" as a response to "Have you ever stopped smoking for periods of 1 year or longer?" under "Smoking history"
115108

116-
And I see "10" as a response to "Total number of years you smoked cigarettes" under "Smoking history"
109+
And I see "37" as a response to "Total number of years you smoked cigarettes" under "Smoking history"
117110
And I see "15 cigarettes a day" as a response to "Current cigarette smoking" under "Smoking history"
118111

119112
When I click "Submit"

features/smoked_total_years.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Feature: Smoked total years page
1414
Given I am logged in
1515
And I have answered questions showing I am eligible
1616
And I have answered questions showing I have smoked for "10" years
17-
And I have answered questions showing I have smoked "Cigarettes"
17+
And I have answered questions showing I have smoked "Cigarettes, Pipe"
1818
And I have answered questions showing I currently smoke "Cigarettes"
1919
When I go to "/cigarettes-smoked-total-years"
2020
And I click "Continue"

features/smoking_current.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Feature: Smoking current page
1111
Scenario: Form errors
1212
Given I am logged in
1313
And I have answered questions showing I am eligible
14-
And I have answered questions showing I have smoked "Cigarettes"
14+
And I have answered questions showing I have smoked "Cigarettes, Pipe"
1515
When I go to "/cigarettes-smoking-current"
1616
And I click "Continue"
1717
Then I am on "/cigarettes-smoking-current"

features/smoking_frequency.feature

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,8 @@ Feature: Smoking frequency page
2525
And I have answered questions showing I am eligible
2626
And I have answered questions showing I have smoked for "10" years
2727
And I have answered questions showing I currently smoke "Cigarettes"
28-
And I have answered questions showing I have smoked "Cigarettes"
2928
When I go to "/cigarettes-smoking-frequency"
30-
Then I see a back link to "/cigarettes-smoked-total-years"
29+
Then I see a back link to "/types-tobacco-smoking"
3130
When I check "Daily" and submit
3231
Then I am on "/cigarettes-smoked-amount"
3332

features/smoking_history.feature

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,6 @@ Feature: Smoking history pages
66
And I have answered questions showing I have smoked for "30" years
77
When I go to "/types-tobacco-smoking"
88
And I check "Cigarettes"
9-
And I check "Cigarettes"
10-
And I submit the form
11-
12-
Then I am on "/cigarettes-smoking-current"
13-
When I check "Yes"
14-
And I submit the form
15-
16-
Then I am on "/cigarettes-smoked-total-years"
17-
When I fill in "Roughly how many years have you smoked cigarettes?" with "15"
189
And I submit the form
1910

2011
Then I am on "/cigarettes-smoking-frequency"
@@ -55,7 +46,7 @@ Feature: Smoking history pages
5546
And I submit the form
5647

5748
Then I am on "/check-your-answers"
58-
Then I see "15 years" as a response to "Total number of years you smoked cigarettes" under "Cigarette smoking history"
49+
Then I see "30 years" as a response to "Total number of years you smoked cigarettes" under "Cigarette smoking history"
5950
And I see "10 cigarettes a day" as a response to "Current cigarette smoking" under "Cigarette smoking history"
6051
And I see "200 cigarettes a week for 5 years" as a response to "When you smoked more than 10 cigarettes a day" under "Cigarette smoking history"
6152
And I see "1 cigarettes a month for 2 years" as a response to "When you smoked fewer than 10 cigarettes a day" under "Cigarette smoking history"

features/types_tobacco_smoking.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Feature: Types tobacco smoking page
2626
Then I see a back link to "/periods-when-you-stopped-smoking"
2727
When I check "Cigarettes"
2828
And I submit the form
29-
Then I am on "/cigarettes-smoking-current"
29+
Then I am on "/cigarettes-smoking-frequency"
3030

3131
Scenario: Checking responses and changing them
3232
Given I am logged in

0 commit comments

Comments
 (0)