summaryrefslogtreecommitdiff
path: root/qa
diff options
context:
space:
mode:
authorddavison <ddavison@gitlab.com>2019-03-19 13:27:47 -0700
committerddavison <ddavison@gitlab.com>2019-03-26 19:38:49 -0700
commita08b868e954efe9a1084f5afa0c0cf67c287d50a (patch)
tree699be410da9cff30912781e96fa510fe6910ce23 /qa
parent535bd5743f932c3ab30e047929b32c3ade2f47e5 (diff)
downloadgitlab-ce-a08b868e954efe9a1084f5afa0c0cf67c287d50a.tar.gz
Make the job#successful? method wait by refreshing
Diffstat (limited to 'qa')
-rw-r--r--qa/qa/page/project/job/show.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/qa/qa/page/project/job/show.rb b/qa/qa/page/project/job/show.rb
index 9c218f4ed8b..5853f487f0b 100644
--- a/qa/qa/page/project/job/show.rb
+++ b/qa/qa/page/project/job/show.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
module QA::Page
module Project::Job
class Show < QA::Page::Base
@@ -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)