22from playwright .sync_api import Page
33from sqlalchemy import false
44from classes .repositories .subject_repository import SubjectRepository
5+ from classes .subject import subject
56from conftest import general_properties
67from pages .base_page import BasePage
78from pages .screening_practitioner_appointments .appointment_detail_page import (
@@ -274,6 +275,7 @@ def test_scenario_1(page: Page, general_properties: dict) -> None:
274275 "latest event status" : "X615 Surveillance Appointment Invitation Letter Printed" ,
275276 },
276277 )
278+
277279 # When I view the subject
278280 screening_subject_page_searcher .navigate_to_subject_summary_page (page , nhs_no )
279281
@@ -391,7 +393,6 @@ def test_scenario_1(page: Page, general_properties: dict) -> None:
391393 "surveillance due date reason" : "Reopened episode" ,
392394 }
393395 subject_assertion (nhs_no , criteria )
394-
395396 # When I view the subject
396397 screening_subject_page_searcher .navigate_to_subject_summary_page (page , nhs_no )
397398
@@ -442,7 +443,8 @@ def test_scenario_1(page: Page, general_properties: dict) -> None:
442443 # And I view the latest practitioner appointment in the subject's episode
443444 EpisodeEventsAndNotesPage (page ).click_most_recent_view_appointment_link ()
444445
445- # And the Screening Centre reschedules the surveillance practitioner appointment to "today"-recheck this
446+ # And the Screening Centre reschedules the surveillance practitioner appointment to "today"
447+
446448 AppointmentDetailPage (page ).click_reschedule_radio ()
447449 AppointmentDetailPage (page ).click_calendar_button ()
448450 CalendarPicker (page ).v2_calendar_picker (datetime .today ())
@@ -457,6 +459,7 @@ def test_scenario_1(page: Page, general_properties: dict) -> None:
457459 },
458460 )
459461 # And there is a "X610" letter batch for my subject with the exact title "Surveillance Appointment Invitation Letter"
462+
460463 SubjectRepository ().there_is_letter_batch_for_subject (
461464 nhs_no , "X610" , "Surveillance Appointment Invitation Letter"
462465 )
0 commit comments