Commit ca428cea authored by ddavison's avatar ddavison

Add clearer message to test failure

If a page has an infinite spinner or
unending asynchronous request, give a
clearer error when a QA test fails
parent 707fdefc
...@@ -11,6 +11,8 @@ module QA ...@@ -11,6 +11,8 @@ module QA
Waiter.wait_until(log: false) do Waiter.wait_until(log: false) do
finished_all_ajax_requests? && finished_all_axios_requests? && (!skip_finished_loading_check ? finished_loading?(wait: 1) : true) finished_all_ajax_requests? && finished_all_axios_requests? && (!skip_finished_loading_check ? finished_loading?(wait: 1) : true)
end end
rescue Repeater::WaitExceededError
raise $!, 'Page did not fully load. This could be due to an unending async request or loading icon.'
end end
def finished_all_axios_requests? def finished_all_axios_requests?
......
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