Skip to content

Commit 702c4e7

Browse files
Megha PrasannanMegha Prasannan
authored andcommitted
Merge branch 'feature/smokescreen_compartment_1' of https://github.com/NHSDigital/bcss-playwright into feature/smokescreen_compartment_1
2 parents 9d0113f + 36a8c78 commit 702c4e7

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

tests/Smokescreen/test_compartment_1.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
import os
66
from my_pages import *
77

8-
9-
108
# To Do:
119
# Create more POMs
1210
# Add more fail states
@@ -33,7 +31,7 @@ def test_example(page: Page) -> None:
3331
CreateAPlan(page).click_save_button()
3432
CreateAPlan(page).fill_note_field("test data")
3533
CreateAPlan(page).click_saveNote_button()
36-
# expect(page).to_have_url("https://bcss-bcss-18680-ddc-bcss.k8s-nonprod.texasplatform.uk/invitation/plan/23159/23162/")
34+
page.locator('#page-title:has-text("Invitation Plans")').wait_for()
3735

3836
# Generate Invitations
3937
NavigationBar(page).click_main_menu_link()
@@ -150,6 +148,6 @@ def subject_search_by_nhs_no(page: Page, nhs_no: str, latest_event_status: str):
150148
SubjectScreeningPage(page).nhs_number_filter.fill(nhs_no)
151149
SubjectScreeningPage(page).nhs_number_filter.press("Enter")
152150
SubjectScreeningPage(page).click_search_button()
153-
SubjectScreeningSummary(page).verify_subject_screening_summary()
154-
SubjectScreeningSummary(page).verify_latest_event_status_header()
155-
SubjectScreeningSummary(page).verify_latest_event_status_value(latest_event_status)
151+
expect(page.get_by_role("cell", name="Subject Screening Summary", exact=True)).to_be_visible()
152+
expect(page.get_by_role("cell", name="Latest Event Status", exact=True)).to_be_visible()
153+
expect(page.get_by_role("cell", name=latest_event_status, exact=True)).to_be_visible()

0 commit comments

Comments
 (0)