Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion features/cpts_ui/logout.feature
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ Feature: The user is able to logout of the application
Scenario: User can log back in from the logout successful page
Given I am on the logout successful page
When I click the "log back in" button
Then I wait for 2 seconds
Then I am on the login page
And I can not see the RBAC banner

Expand Down
1 change: 0 additions & 1 deletion features/cpts_ui/search_for_a_prescription.feature
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,4 @@ Feature: I can visit the Clinical Prescription Tracker Service Website
Scenario: User can see their RBAC banner when a role is selected
Given I am logged in
When I have a selected role
Then I wait for 2 seconds
Then I can see the RBAC banner
1 change: 0 additions & 1 deletion features/cpts_ui/select_your_role.feature
Original file line number Diff line number Diff line change
Expand Up @@ -82,5 +82,4 @@ Feature: Role selection page renders roles properly when logged in
@allure.tms:https://nhsd-jira.digital.nhs.uk/browse/AEA-4645
Scenario: User with a pre selected role sees their pre selected role
Given I am logged in as a user with a pre selected role
When I go to the select your role page
Then I can see the role that has been pre selected
2 changes: 1 addition & 1 deletion features/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"dispenser": {"user_id": "555260695103", "role_id": "555265434108"},
}
LOGIN_USERS = {"user_id": "9449304130"}
MOCK_CIS2_LOGIN_ID_MULTIPLE_ACCESS_ROLES = "555073103100"
MOCK_CIS2_LOGIN_ID_MULTIPLE_ACCESS_ROLES = "555043308597"
MOCK_CIS2_LOGIN_ID_NO_ACCESS_ROLE = "555083343101"
MOCK_CIS2_LOGIN_ID_SINGLE_ACCESS_ROLE = "555043300081"
MOCK_CIS2_LOGIN_ID_NO_ROLES = "555073103101"
Expand Down
5 changes: 0 additions & 5 deletions features/steps/cpts_ui/rbac_banner.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,6 @@ def i_can_see_the_rbac_banner(context):
expect(rbac_banner.rbac_banner).to_be_visible()
expect(rbac_banner.rbac_content).to_be_visible()

assert rbac_banner.rbac_content.text_content(), "No banner content"
assert rbac_banner.banner_text.match(
str(rbac_banner.rbac_content.text_content())
), "Banner content does not match expected pattern"


@then("I can not see the RBAC banner")
def i_can_not_see_the_rbac_banner(context):
Expand Down
9 changes: 0 additions & 9 deletions features/steps/cpts_ui/select_your_role_steps.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# pylint: disable=no-name-in-module
import time

from behave import when, then # pyright: ignore [reportAttributeAccessIssue]
from playwright.sync_api import expect

Expand Down Expand Up @@ -113,10 +111,3 @@ def i_see_logged_in_message(context):
"eps_select_your_role_pre_role_selected"
)
expect(pre_selected_element).to_be_visible()


@then("I wait for {seconds} seconds")
def i_wait_for_seconds(_context, seconds):
wait_time = int(seconds)
time.sleep(wait_time)
print(f"Waited for {wait_time} seconds")