diff --git a/features/cpts_ui/logout.feature b/features/cpts_ui/logout.feature index 3ff819b5..016972b0 100644 --- a/features/cpts_ui/logout.feature +++ b/features/cpts_ui/logout.feature @@ -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 diff --git a/features/cpts_ui/search_for_a_prescription.feature b/features/cpts_ui/search_for_a_prescription.feature index a8efd549..9ec788ea 100644 --- a/features/cpts_ui/search_for_a_prescription.feature +++ b/features/cpts_ui/search_for_a_prescription.feature @@ -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 diff --git a/features/cpts_ui/select_your_role.feature b/features/cpts_ui/select_your_role.feature index c3bf5371..059592b9 100644 --- a/features/cpts_ui/select_your_role.feature +++ b/features/cpts_ui/select_your_role.feature @@ -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 diff --git a/features/environment.py b/features/environment.py index 4aa0d65a..bfa42da9 100644 --- a/features/environment.py +++ b/features/environment.py @@ -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" diff --git a/features/steps/cpts_ui/rbac_banner.py b/features/steps/cpts_ui/rbac_banner.py index d7bb4d6d..e5204810 100644 --- a/features/steps/cpts_ui/rbac_banner.py +++ b/features/steps/cpts_ui/rbac_banner.py @@ -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): diff --git a/features/steps/cpts_ui/select_your_role_steps.py b/features/steps/cpts_ui/select_your_role_steps.py index bc97d106..7950e2c6 100644 --- a/features/steps/cpts_ui/select_your_role_steps.py +++ b/features/steps/cpts_ui/select_your_role_steps.py @@ -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 @@ -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")