Commit 5f0908be authored by Dan Davison's avatar Dan Davison

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
# frozen_string_literal: true
module QA::Page module QA::Page
module Project::Job module Project::Job
class Show < QA::Page::Base class Show < QA::Page::Base
...@@ -31,7 +33,9 @@ module QA::Page ...@@ -31,7 +33,9 @@ module QA::Page
private private
def loaded?(wait: 60) 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 end
def completed?(timeout: 60) def completed?(timeout: 60)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment