Skip to content

Commit 4d59a06

Browse files
committed
wip
1 parent 82c99ad commit 4d59a06

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

tests/regression/regression_tests/fobt_regression_tests/test_scenario_8.py

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -428,8 +428,12 @@ def test_scenario_8(page: Page) -> None:
428428

429429
# When I select the advance episode option for "Record Contact with Patient"
430430
# And I record contact with the subject with outcome "Suitable for Radiological Test"
431+
431432
# Then my subject has been updated as follows:
432-
# | Latest event status | A100 Suitable for Radiological Test |
433+
criteria = {
434+
"latest event status": "A100 Suitable for Radiological Test",
435+
}
436+
subject_assertion(nhs_no, criteria)
433437

434438
# When I view the advance episode options
435439
SubjectScreeningSummaryPage(page).click_advance_fobt_screening_episode_button()
@@ -447,7 +451,7 @@ def test_scenario_8(page: Page) -> None:
447451
subject_assertion(nhs_no, criteria)
448452

449453
# When I select the advance episode option for "Attend Diagnostic Test"
450-
# And I attend the subject's diagnostic test today
454+
# And I attend the subject's diagnostic test today
451455

452456
# Then my subject has been updated as follows:
453457
criteria = {
@@ -458,7 +462,10 @@ def test_scenario_8(page: Page) -> None:
458462
# When I view the subject
459463
screening_subject_page_searcher.navigate_to_subject_summary_page(page, nhs_no)
460464

461-
# And I edit the Investigation Dataset for this subject
465+
# And I edit the Investigation Dataset for this subject
466+
SubjectScreeningSummaryPage(page).click_datasets_link()
467+
SubjectDatasetsPage(page).click_investigation_show_datasets()
468+
462469
# And I open all minimized sections on the dataset
463470
# And I mark the Investigation Dataset as completed
464471
# And I set the following fields and values within the Investigation Dataset for this subject:
@@ -495,8 +502,12 @@ def test_scenario_8(page: Page) -> None:
495502

496503
# When I press the save Investigation Dataset button
497504
# And I press OK on my confirmation prompt
505+
498506
# Then my subject has been updated as follows:
499-
# | Latest episode accumulated result | Abnormal |
507+
criteria = {
508+
"latest episode accumulated result": "Abnormal",
509+
}
510+
subject_assertion(nhs_no, criteria)
500511

501512
# When I view the subject
502513
screening_subject_page_searcher.navigate_to_subject_summary_page(page, nhs_no)
@@ -640,6 +651,9 @@ def test_scenario_8(page: Page) -> None:
640651
screening_subject_page_searcher.navigate_to_subject_summary_page(page, nhs_no)
641652

642653
# And I edit the Investigation Dataset for this subject
654+
SubjectScreeningSummaryPage(page).click_datasets_link()
655+
SubjectDatasetsPage(page).click_investigation_show_datasets()
656+
643657
# And I open all minimized sections on the dataset
644658
# And I mark the Investigation Dataset as completed
645659
# And I add the following bowel preparation drugs and values within the Investigation Dataset for this subject:

0 commit comments

Comments
 (0)