File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 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"
Original file line number Diff line number Diff line change 55def 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" )
You can’t perform that action at this time.
0 commit comments