Commit 170a4b6d authored by Lin Jen-Shin's avatar Lin Jen-Shin

Wait before job log shows something

parent e12a355c
......@@ -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