Commit a08b868e authored by ddavison's avatar ddavison

Make the job#successful? method wait by refreshing

parent 535bd574
# 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