Skip to content

Commit a0bdca4

Browse files
committed
Addressing review comments
1 parent ccc099b commit a0bdca4

File tree

1 file changed

+79
-79
lines changed

1 file changed

+79
-79
lines changed

tests/smokescreen/test_compartment_6.py

Lines changed: 79 additions & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -290,92 +290,92 @@ def test_compartment_6(page: Page, smokescreen_properties: dict) -> None:
290290

291291
# This needs to be repeated for two subjects, one old and one not - High Risk Result
292292
# Older patient
293-
# nhs_no = "9707238623"
294-
# go_to_investigation_datasets_page(page, nhs_no)
295-
296-
# # The following code is on the investigation datasets page
297-
# default_investigation_dataset_forms(page)
298-
# InvestigationDatasetsPage(page).select_theraputic_procedure_type()
299-
# default_investigation_dataset_forms_continuation(page)
300-
# investigation_datasets_failure_reason(page)
301-
# polyps_for_high_risk_result(page)
302-
# save_investigation_dataset(page)
303-
# after_high_risk_result(page)
304-
305-
# handover_subject_to_symptomatic_care(page)
306-
307-
# # Younger patient
308-
# nhs_no = "9526262042"
309-
# go_to_investigation_datasets_page(page, nhs_no)
310-
311-
# # The following code is on the investigation datasets page
312-
# default_investigation_dataset_forms(page)
313-
# InvestigationDatasetsPage(page).select_theraputic_procedure_type()
314-
# default_investigation_dataset_forms_continuation(page)
315-
# investigation_datasets_failure_reason(page)
316-
# polyps_for_high_risk_result(page)
317-
# save_investigation_dataset(page)
318-
# after_high_risk_result(page)
319-
320-
# SubjectScreeningSummaryPage(page).verify_latest_event_status_value(
321-
# "A318 - Post-investigation Appointment NOT Required - Result Letter Created"
322-
# )
323-
# SubjectScreeningSummaryPage(page).click_advance_fobt_screening_episode_button()
293+
nhs_no = "9707238623"
294+
go_to_investigation_datasets_page(page, nhs_no)
324295

325-
# # The following code is on the advance fobt screening episode page
326-
# AdvanceFOBTScreeningEpisodePage(page).click_record_diagnosis_date_button()
296+
# The following code is on the investigation datasets page
297+
default_investigation_dataset_forms(page)
298+
InvestigationDatasetsPage(page).select_theraputic_procedure_type()
299+
default_investigation_dataset_forms_continuation(page)
300+
investigation_datasets_failure_reason(page)
301+
polyps_for_high_risk_result(page)
302+
save_investigation_dataset(page)
303+
after_high_risk_result(page)
327304

328-
# # The following code is on the record diagnosis date page
329-
# RecordDiagnosisDatePage(page).enter_date_in_diagnosis_date_field(datetime.today())
330-
# RecordDiagnosisDatePage(page).click_save_button()
305+
handover_subject_to_symptomatic_care(page)
331306

332-
# SubjectScreeningSummaryPage(page).verify_latest_event_status_value(
333-
# "A318 - Post-investigation Appointment NOT Required - Result Letter Created"
334-
# )
307+
# Younger patient
308+
nhs_no = "9526262042"
309+
go_to_investigation_datasets_page(page, nhs_no)
335310

336-
# # This needs to be repeated for two subjects, one old and one not - LNPCP Result
337-
# # Older patient
338-
# nhs_no = "9764755232"
339-
# go_to_investigation_datasets_page(page, nhs_no)
340-
341-
# # The following code is on the investigation datasets page
342-
# default_investigation_dataset_forms(page)
343-
# InvestigationDatasetsPage(page).select_theraputic_procedure_type()
344-
# default_investigation_dataset_forms_continuation(page)
345-
# investigation_datasets_failure_reason(page)
346-
# polyps_for_lnpcp_result(page)
347-
# save_investigation_dataset(page)
348-
# after_lnpcp_result(page)
349-
350-
# handover_subject_to_symptomatic_care(page)
351-
352-
# # Younger patient
353-
# nhs_no = "9680451623"
354-
# go_to_investigation_datasets_page(page, nhs_no)
355-
356-
# # The following code is on the investigation datasets page
357-
# default_investigation_dataset_forms(page)
358-
# InvestigationDatasetsPage(page).select_theraputic_procedure_type()
359-
# default_investigation_dataset_forms_continuation(page)
360-
# investigation_datasets_failure_reason(page)
361-
# polyps_for_lnpcp_result(page)
362-
# save_investigation_dataset(page)
363-
# after_lnpcp_result(page)
364-
# SubjectScreeningSummaryPage(page).verify_latest_event_status_value(
365-
# "A318 - Post-investigation Appointment NOT Required - Result Letter Created"
366-
# )
367-
# SubjectScreeningSummaryPage(page).click_advance_fobt_screening_episode_button()
311+
# The following code is on the investigation datasets page
312+
default_investigation_dataset_forms(page)
313+
InvestigationDatasetsPage(page).select_theraputic_procedure_type()
314+
default_investigation_dataset_forms_continuation(page)
315+
investigation_datasets_failure_reason(page)
316+
polyps_for_high_risk_result(page)
317+
save_investigation_dataset(page)
318+
after_high_risk_result(page)
368319

