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
b46db83c
Commit
b46db83c
authored
Sep 28, 2020
by
Justin Ho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use kebab-case for data-testid
parent
7296c119
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
app/assets/javascripts/groups/components/item_actions.vue
app/assets/javascripts/groups/components/item_actions.vue
+2
-2
spec/frontend/groups/components/item_actions_spec.js
spec/frontend/groups/components/item_actions_spec.js
+2
-2
No files found.
app/assets/javascripts/groups/components/item_actions.vue
View file @
b46db83c
...
...
@@ -53,7 +53,7 @@ export default {
:aria-label=
"leaveBtnTitle"
data-container=
"body"
data-placement=
"bottom"
data-testid=
"leave
GroupB
tn"
data-testid=
"leave
-group-b
tn"
class=
"leave-group btn btn-xs no-expand gl-text-gray-500 gl-ml-5"
@
click.prevent=
"onLeaveGroup"
>
...
...
@@ -67,7 +67,7 @@ export default {
:aria-label=
"editBtnTitle"
data-container=
"body"
data-placement=
"bottom"
data-testid=
"edit
GroupB
tn"
data-testid=
"edit
-group-b
tn"
class=
"edit-group btn btn-xs no-expand gl-text-gray-500 gl-ml-5"
>
<gl-icon
name=
"settings"
class=
"position-top-0 align-middle"
/>
...
...
spec/frontend/groups/components/item_actions_spec.js
View file @
b46db83c
...
...
@@ -26,9 +26,9 @@ describe('ItemActions', () => {
}
});
const
findEditGroupBtn
=
()
=>
wrapper
.
find
(
'
[data-testid="edit
GroupB
tn"]
'
);
const
findEditGroupBtn
=
()
=>
wrapper
.
find
(
'
[data-testid="edit
-group-b
tn"]
'
);
const
findEditGroupIcon
=
()
=>
findEditGroupBtn
().
find
(
GlIcon
);
const
findLeaveGroupBtn
=
()
=>
wrapper
.
find
(
'
[data-testid="leave
GroupB
tn"]
'
);
const
findLeaveGroupBtn
=
()
=>
wrapper
.
find
(
'
[data-testid="leave
-group-b
tn"]
'
);
const
findLeaveGroupIcon
=
()
=>
findLeaveGroupBtn
().
find
(
GlIcon
);
describe
(
'
template
'
,
()
=>
{
...
...
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