Skip to content

Commit 2d824a1

Browse files
BCSS-20549 wip2
1 parent 9d8874f commit 2d824a1

12 files changed

+24
-12
lines changed

pages/contacts_list/view_contacts_page.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,6 @@ def __init__(self, page: Page):
1313

1414
def verify_view_contacts_title(self) -> None:
1515
"""Verify the View Contacts page title is displayed correctly"""
16-
expect(self.view_contacts_title).to_contain_text("View Contacts")
16+
BasePage(self.page).bowel_cancer_screening_page_title_contains_text(
17+
"View Contacts"
18+
)

pages/download/batch_download_request_and_retrieval_page.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ def expect_form_to_have_warning(self) -> None:
2222

2323
def verify_batch_download_request_and_retrieval_title(self) -> None:
2424
"""Verifies that the Batch Download Request and Retrieval page title is displayed correctly."""
25-
expect(self.batch_download_request_and_retrieval_title).to_contain_text(
25+
BasePage(self.page).bowel_cancer_screening_page_title_contains_text(
2626
"Batch Download Request and Retrieval"
2727
)

pages/download/individual_download_request_and_retrieval_page.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def __init__(self, page: Page):
1616

1717
def verify_individual_download_request_and_retrieval_title(self) -> None:
1818
"""Verifies that the Individual Download Request and Retrieval page title is displayed correctly."""
19-
expect(self.individual_download_request_and_retrieval_title).to_contain_text(
19+
BasePage(self.page).bowel_cancer_screening_page_title_contains_text(
2020
"Individual Download Request and Retrieval"
2121
)
2222

pages/download/list_of_individual_downloads_page.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ def __init__(self, page: Page):
1313

1414
def verify_list_of_individual_downloads_title(self) -> None:
1515
"""Verifies that the List of Individual Downloads page title is displayed correctly."""
16-
expect(self.list_of_individual_downloads_title).to_contain_text(
16+
BasePage(self.page).bowel_cancer_screening_page_title_contains_text(
1717
"List of Individual Downloads"
1818
)

pages/fit_test_kits/fit_test_kits_page.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ def __init__(self, page: Page):
4444

4545
def verify_fit_test_kits_title(self) -> None:
4646
"""Verifies that the FIT Test Kits page title is displayed correctly."""
47-
expect(self.fit_test_kits_title).to_contain_text("FIT Test Kits")
47+
BasePage(self.page).bowel_cancer_screening_page_title_contains_text(
48+
"FIT Test Kits"
49+
)
4850

4951
def go_to_fit_rollout_summary_page(self) -> None:
5052
"""Navigates to the FIT Rollout Summary page."""

pages/fit_test_kits/kit_result_audit_page.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,6 @@ def __init__(self, page: Page):
1313

1414
def verify_kit_result_audit_title(self) -> None:
1515
"""Verifies that the Kit Result Audit page title is displayed correctly."""
16-
expect(self.kit_result_audit_title).to_contain_text("Kit Result Audit")
16+
BasePage(self.page).bowel_cancer_screening_page_title_contains_text(
17+
"Kit Result Audit"
18+
)

pages/fit_test_kits/kit_service_management_page.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ def __init__(self, page: Page):
1313

1414
def verify_kit_service_management_title(self) -> None:
1515
"""Verifies that the Kit Service Management page title is displayed correctly."""
16-
expect(self.kit_service_management_title).to_contain_text(
16+
BasePage(self.page).bowel_cancer_screening_page_title_contains_text(
1717
"Kit Service Management"
1818
)

pages/fit_test_kits/log_devices_page.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ def __init__(self, page: Page):
3333

3434
def verify_log_devices_title(self) -> None:
3535
"""Verifies that the Log Devices page title is displayed correctly."""
36-
expect(self.log_devices_title).to_contain_text("Scan Device")
36+
BasePage(self.page).bowel_cancer_screening_page_title_contains_text(
37+
"Scan Device"
38+
)
3739

3840
def fill_fit_device_id_field(self, value) -> None:
3941
"""Fills the FIT Device ID field with the provided value and presses Enter."""

pages/fit_test_kits/maintain_analysers_page.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,6 @@ def __init__(self, page: Page):
1313

1414
def verify_maintain_analysers_title(self) -> None:
1515
"""Verify the Maintain Analysers page title is displayed correctly."""
16-
expect(self.maintain_analysers_title).to_contain_text("Maintain Analysers")
16+
BasePage(self.page).bowel_cancer_screening_page_title_contains_text(
17+
"Maintain Analysers"
18+
)

pages/fit_test_kits/manage_qc_products_page.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,6 @@ def __init__(self, page: Page):
1313

1414
def verify_manage_qc_products_title(self) -> None:
1515
"""Verify the Manage QC Products page title is displayed correctly."""
16-
expect(self.manage_qc_products_title).to_contain_text("FIT QC Products")
16+
BasePage(self.page).bowel_cancer_screening_page_title_contains_text(
17+
"FIT QC Products"
18+
)

0 commit comments

Comments
 (0)