Skip to content

Commit 0294e04

Browse files
committed
Fixed failing test
1 parent 7c3eab4 commit 0294e04

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

pages/screening_subject_search/subject_screening_summary_page.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ def __init__(self, page: Page):
8181
"td.epihdr_label:text('Screening Status') + td.epihdr_data"
8282
)
8383
self.latest_event_status_cell = self.page.locator(
84-
"table#subjectSummaryTable tr:has(td:text('Latest Event Status')) td.epihdr_data"
85-
).nth(0)
84+
"td.epihdr_label:text('Latest Event Status') + td.epihdr_data"
85+
)
8686

8787
def wait_for_page_title(self) -> None:
8888
"""Waits for the page to be the Subject Screening Summary"""

tests/regression/regression_tests/fobt_regression_tests/test_scenario_2.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
from pages.communication_production.batch_list_page import BatchListPage
1717

1818

19-
@pytest.mark.wip
2019
@pytest.mark.fobt_regression_tests
2120
def test_scenario_2(page: Page) -> None:
2221
"""
@@ -54,7 +53,7 @@ def test_scenario_2(page: Page) -> None:
5453
"age (y/d)": "66/130",
5554
"active gp practice in hub/sc": "BCS01/BCS001",
5655
}
57-
nhs_no = CreateSubjectSteps().create_custom_subject(requirements)
56+
nhs_no = CreateSubjectSteps().create_custom_subject(requirements, user_role)
5857
if nhs_no is None:
5958
pytest.fail("Failed to create subject: NHS number not returned.")
6059

@@ -167,7 +166,7 @@ def test_scenario_2(page: Page) -> None:
167166
fit_kit = FitKitGeneration().get_fit_kit_for_subject_sql(nhs_no, False, False)
168167
sample_date = datetime.now()
169168
FitKitLogged().log_fit_kits(page, fit_kit, sample_date)
170-
169+
171170
# Then my subject has been updated as follows:
172171
subject_assertion(
173172
nhs_no,

0 commit comments

Comments
 (0)