Skip to content

Commit 4674d6a

Browse files
committed
Fix to age when started smoking tests
1 parent 718b018 commit 4674d6a

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

features/age_when_started_smoking.feature

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
@SmokingHistory
22
@AgeWhenStartedSmoking
3+
@wip
34
Feature: 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"

lung_cancer_screening/questions/tests/unit/views/test_age_when_started_smoking.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)