369-
# # The following code is on the advance fobt screening episode page
370-
# AdvanceFOBTScreeningEpisodePage(page).click_record_diagnosis_date_button()
320+
SubjectScreeningSummaryPage(page).verify_latest_event_status_value(
321+
"A318 - Post-investigation Appointment NOT Required - Result Letter Created"
322+
)
323+
SubjectScreeningSummaryPage(page).click_advance_fobt_screening_episode_button()
371324

372-
# # The following code is on the record diagnosis date page
373-
# RecordDiagnosisDatePage(page).enter_date_in_diagnosis_date_field(datetime.today())
374-
# RecordDiagnosisDatePage(page).click_save_button()
325+
# The following code is on the advance fobt screening episode page
326+
AdvanceFOBTScreeningEpisodePage(page).click_record_diagnosis_date_button()
375327

376-
# SubjectScreeningSummaryPage(page).verify_latest_event_status_value(
377-
# "A318 - Post-investigation Appointment NOT Required - Result Letter Created"
378-
# )
328+
# The following code is on the record diagnosis date page
329+
RecordDiagnosisDatePage(page).enter_date_in_diagnosis_date_field(datetime.today())
330+
RecordDiagnosisDatePage(page).click_save_button()
331+
332+
SubjectScreeningSummaryPage(page).verify_latest_event_status_value(
333+
"A318 - Post-investigation Appointment NOT Required - Result Letter Created"
334+
)
335+
336+
# This needs to be repeated for two subjects, one old and one not - LNPCP Result
337+
# Older patient
338+
nhs_no = "9764755232"
339+
go_to_investigation_datasets_page(page, nhs_no)
340+
341+
# The following code is on the investigation datasets page
342+
default_investigation_dataset_forms(page)
343+
InvestigationDatasetsPage(page).select_theraputic_procedure_type()
344+
default_investigation_dataset_forms_continuation(page)
345+
investigation_datasets_failure_reason(page)
346+
polyps_for_lnpcp_result(page)
347+
save_investigation_dataset(page)
348+
after_lnpcp_result(page)
349+
350+
handover_subject_to_symptomatic_care(page)
351+
352+
# Younger patient
353+
nhs_no = "9680451623"
354+
go_to_investigation_datasets_page(page, nhs_no)
355+
356+
# The following code is on the investigation datasets page
357+
default_investigation_dataset_forms(page)
358+
InvestigationDatasetsPage(page).select_theraputic_procedure_type()
359+
default_investigation_dataset_forms_continuation(page)
360+
investigation_datasets_failure_reason(page)
361+
polyps_for_lnpcp_result(page)
362+
save_investigation_dataset(page)
363+
after_lnpcp_result(page)
364+
SubjectScreeningSummaryPage(page).verify_latest_event_status_value(
365+
"A318 - Post-investigation Appointment NOT Required - Result Letter Created"
366+
)
367+
SubjectScreeningSummaryPage(page).click_advance_fobt_screening_episode_button()
368+
369+
# The following code is on the advance fobt screening episode page
370+
AdvanceFOBTScreeningEpisodePage(page).click_record_diagnosis_date_button()
371+
372+
# The following code is on the record diagnosis date page
373+
RecordDiagnosisDatePage(page).enter_date_in_diagnosis_date_field(datetime.today())
374+
RecordDiagnosisDatePage(page).click_save_button()
375+
376+
SubjectScreeningSummaryPage(page).verify_latest_event_status_value(
377+
"A318 - Post-investigation Appointment NOT Required - Result Letter Created"
378+
)
379379

380380
# This needs to be repeated for 1 subject, age does not matter - Normal Result
381381
nhs_no_normal = "9823638365"

0 commit comments

Comments
 (0)