Skip to content

Commit 32aef6f

Browse files
committed
Updated docstrings
1 parent 5ec37d5 commit 32aef6f

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

pages/organisations/organisations_page.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ def go_to_bureau_page(self) -> None:
5353

5454

5555
class OrganisationSwitchPage:
56+
"""Organisation Switch Page locators and methods for interacting with the page."""
57+
5658
def __init__(self, page: Page):
5759
self.page = page
5860
self.radio_selector = "input[name='organisation']"

tests/regression/organisation_regression_tests_user/test_change_organisation_regression_user.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,17 @@
44
from playwright.sync_api import Page
55
from pages.organisations.organisations_page import OrganisationSwitchPage
66

7+
78
@pytest.mark.regression
89
@pytest.mark.organisation_switch
910
def test_user_can_switch_between_organisations(page: Page) -> None:
1011
"""
11-
Scenario:
12-
User switches from Org 1 → Continue → Home → 'Select Organisation' → Org 2 → Continue → Home → Return.
13-
Verifies switch success using aria role-based 'Continue' button logic.
12+
Feature: Change Organisation
13+
Scenario: Check that an English user with multiple organisations
14+
is able to switch between them
15+
Given I log in to BCSS "England" as user role "MultiOrgUser"
16+
When I change organisation
17+
Then I will be logged in as the alternative organisation.
1418
"""
1519
# Log in as a user with multiple organisations
1620
UserTools.user_login(page, "Specialist Screening Practitioner at BCS009")

0 commit comments

Comments
 (0)