Fix flaky project import spec

parent 7c359b2f
......@@ -25,9 +25,17 @@ module QA
wait_until(max_duration: max_wait) { yield }
end
def wait_for_import_start
wait_until(sleep_interval: 1) do
has_text?('Import in progress')
end
end
def wait_for_import_success
wait_for_import_start
wait_until(max_duration: 120, sleep_interval: 1) do
has_text?('The project was successfully imported.')
has_no_text?('Import in progress')
end
end
end
......
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