44
55
66@when ('I submit my participant id' )
7- def when_I_submit_my_participant_id (context ):
7+ def when_i_submit_my_participant_id (context ):
88 if not hasattr (context , 'participant_id' ):
99 context .participant_id = 'abc123'
1010 context .page .fill ('input[name="participant_id"]' , context .participant_id )
1111 context .page .click ('button[type="submit"]' )
1212
1313@when ('I fill in and submit my smoking status with "{smoking_status}"' )
14- def when_I_fill_in_and_submit_my_smoking_status (context , smoking_status ):
14+ def when_i_fill_in_and_submit_my_smoking_status (context , smoking_status ):
1515 context .page .get_by_label (smoking_status ).check ()
1616 context .page .click ("text=Continue" )
1717
1818@when ('I fill in and submit my date of birth with "{date_of_birth}"' )
19- def when_I_fill_in_and_submit_my_date_of_birth (context , date_of_birth ):
19+ def when_i_fill_in_and_submit_my_date_of_birth (context , date_of_birth ):
2020 day , month , year = date_of_birth .split ('-' )
2121 context .page .get_by_label ('Day' ).fill (day )
2222 context .page .get_by_label ('Month' ).fill (month )
2323 context .page .get_by_label ('Year' ).fill (year )
2424 context .page .click ("text=Continue" )
2525
2626@when (u'I fill in and submit my date of birth as {years} years ago' )
27- def when_I_fill_in_and_submit_my_date_of_birth_as_x_years_ago (context , years ):
27+ def when_i_fill_in_and_submit_my_date_of_birth_as_x_years_ago (context , years ):
2828 date_of_birth = datetime .now () - relativedelta (years = int (years ))
2929 context .page .get_by_label ('Day' ).fill (str (date_of_birth .day ))
3030 context .page .get_by_label ('Month' ).fill (str (date_of_birth .month ))
3131 context .page .get_by_label ('Year' ).fill (str (date_of_birth .year ))
3232 context .page .click ("text=Continue" )
3333
3434@when (u'I fill in and submit my height with "{height}"' )
35- def when_I_fill_in_and_submit_my_height (context , height ):
35+ def when_i_fill_in_and_submit_my_height (context , height ):
3636 context .page .get_by_label ('Centimetre' ).fill (height )
3737 context .page .click ("text=Continue" )
3838
3939@when (u'I fill in and submit my height with "{feet}" feet and "{inches}" inch' )
4040@when (u'I fill in and submit my height with "{feet}" feet and "{inches}" inches' )
41- def when_I_fill_in_and_submit_my_height_with_feet_and_inches (context , feet , inches ):
41+ def when_i_fill_in_and_submit_my_height_with_feet_and_inches (context , feet , inches ):
4242 context .page .get_by_label ('Feet' ).fill (feet )
4343 context .page .get_by_label ('Inches' ).fill (inches )
4444 context .page .click ("text=Continue" )
4545
4646@when (u'I fill in and submit my weight with "{weight}"' )
47- def when_I_fill_in_and_submit_my_weight (context , weight ):
47+ def when_i_fill_in_and_submit_my_weight (context , weight ):
4848 context .page .get_by_label ('Kilograms' ).fill (weight )
4949 context .page .click ("text=Continue" )
5050
@@ -56,31 +56,31 @@ def stone_and_pounds(context, stone, pounds):
5656 context .page .click ("text=Continue" )
5757
5858@when (u'I fill in and submit my sex at birth with "{sex_at_birth}"' )
59- def when_I_fill_in_and_submit_my_sex_at_birth (context , sex_at_birth ):
59+ def when_i_fill_in_and_submit_my_sex_at_birth (context , sex_at_birth ):
6060 context .page .get_by_label (sex_at_birth , exact = True ).check ()
6161 context .page .click ("text=Continue" )
6262
6363@when (u'I fill in and submit my gender with "{gender}"' )
64- def when_I_fill_in_and_submit_my_gender (context , gender ):
64+ def when_i_fill_in_and_submit_my_gender (context , gender ):
6565 context .page .get_by_label (gender , exact = True ).check ()
6666 context .page .click ("text=Continue" )
6767
6868@when (u'I fill in and submit my ethnicity with "{ethnicity}"' )
69- def when_I_fill_in_and_submit_my_ethnicity (context , ethnicity ):
69+ def when_i_fill_in_and_submit_my_ethnicity (context , ethnicity ):
7070 context .page .get_by_label (ethnicity , exact = True ).check ()
7171 context .page .click ("text=Continue" )
7272
7373@when (u'I fill in and submit my respiratory conditions with "{condition_a}" and "{condition_b}"' )
74- def when_I_fill_in_and_submit_my_respiratory_conditions (context , condition_a , condition_b ):
74+ def when_i_fill_in_and_submit_my_respiratory_conditions (context , condition_a , condition_b ):
7575 context .page .get_by_label (condition_a ).check ()
7676 context .page .get_by_label (condition_b ).check ()
7777 context .page .click ("text=Continue" )
7878
7979@when (u'I fill in and submit my asbestos exposure with "{asbestos_exposure}"' )
80- def when_I_fill_in_and_submit_my_asbestos_exposure (context , asbestos_exposure ):
80+ def when_i_fill_in_and_submit_my_asbestos_exposure (context , asbestos_exposure ):
8181 context .page .get_by_label (asbestos_exposure , exact = True ).check ()
8282 context .page .click ("text=Continue" )
8383
8484@when ('I submit the form' )
85- def when_I_submit_the_form (context ):
85+ def when_i_submit_the_form (context ):
8686 context .page .click ("text=Continue" )
0 commit comments