Skip to content

Commit 3cc6d63

Browse files
committed
updating the locators
1 parent 18e8eed commit 3cc6d63

File tree

2 files changed

+13
-11
lines changed

2 files changed

+13
-11
lines changed

pages/screening_subject_search/diagnostic_test_outcome_page.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,12 @@ def __init__(self, page: Page):
2020

2121
def verify_diagnostic_test_outcome(self, outcome_name: str) -> None:
2222
"""Verify that the diagnostic test outcome is visible."""
23-
expect(self.test_outcome_result(outcome_name)).to_be_visible()
23+
expect(self.test_outcome_result).to_be_visible()
24+
2425

2526
def select_test_outcome_option(self, option: str) -> None:
2627
"""Select an option from the Outcome of Diagnostic Test dropdown."""
27-
self.outcome_dropdown.select_option(option)
28+
self.test_outcome_dropdown.select_option(option)
2829

2930
def click_save_button(self) -> None:
3031
"""Click the 'Save' button."""
@@ -37,3 +38,4 @@ class OutcomeOfDiagnosticTest(StrEnum):
3738
Failed_Test_Refer_Another = "20363"
3839
Refer_Symptomatic = "20366"
3940
Refer_Surveillance = "20365"
41+
Investigation_Complete='20360'

tests/smokescreen/test_compartment_6.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
RecordDiagnosisDatePage,
1616
)
1717
from pages.screening_subject_search.diagnostic_test_outcome_page import (
18-
DiagnosticTestOutcomePage,
18+
DiagnosticTestOutcomePage,OutcomeOfDiagnosticTest
1919
)
2020
from pages.datasets.investigation_dataset_page import (
2121
InvestigationDatasetsPage,
@@ -217,7 +217,7 @@ def after_high_risk_result(page: Page) -> None:
217217

218218
# The following code is on the diagnostic test outcome page
219219
DiagnosticTestOutcomePage(page).verify_diagnostic_test_outcome("High-risk findings")
220-
DiagnosticTestOutcomePage(page).select_test_outcome_option("20365")
220+
DiagnosticTestOutcomePage(page).select_test_outcome_option(OutcomeOfDiagnosticTest.Refer_Surveillance)
221221
DiagnosticTestOutcomePage(page).click_save_button()
222222

223223
def after_lnpcp_result(page: Page) -> None:
@@ -235,7 +235,7 @@ def after_lnpcp_result(page: Page) -> None:
235235

236236
# The following code is on the diagnostic test outcome page
237237
DiagnosticTestOutcomePage(page).verify_diagnostic_test_outcome("LNPCP")
238-
DiagnosticTestOutcomePage(page).select_test_outcome_option("20365")
238+
DiagnosticTestOutcomePage(page).select_test_outcome_option(OutcomeOfDiagnosticTest.Refer_Surveillance)
239239
DiagnosticTestOutcomePage(page).click_save_button()
240240

241241
def handover_subject_to_symptomatic_care(page: Page) -> None:
@@ -286,7 +286,7 @@ def test_compartment_6(page: Page, smokescreen_properties: dict) -> None:
286286

287287
# This needs to be repeated for two subjects, one old and one not - High Risk Result
288288
# Older patient
289-
nhs_no = "9109877185"
289+
nhs_no = "9408053060"
290290
go_to_investigation_datasets_page(page, nhs_no)
291291

292292
# The following code is on the investigation datasets page
@@ -301,7 +301,7 @@ def test_compartment_6(page: Page, smokescreen_properties: dict) -> None:
301301
handover_subject_to_symptomatic_care(page)
302302

303303
# Younger patient
304-
nhs_no = "9624131880"
304+
nhs_no = "9867151259"
305305
go_to_investigation_datasets_page(page, nhs_no)
306306

307307
# The following code is on the investigation datasets page
@@ -331,7 +331,7 @@ def test_compartment_6(page: Page, smokescreen_properties: dict) -> None:
331331

332332
# This needs to be repeated for two subjects, one old and one not - LNPCP Result
333333
# Older patient
334-
nhs_no = "9648064792"
334+
nhs_no = "9546869694"
335335
go_to_investigation_datasets_page(page, nhs_no)
336336

337337
# The following code is on the investigation datasets page
@@ -346,7 +346,7 @@ def test_compartment_6(page: Page, smokescreen_properties: dict) -> None:
346346
handover_subject_to_symptomatic_care(page)
347347

348348
# Younger patient
349-
nhs_no = "9627060208"
349+
nhs_no = "9546692670"
350350
go_to_investigation_datasets_page(page, nhs_no)
351351

352352
# The following code is on the investigation datasets page
@@ -374,7 +374,7 @@ def test_compartment_6(page: Page, smokescreen_properties: dict) -> None:
374374
)
375375

376376
# This needs to be repeated for 1 subject, age does not matter - Normal Result
377-
nhs_no_normal = "9965184321"
377+
nhs_no_normal = "9692517950"
378378
go_to_investigation_datasets_page(page, nhs_no_normal)
379379

380380
# The following code is on the investigation datasets page
@@ -404,7 +404,7 @@ def test_compartment_6(page: Page, smokescreen_properties: dict) -> None:
404404
DiagnosticTestOutcomePage(page).verify_diagnostic_test_outcome(
405405
"Normal (No Abnormalities"
406406
)
407-
DiagnosticTestOutcomePage(page).select_test_outcome_option("20360")
407+
DiagnosticTestOutcomePage(page).select_test_outcome_option(OutcomeOfDiagnosticTest.Investigation_Complete)
408408
DiagnosticTestOutcomePage(page).click_save_button()
409409

410410
SubjectScreeningSummaryPage(page).verify_latest_event_status_value(

0 commit comments

Comments
 (0)