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
4d899253
Commit
4d899253
authored
Apr 21, 2020
by
Denys Mishunov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Switched to data-testid for testing marker
parent
7f417a21
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
app/assets/javascripts/snippets/components/edit.vue
app/assets/javascripts/snippets/components/edit.vue
+1
-1
spec/frontend/snippets/components/edit_spec.js
spec/frontend/snippets/components/edit_spec.js
+1
-1
No files found.
app/assets/javascripts/snippets/components/edit.vue
View file @
4d899253
...
...
@@ -206,7 +206,7 @@ export default {
>
</
template
>
<
template
#append
>
<gl-button
class=
"js-
snippet-cancel-btn"
:href=
"cancelButtonHref"
>
{{
<gl-button
data-testid=
"
snippet-cancel-btn"
:href=
"cancelButtonHref"
>
{{
__
(
'
Cancel
'
)
}}
</gl-button>
</
template
>
...
...
spec/frontend/snippets/components/edit_spec.js
View file @
4d899253
...
...
@@ -100,7 +100,7 @@ describe('Snippet Edit app', () => {
});
const
findSubmitButton
=
()
=>
wrapper
.
find
(
'
[type=submit]
'
);
const
findCancellButton
=
()
=>
wrapper
.
find
(
'
.js-snippet-cancel-btn
'
);
const
findCancellButton
=
()
=>
wrapper
.
find
(
'
[data-testid="snippet-cancel-btn"]
'
);
describe
(
'
rendering
'
,
()
=>
{
it
(
'
renders loader while the query is in flight
'
,
()
=>
{
...
...
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