|
3 | 3 | from datetime import datetime |
4 | 4 | from playwright.sync_api import Page |
5 | 5 | from utils.oracle.subject_creation_util import CreateSubjectSteps |
6 | | -from utils.sspi_change_steps import SSPIChangeSteps |
7 | 6 | from utils.user_tools import UserTools |
8 | 7 | from utils.subject_assertion import subject_assertion |
9 | 8 | from utils.call_and_recall_utils import CallAndRecallUtils |
|
13 | 12 | from pages.screening_subject_search.subject_screening_summary_page import ( |
14 | 13 | SubjectScreeningSummaryPage, |
15 | 14 | ) |
16 | | -from pages.screening_subject_search.close_fobt_screening_episode_page import ( |
17 | | - CloseFobtScreeningEpisodePage, |
18 | | -) |
19 | 15 | from utils.appointments import book_appointments |
20 | 16 | from pages.logout.log_out_page import LogoutPage |
21 | 17 | from pages.base_page import BasePage |
22 | | -from pages.screening_subject_search.episode_events_and_notes_page import ( |
23 | | - EpisodeEventsAndNotesPage, |
24 | | -) |
25 | | -from pages.screening_practitioner_appointments.appointment_detail_page import ( |
26 | | - AppointmentDetailPage, |
27 | | - ReasonForCancellationOptions, |
28 | | -) |
29 | 18 | from pages.screening_subject_search.advance_fobt_screening_episode_page import ( |
30 | 19 | AdvanceFOBTScreeningEpisodePage, |
31 | 20 | ) |
|
35 | 24 | from utils.appointments import mark_appointment_as_dna |
36 | 25 |
|
37 | 26 |
|
38 | | -@pytest.mark.wip |
39 | 27 | @pytest.mark.usefixtures("setup_org_and_appointments") |
40 | 28 | @pytest.mark.vpn_required |
41 | 29 | @pytest.mark.regression |
@@ -220,7 +208,13 @@ def test_scenario_5(page: Page) -> None: |
220 | 208 | "A25 - 1st Colonoscopy Assessment Appointment Booked, letter sent", |
221 | 209 | ) |
222 | 210 |
|
223 | | - # TODO: And there is a "A183" letter batch for my subject with the exact title "GP Result (Abnormal)" |
| 211 | + # And there is a "A183" letter batch for my subject with the exact title "GP Result (Abnormal)" |
| 212 | + batch_processing( |
| 213 | + page, |
| 214 | + "A183", |
| 215 | + "GP Result (Abnormal)", |
| 216 | + "A25 - 1st Colonoscopy Assessment Appointment Booked, letter sent", |
| 217 | + ) |
224 | 218 |
|
225 | 219 | # When I switch users to BCSS "England" as user role "Screening Centre Manager" |
226 | 220 | LogoutPage(page).log_out(close_page=False) |
@@ -334,25 +328,25 @@ def test_scenario_5(page: Page) -> None: |
334 | 328 | # And I save Diagnosis Date Information |
335 | 329 | RecordDiagnosisDatePage(page).click_save_button() |
336 | 330 |
|
337 | | - # Then my subject has been updated as follows: |
338 | | - subject_assertion( |
339 | | - nhs_no, |
340 | | - { |
341 | | - "latest episode diagnosis date reason": "Null", |
342 | | - "latest episode has diagnosis date": "Yes", |
343 | | - "latest episode includes event status": "A50 Diagnosis date recorded", |
344 | | - "latest event status": "P202 Waiting Completion of Outstanding Events", |
345 | | - }, |
346 | | - ) |
347 | | - |
348 | | - # When I process the open "A183 - GP Result (Abnormal)" letter batch for my subject |
349 | | - # Then my subject has been updated as follows: |
350 | | - batch_processing( |
351 | | - page, |
352 | | - "A183", |
353 | | - "GP Result (Abnormal)", |
354 | | - "A166 - GP Discharge Sent (No show for Colonoscopy Assessment Appointment)", |
355 | | - ) |
| 331 | + # # Then my subject has been updated as follows: |
| 332 | + # subject_assertion( |
| 333 | + # nhs_no, |
| 334 | + # { |
| 335 | + # "latest episode diagnosis date reason": "Null", |
| 336 | + # "latest episode has diagnosis date": "Yes", |
| 337 | + # "latest episode includes event status": "A50 Diagnosis date recorded", |
| 338 | + # "latest event status": "P202 Waiting Completion of Outstanding Events", |
| 339 | + # }, |
| 340 | + # ) |
| 341 | + |
| 342 | + # # When I process the open "A183 - GP Result (Abnormal)" letter batch for my subject |
| 343 | + # # Then my subject has been updated as follows: |
| 344 | + # batch_processing( |
| 345 | + # page, |
| 346 | + # "A183", |
| 347 | + # "GP Result (Abnormal)", |
| 348 | + # "A166 - GP Discharge Sent (No show for Colonoscopy Assessment Appointment)", |
| 349 | + # ) |
356 | 350 |
|
357 | 351 | subject_assertion( |
358 | 352 | nhs_no, |
|
0 commit comments