Commit acdb7b0f authored by Dan Davison's avatar Dan Davison

Merge branch 'qa-wait-before-job-log' into 'master'

Wait before job log shows something

See merge request gitlab-org/gitlab!17570
parents 2ba3231c 170a4b6d
......@@ -26,8 +26,16 @@ module QA::Page
end
# Reminder: You may wish to wait for a particular job status before checking output
def output
find_element(:build_trace).text
def output(wait: 5)
result = ''
wait(reload: false, max: wait, interval: 1) do
result = find_element(:build_trace).text
!result.empty?
end
result
end
private
......
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