@@ -79,14 +79,8 @@ def give_online_consent_pds_child(
7979 OnlineConsentWizardPage (page ).click_confirm ()
8080
8181
82- @pytest .fixture
83- def go_to_unmatched_consent_responses (log_in_as_nurse , page ):
84- DashboardPage (page ).click_unmatched_consent_responses ()
85-
86-
8782def test_archive_unmatched_consent_response_removes_from_list (
8883 give_online_consent ,
89- go_to_unmatched_consent_responses ,
9084 page ,
9185 children ,
9286):
@@ -100,6 +94,10 @@ def test_archive_unmatched_consent_response_removes_from_list(
10094 - The consent response for the child is no longer visible in the unmatched list.
10195 """
10296 child = children [Programme .HPV ][0 ]
97+
98+ DashboardPage (page ).navigate ()
99+ DashboardPage (page ).click_unmatched_consent_responses ()
100+
103101 UnmatchedConsentResponsesPage (page ).click_parent_on_consent_record_for_child (child )
104102
105103 ConsentResponsePage (page ).click_archive ()
@@ -111,7 +109,6 @@ def test_archive_unmatched_consent_response_removes_from_list(
111109
112110def test_match_unmatched_consent_response_and_verify_activity_log (
113111 give_online_consent ,
114- log_in_as_nurse ,
115112 children ,
116113 page ,
117114 file_generator ,
@@ -131,6 +128,7 @@ def test_match_unmatched_consent_response_and_verify_activity_log(
131128 """
132129 child = children [Programme .HPV ][0 ]
133130
131+ DashboardPage (page ).navigate ()
134132 DashboardPage (page ).click_imports ()
135133 ImportsPage (page ).click_upload_records ()
136134 ImportRecordsWizardPage (page , file_generator ).navigate_to_child_record_import ()
@@ -158,7 +156,6 @@ def test_match_unmatched_consent_response_and_verify_activity_log(
158156
159157def test_create_child_record_from_consent_with_nhs_number (
160158 give_online_consent_pds_child ,
161- go_to_unmatched_consent_responses ,
162159 pds_child ,
163160 page ,
164161):
@@ -176,6 +173,9 @@ def test_create_child_record_from_consent_with_nhs_number(
176173 """
177174 child = pds_child
178175
176+ DashboardPage (page ).navigate ()
177+ DashboardPage (page ).click_unmatched_consent_responses ()
178+
179179 UnmatchedConsentResponsesPage (page ).click_parent_on_consent_record_for_child (child )
180180
181181 ConsentResponsePage (page ).click_create_new_record ()
@@ -194,7 +194,6 @@ def test_create_child_record_from_consent_with_nhs_number(
194194
195195def test_create_child_record_from_consent_without_nhs_number (
196196 give_online_consent ,
197- go_to_unmatched_consent_responses ,
198197 children ,
199198 page ,
200199):
@@ -212,6 +211,10 @@ def test_create_child_record_from_consent_without_nhs_number(
212211 - Activity log for the child shows the creation event.
213212 """
214213 child = children [Programme .HPV ][0 ]
214+
215+ DashboardPage (page ).navigate ()
216+ DashboardPage (page ).click_unmatched_consent_responses ()
217+
215218 UnmatchedConsentResponsesPage (page ).click_parent_on_consent_record_for_child (child )
216219
217220 ConsentResponsePage (page ).click_create_new_record ()
@@ -231,7 +234,6 @@ def test_create_child_record_from_consent_without_nhs_number(
231234@pytest .mark .accessibility
232235def test_accessibility (
233236 give_online_consent ,
234- log_in_as_nurse ,
235237 children ,
236238 page ,
237239 file_generator ,
@@ -246,6 +248,7 @@ def test_accessibility(
246248 """
247249 child = children [Programme .HPV ][0 ]
248250
251+ DashboardPage (page ).navigate ()
249252 DashboardPage (page ).click_imports ()
250253 ImportsPage (page ).click_upload_records ()
251254 ImportRecordsWizardPage (page , file_generator ).navigate_to_child_record_import ()
@@ -272,7 +275,6 @@ def test_accessibility(
272275@issue ("MAV-2681" )
273276def test_match_consent_with_vaccination_record_no_service_error (
274277 give_online_consent ,
275- log_in_as_nurse ,
276278 upload_offline_vaccination ,
277279 children ,
278280 page ,
@@ -302,6 +304,7 @@ def test_match_consent_with_vaccination_record_no_service_error(
302304 school = schools [Programme .HPV ][0 ]
303305
304306 # Step 2: Import a class list to create searchable child records for both children
307+ DashboardPage (page ).navigate ()
305308 DashboardPage (page ).click_imports ()
306309 ImportsPage (page ).click_upload_records ()
307310 ImportRecordsWizardPage (page , file_generator ).navigate_to_class_list_record_import (
0 commit comments