Commit 4ff2ea96 authored by Ramya Authappan's avatar Ramya Authappan

Merge branch 'qa-shl-fix-flaky-project-import-spec' into 'master'

Fix flaky project import spec

See merge request gitlab-org/gitlab!34041
parents 1cf21b3d c4163a51
......@@ -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