Commit a65017e5 authored by Sanad Liaquat's avatar Sanad Liaquat

Merge branch 'qa-shl-update-register-spec' into 'master'

E2E: Retry on exception due to bug

See merge request gitlab-org/gitlab!79919
parents 8a10b81b fe521ad6
......@@ -100,8 +100,7 @@ module QA
def exists?
api_get
# TODO: remove 'InternalServerError' from below line after https://gitlab.com/gitlab-org/gitlab/-/issues/349337 has been resolved
rescue ResourceNotFoundError, InternalServerError
rescue ResourceNotFoundError
false
end
......
......@@ -64,7 +64,9 @@ module QA
Page::Profile::Accounts::Show.perform do |show|
show.delete_account(user.password)
end
Support::Waiter.wait_until { !user.exists? }
# TODO: Remove retry_on_exception once https://gitlab.com/gitlab-org/gitlab/-/issues/24294 is resolved
Support::Waiter.wait_until(retry_on_exception: true, sleep_interval: 3) { !user.exists? }
end
it 'allows recreating with same credentials', testcase: 'https://gitlab.com/gitlab-org/gitlab/-/quality/test_cases/347868' do
......
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