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

Merge branch 'qa-dd-improve-job-querying-successful' into 'master'

Make the job#successful? method wait by refreshing

See merge request gitlab-org/gitlab-ce!26344
parents 535bd574 a08b868e
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