Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add waiting text checks between event click link #7373

Merged
Merged
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
4 changes: 4 additions & 0 deletions testsuite/features/step_definitions/common_steps.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This first step might raise a timeout depending the state and the tab you are isn't it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From my tests, clicking on Events tab always bring you to Pending sub-tab. I will keep an eye on this

And I follow "Pending"
And I wait until I see "Pending Events" text
And I wait at most #{pickup_timeout} 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
Expand Down
Loading