From e6eb7441621dffb38d22ccc8fbb72f253dc2330b Mon Sep 17 00:00:00 2001 From: Maxime Noel Date: Mon, 7 Aug 2023 14:59:02 +1200 Subject: [PATCH] Add waiting test check between event click link --- testsuite/features/step_definitions/common_steps.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/testsuite/features/step_definitions/common_steps.rb b/testsuite/features/step_definitions/common_steps.rb index 26f0b089b218..6ca57cd070a8 100644 --- a/testsuite/features/step_definitions/common_steps.rb +++ b/testsuite/features/step_definitions/common_steps.rb @@ -142,12 +142,16 @@ # same name in the events history - however, that's the best we have so far. steps %( When I follow "Events" + And I wait until I see "Pending Events" text And I follow "Pending" - And I wait at most #{pickup_timeout} seconds until I do not see "#{event}" text, refreshing the page + And I wait until I see "Pending Events" text + And I wait at most 180 seconds until I do not see "#{event}" text, refreshing the page And I follow "History" And I wait until I see "System History" text And I wait until I see "#{event}" text, refreshing the page And I follow first "#{event}" + And I wait until I see "This action will be executed after" text + And I wait until I see "#{event}" text And I wait at most #{complete_timeout} seconds until the event is completed, refreshing the page ) end