Commit e57d2eed authored by Sanad Liaquat's avatar Sanad Liaquat

Stablize register user spec

parent 029d4eea
......@@ -98,6 +98,12 @@ module QA
super
end
def exists?
api_get
rescue ResourceNotFoundError
false
end
def api_delete
super
......
......@@ -64,6 +64,7 @@ module QA
Page::Profile::Accounts::Show.perform do |show|
show.delete_account(user.password)
end
Support::Waiter.wait_until { !user.exists? }
end
it 'allows recreating with same credentials', testcase: 'https://gitlab.com/gitlab-org/gitlab/-/quality/test_cases/347868' do
......@@ -83,7 +84,7 @@ module QA
end
after do
@recreated_user.remove_via_api!
@recreated_user&.remove_via_api!
end
def admin_api_client
......
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