Skip to content
Snippets Groups Projects
Unverified Commit a08b868e authored by Daniel Davison's avatar Daniel Davison
Browse files

Make the job#successful? method wait by refreshing

parent 535bd574
No related branches found
No related tags found
No related merge requests found
# frozen_string_literal: true
module QA::Page
module Project::Job
class Show < QA::Page::Base
Loading
Loading
@@ -31,7 +33,9 @@ module QA::Page
private
 
def loaded?(wait: 60)
has_element?(:build_trace, wait: wait)
wait(reload: true, max: wait, interval: 1) do
has_element?(:build_trace, wait: 1)
end
end
 
def completed?(timeout: 60)
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment