Skip to content

Commit ca1718f

Browse files
committed
Add the I wait for 2 seconds step
1 parent 81952a1 commit ca1718f

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

features/cpts_ui/logout.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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

features/cpts_ui/search_for_a_prescription.feature

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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

features/steps/cpts_ui/select_your_role_steps.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# pylint: disable=no-name-in-module
2+
import time
3+
24
from behave import when, then # pyright: ignore [reportAttributeAccessIssue]
35
from 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")

0 commit comments

Comments
 (0)