File tree Expand file tree Collapse file tree 3 files changed +13
-1
lines changed
Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ Feature: The user is able to logout of the application
2424 Scenario : User can log back in from the logout successful page
2525 Given I am on the logout successful page
2626 When I click the "log back in" button
27+ Then I wait for 2 seconds
2728 Then I am on the login page
2829 And I can not see the RBAC banner
2930
Original file line number Diff line number Diff line change @@ -29,5 +29,7 @@ Feature: I can visit the Clinical Prescription Tracker Service Website
2929 @allure.tms:https://nhsd-jira.digital.nhs.uk/browse/AEA-4535
3030 @rbac_banner
3131 Scenario : User can see their RBAC banner when a role is selected
32- Given I am logged in with a single access role
32+ Given I am logged in
33+ When I have a selected role
34+ Then I wait for 2 seconds
3335 Then I can see the RBAC banner
Original file line number Diff line number Diff line change 11# pylint: disable=no-name-in-module
2+ import time
3+
24from behave import when , then # pyright: ignore [reportAttributeAccessIssue]
35from playwright .sync_api import expect
46
@@ -111,3 +113,10 @@ def i_see_logged_in_message(context):
111113 "eps_select_your_role_pre_role_selected"
112114 )
113115 expect (pre_selected_element ).to_be_visible ()
116+
117+
118+ @then ("I wait for {seconds} seconds" )
119+ def i_wait_for_seconds (_context , seconds ):
120+ wait_time = int (seconds )
121+ time .sleep (wait_time )
122+ print (f"Waited for { wait_time } seconds" )
You can’t perform that action at this time.
0 commit comments