File tree Expand file tree Collapse file tree 3 files changed +40
-0
lines changed
tests/regression/organisation Expand file tree Collapse file tree 3 files changed +40
-0
lines changed Original file line number Diff line number Diff line change @@ -43,4 +43,5 @@ markers =
4343 subject_tests: tests that are part of the subject tests suite
4444 subject_search: tests that are part of the subject search test suite
4545 investigation_dataset_tests: tests that are part of the investigation dataset test suite
46+ organisations_users_and_contacts_tests: tests that are part of the Organisations, Users and Contacts test suite
4647 skip_before_test: tests that will not use the before_test fixture
Original file line number Diff line number Diff line change 1+ import pytest
2+ from playwright .sync_api import Page
3+ from classes .organisation import Organisation
4+ from pages import organisations
5+ from pages .base_page import BasePage
6+ from pages .call_and_recall .call_and_recall_page import CallAndRecallPage
7+ from pages .call_and_recall .invitations_monitoring_page import InvitationsMonitoringPage
8+ from pages .call_and_recall .invitations_plans_page import InvitationsPlansPage
9+ from pages .call_and_recall .create_a_plan_page import CreateAPlanPage
10+ from pages .organisations .organisations_page import OrganisationsPage
11+ from utils .user_tools import UserTools
12+
13+
14+ @pytest .fixture (scope = "function" , autouse = True )
15+ def before_each (page : Page ):
16+ """
17+ Before every test is executed, this fixture logs in to BCSS as a test user and navigates to the call and recall page
18+ """
19+ # Log in to BCSS
20+ UserTools .user_login (page , "Bureau Staff" )
21+
22+ # Go to call and recall page
23+ BasePage (page ).go_to_organisations_page ()
24+
25+
26+ @pytest .mark .regression
27+ @pytest .mark .organisations_users_and_contacts_tests
28+ @pytest .mark .wip
29+ def test_check_list_all_organisations_page (page ) -> None :
30+ """
31+ Verifies that the 'List All Organisations' page displays correctly and contains expected elements.
32+ """
33+ OrganisationsPage (page ).go_to_organisations_and_site_details_page ()
Original file line number Diff line number Diff line change 4242 "roles" : [
4343 " Hub Manager, Southern Bowel Cancer Screening Programme Hub"
4444 ]
45+ },
46+ "Bureau Staff" : {
47+ "username" : " BCSS33" ,
48+ "roles" : [
49+ " BCSS Bureau Staff"
50+ ]
4551 },
4652 "Specialist Screening Practitioner at BCS009 & BCS001" : {
4753 "username" : " BCSS120" ,
You can’t perform that action at this time.
0 commit comments