Skip to content

Commit 47ac901

Browse files
mepr1Andyg79
authored andcommitted
Updated the test and user.json-bcss 19933 (#14)
<!-- markdownlint-disable-next-line first-line-heading --> ## Description <!-- Describe your changes in detail. --> Refactoring users.json to include the organisation for the primary key, e.g. - "Hub Manager State Registered at BCS01" ## Context This makes it easier to identify exactly which user is being used per test. <!-- Why is this change required? What problem does it solve? --> ## Type of changes This was done followed by Kate comments during playwright demo and it will be helpful to recognise the users when we add more. <!-- What types of changes does your code introduce? Put an `x` in all the boxes that apply. --> - [x ] Refactoring (non-breaking change) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would change existing functionality) - [ ] Bug fix (non-breaking change which fixes an issue) ## Checklist <!-- Go over all the following points, and put an `x` in all the boxes that apply. --> - [ x] I am familiar with the [contributing guidelines](https://github.com/nhs-england-tools/playwright-python-blueprint/blob/main/CONTRIBUTING.md) - [x ] I have followed the code style of the project - [ ] I have added tests to cover my changes (where appropriate) - [ ] I have updated the documentation accordingly - [ ] This PR is a result of pair or mob programming --- ## Sensitive Information Declaration To ensure the utmost confidentiality and protect your and others privacy, we kindly ask you to NOT including [PII (Personal Identifiable Information) / PID (Personal Identifiable Data)](https://digital.nhs.uk/data-and-information/keeping-data-safe-and-benefitting-the-public) or any other sensitive data in this PR (Pull Request) and the codebase changes. We will remove any PR that do contain any sensitive information. We really appreciate your cooperation in this matter. - [x ] I confirm that neither PII/PID nor sensitive data are included in this PR and the codebase changes.
1 parent 3c43568 commit 47ac901

19 files changed

+24
-24
lines changed

tests/smokescreen/test_compartment_1.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def test_create_invitations_plan(page: Page, smokescreen_properties: dict) -> No
4343
This is used to create the invitations plan. As it is not always needed it is separate to the main Compartment 1 function
4444
"""
4545
logging.info("Compartment 1 - Create Invitations Plan")
46-
UserTools.user_login(page, "Hub Manager State Registered")
46+
UserTools.user_login(page, "Hub Manager State Registered at BCS01")
4747
# Create plan - England
4848
BasePage(page).go_to_call_and_recall_page()
4949
CallAndRecall(page).go_to_planning_and_monitoring_page()
@@ -77,7 +77,7 @@ def test_compartment_1(page: Page) -> None:
7777
- Processes S10 (FIT) batches
7878
"""
7979
logging.info("Compartment 1 - Generate Invitations")
80-
UserTools.user_login(page, "Hub Manager State Registered")
80+
UserTools.user_login(page, "Hub Manager State Registered at BCS01")
8181

8282
# Generate Invitations
8383
BasePage(page).click_main_menu_link()

tests/smokescreen/test_compartment_2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def test_compartment_2(page: Page, smokescreen_properties: dict) -> None:
4747
- Logging FIT Devices as Spoilt
4848
- Processing the generated S3 batch
4949
"""
50-
UserTools.user_login(page, "Hub Manager State Registered")
50+
UserTools.user_login(page, "Hub Manager State Registered at BCS01")
5151

5252
BasePage(page).go_to_fit_test_kits_page()
5353
FITTestKits(page).go_to_log_devices_page()

tests/smokescreen/test_compartment_3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def test_compartment_3(page: Page, smokescreen_properties: dict) -> None:
4646
It then checks that the status of the subject is as expected using the subject screening summary page
4747
Then it process two batches performing checks on the subjects to ensure they always have the correct event status
4848
"""
49-
UserTools.user_login(page, "Hub Manager State Registered")
49+
UserTools.user_login(page, "Hub Manager State Registered at BCS01")
5050

5151
# Find data , separate it into normal and abnormal, Add results to the test records in the KIT_QUEUE table (i.e. mimic receiving results from the middleware)
5252
# and get device IDs and their flags

tests/test_bcss_19181_users_permit_list.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ def before_test(page: Page):
1313
This fixture confirms that users can log in successfully in to BCSS whilst the approved users list is empty
1414
"""
1515
# Log in to BCSS as bcss401 user, then log out
16-
UserTools.user_login(page, "Hub Manager State Registered")
16+
UserTools.user_login(page, "Hub Manager State Registered at BCS01")
1717
bcss_home.BasePage(page).bowel_cancer_screening_system_header_is_displayed()
1818
bcss_home.BasePage(page).click_log_out_link()
1919
logout.Logout(page).verify_log_out_page()
2020
# Log in to BCSS as bcss118 user, then log out
21-
UserTools.user_login(page, "Screening Centre Manager")
21+
UserTools.user_login(page, "Screening Centre Manager at BCS001")
2222
bcss_home.BasePage(page).bowel_cancer_screening_system_header_is_displayed()
2323
bcss_home.BasePage(page).click_log_out_link()
2424
logout.Logout(page).verify_log_out_page()
@@ -32,14 +32,14 @@ def test_only_users_on_approved_can_login_to_bcss(page: Page) -> None:
3232
# Add bcss401 user to approved users list table
3333
OracleDB().populate_ui_approved_users_table("BCSS401")
3434
# BCSS401 user successfully logs in to BCSS whilst on the approved list
35-
UserTools.user_login(page, "Hub Manager State Registered")
35+
UserTools.user_login(page, "Hub Manager State Registered at BCS01")
3636
bcss_home.BasePage(page).bowel_cancer_screening_system_header_is_displayed()
3737
# BCSS401 user logs out
3838
bcss_home.BasePage(page).click_log_out_link()
3939
logout.Logout(page).verify_log_out_page()
4040

4141
# BCSS118 user fails to logs in to BCSS as they are not on the approved list
42-
UserTools.user_login(page, "Screening Centre Manager")
42+
UserTools.user_login(page, "Screening Centre Manager at BCS001")
4343
# Verify relevant error message is displayed
4444
login_failure.LoginFailureScreen(page).verify_login_failure_screen_is_displayed()
4545
page.close()

tests/test_bowel_scope_page.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def before_each(page: Page):
1212
Before every test is executed, this fixture logs in to BCSS as a test user and navigates to the bowel scope page
1313
"""
1414
# Log in to BCSS
15-
UserTools.user_login(page, "Hub Manager State Registered")
15+
UserTools.user_login(page, "Hub Manager State Registered at BCS01")
1616

1717
# Go to bowel scope page
1818
BasePage(page).go_to_bowel_scope_page()

tests/test_call_and_recall_page.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def before_each(page: Page):
3838
Before every test is executed, this fixture logs in to BCSS as a test user and navigates to the call and recall page
3939
"""
4040
# Log in to BCSS
41-
UserTools.user_login(page, "Hub Manager State Registered")
41+
UserTools.user_login(page, "Hub Manager State Registered at BCS01")
4242

4343
# Go to call and recall page
4444
BasePage(page).go_to_call_and_recall_page()

tests/test_communications_production_page.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def before_each(page: Page):
1616
production page
1717
"""
1818
# Log in to BCSS
19-
UserTools.user_login(page, "Hub Manager State Registered")
19+
UserTools.user_login(page, "Hub Manager State Registered at BCS01")
2020

2121
# Go to communications production page
2222
BasePage(page).go_to_communications_production_page()

tests/test_contacts_list_page.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def before_each(page: Page):
1515
Before every test is executed, this fixture logs in to BCSS as a test user and navigates to the contacts list page
1616
"""
1717
# Log in to BCSS
18-
UserTools.user_login(page, "Hub Manager State Registered")
18+
UserTools.user_login(page, "Hub Manager State Registered at BCS01")
1919

2020
# Go to contacts list page
2121
BasePage(page).go_to_contacts_list_page()

tests/test_download_page.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def before_each(page: Page):
1818
Before every test is executed, this fixture logs in to BCSS as a test user and navigates to the download page
1919
"""
2020
# Log in to BCSS
21-
UserTools.user_login(page, "Hub Manager State Registered")
21+
UserTools.user_login(page, "Hub Manager State Registered at BCS01")
2222

2323
# Go to download page
2424
BasePage(page).go_to_download_page()

tests/test_fit_test_kits_page.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def before_each(page: Page):
2424
fit test kits page
2525
"""
2626
# Log in to BCSS
27-
UserTools.user_login(page, "Hub Manager State Registered")
27+
UserTools.user_login(page, "Hub Manager State Registered at BCS01")
2828

2929
# Go to fit test kits page
3030
BasePage(page).go_to_fit_test_kits_page()

0 commit comments

Comments
 (0)