Skip to content

Commit 37feceb

Browse files
committed
WIP
1 parent 1b7299e commit 37feceb

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Feature: Non smokers
2+
Scenario: Non smokers are not elligible
3+
Given a participant abc123 exists
4+
And the participant is on the "/have-you-ever-smoked" path
5+
When the participant fills in and submits their smoking status with "No, I have never smoked"
6+
Then the participant should be on the "/non-smoker-exit" path
7+
And the participant should see a title "You do not need an NHS lung health check"

tests/features/steps/form_steps.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,8 @@
55
def when_the_participant_submits_their_participant_id(context, participant_id):
66
context.page.fill('input[name="participant_id"]', participant_id)
77
context.page.click('button[type="submit"]')
8+
9+
@when('the participant fills in and submits their smoking status with "{smoking_status}"')
10+
def when_the_participant_fills_in_and_submits_their_smoking_status(context, smoking_status):
11+
context.page.get_by_label(smoking_status).check()
12+
context.page.click("text=Continue")

0 commit comments

Comments
 (0)