Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
e57d2eed
Commit
e57d2eed
authored
Dec 23, 2021
by
Sanad Liaquat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Stablize register user spec
parent
029d4eea
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
qa/qa/resource/user.rb
qa/qa/resource/user.rb
+6
-0
qa/qa/specs/features/browser_ui/1_manage/login/register_spec.rb
...specs/features/browser_ui/1_manage/login/register_spec.rb
+2
-1
No files found.
qa/qa/resource/user.rb
View file @
e57d2eed
...
...
@@ -98,6 +98,12 @@ module QA
super
end
def
exists?
api_get
rescue
ResourceNotFoundError
false
end
def
api_delete
super
...
...
qa/qa/specs/features/browser_ui/1_manage/login/register_spec.rb
View file @
e57d2eed
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment