Commit 70f0e634 authored by Mark Lapierre's avatar Mark Lapierre Committed by Sanad Liaquat

Consider import successful if project exists

This assumes that a project is successfullly imported if it has a name
parent 9d09f38b
......@@ -25,17 +25,9 @@ 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_no_text?('Import in progress')
has_element?(:project_name_content)
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