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
b5222c4a
Commit
b5222c4a
authored
Mar 30, 2021
by
Fernando
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix broken unit tests for delete_user_modal_spec
* Update button selector logic
parent
282234a4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
spec/frontend/pages/admin/users/components/delete_user_modal_spec.js
...nd/pages/admin/users/components/delete_user_modal_spec.js
+4
-4
No files found.
spec/frontend/pages/admin/users/components/delete_user_modal_spec.js
View file @
b5222c4a
...
...
@@ -11,15 +11,15 @@ describe('User Operation confirmation modal', () => {
let
wrapper
;
let
formSubmitSpy
;
const
findButton
=
(
category
)
=>
const
findButton
=
(
variant
,
category
)
=>
wrapper
.
findAll
(
GlButton
)
.
filter
((
w
)
=>
w
.
attributes
(
'
category
'
)
===
category
)
.
filter
((
w
)
=>
w
.
attributes
(
'
variant
'
)
===
variant
&&
w
.
attributes
(
'
category
'
)
===
category
)
.
at
(
0
);
const
findForm
=
()
=>
wrapper
.
find
(
'
form
'
);
const
findUsernameInput
=
()
=>
wrapper
.
find
(
GlFormInput
);
const
findPrimaryButton
=
()
=>
findButton
(
'
primary
'
);
const
findSecondaryButton
=
()
=>
findButton
(
'
secondary
'
);
const
findPrimaryButton
=
()
=>
findButton
(
'
danger
'
,
'
primary
'
);
const
findSecondaryButton
=
()
=>
findButton
(
'
danger
'
,
'
secondary
'
);
const
findAuthenticityToken
=
()
=>
new
FormData
(
findForm
().
element
).
get
(
'
authenticity_token
'
);
const
getUsername
=
()
=>
findUsernameInput
().
attributes
(
'
value
'
);
const
getMethodParam
=
()
=>
new
FormData
(
findForm
().
element
).
get
(
'
_method
'
);
...
...
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