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
This commit is contained in:
commit
5f0908bead
1 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,5 @@
|
||||||
|
# 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
|
||||||
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)
|
||||||
|
|
Loading…
Reference in a new issue