77from .helpers .user_interaction_helpers import (
88 fill_in_and_submit_height ,
99 fill_in_and_submit_participant_id ,
10- fill_in_and_submit_smoking_elligibility ,
10+ fill_in_and_submit_smoking_eligibility ,
1111 fill_in_and_submit_date_of_birth
1212)
1313
@@ -28,7 +28,7 @@ def tearDownClass(cls):
2828 cls .browser .close ()
2929 cls .playwright .stop ()
3030
31- def test_full_questionaire_user_journey (self ):
31+ def test_full_questionnaire_user_journey (self ):
3232 participant_id = '123'
3333 smoking_status = 'Yes, I used to smoke regularly'
3434 age = datetime .now () - relativedelta (years = 55 )
@@ -42,7 +42,7 @@ def test_full_questionaire_user_journey(self):
4242 expect (page ).to_have_url (
4343 f"{ self .live_server_url } /have-you-ever-smoked" )
4444
45- fill_in_and_submit_smoking_elligibility (page , smoking_status )
45+ fill_in_and_submit_smoking_eligibility (page , smoking_status )
4646
4747 expect (page ).to_have_url (f"{ self .live_server_url } /date-of-birth" )
4848 expect_back_link_to_have_url (page , "/have-you-ever-smoked" )
@@ -55,11 +55,11 @@ def test_full_questionaire_user_journey(self):
5555
5656 expect (page ).to_have_url (f"{ self .live_server_url } /responses" )
5757
58- response = page .locator (".responses" )
58+ responses = page .locator (".responses" )
5959 expect (responses ).to_contain_text ("Have you ever smoked? Yes, I used to smoke regularly" )
6060 expect (responses ).to_contain_text (
6161 age .strftime ("What is your date of birth? %Y-%m-%d" ))
62- expect (responses ).to_contain_text (f"Height: { height } " )
62+ expect (responses ).to_contain_text (f"What is your height? { height } " )
6363
6464 page .click ("text=Submit" )
6565
0 commit comments