File tree Expand file tree Collapse file tree
lung_cancer_screening/questions/tests/unit/views Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11@SmokingHistory
22@AgeWhenStartedSmoking
3+ @wip
34Feature : Age when started smoking
45 Scenario : The page is accessible
56 Given I am logged in
@@ -52,7 +53,7 @@ Feature: Age when started smoking
5253 Then I am on "/age-when-started-smoking?change=True"
5354 And I see "18" filled in for "How old were you when you started smoking?"
5455 When I fill in "How old were you when you started smoking?" as "22" and submit
55- Then I am on "/periods-when-you-stopped-smoking?change=True "
56+ Then I am on "/check-your-answers "
5657
5758 Scenario : Checking responses and changing them as a former smoker
5859 Given I am logged in
@@ -67,4 +68,4 @@ Feature: Age when started smoking
6768 Then I am on "/age-when-started-smoking?change=True"
6869 And I see "18" filled in for "How old were you when you started smoking?"
6970 When I fill in "How old were you when you started smoking?" as "22" and submit
70- Then I am on "/when-you-quit-smoking?change=True "
71+ Then I am on "/check-your-answers "
Original file line number Diff line number Diff line change @@ -159,7 +159,7 @@ def test_redirects_to_periods_when_you_stopped_smoking_as_a_current_smoker_if_ch
159159
160160 self .assertRedirects (
161161 response ,
162- reverse ("questions:periods_when_you_stopped_smoking" , query = { "change" : "True" } )
162+ reverse ("questions:responses" )
163163 )
164164
165165
@@ -195,7 +195,7 @@ def test_redirects_to_when_you_quit_smoking_as_a_former_smoker_if_change_query_p
195195
196196 self .assertRedirects (
197197 response ,
198- reverse ("questions:when_you_quit_smoking" , query = { "change" : "True" } )
198+ reverse ("questions:responses" )
199199 )
200200
201201
You can’t perform that action at this time.
0 commit comments