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
e9f17d1a
Commit
e9f17d1a
authored
Aug 04, 2020
by
sfang97
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change order of buttons in spec
parent
d22a0a38
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
app/assets/javascripts/badges/components/badge_form.vue
app/assets/javascripts/badges/components/badge_form.vue
+1
-1
spec/frontend/badges/components/badge_form_spec.js
spec/frontend/badges/components/badge_form_spec.js
+2
-2
No files found.
app/assets/javascripts/badges/components/badge_form.vue
View file @
e9f17d1a
...
...
@@ -225,7 +225,7 @@ export default {
:loading=
"isSaving"
:label=
"s__('Badges|Save changes')"
type=
"submit"
container-class=
"btn btn-success
gl-justify-content-end
"
container-class=
"btn btn-success"
/>
</div>
<div
v-else
class=
"gl-display-flex gl-justify-content-end form-group"
>
...
...
spec/frontend/badges/components/badge_form_spec.js
View file @
e9f17d1a
...
...
@@ -182,11 +182,11 @@ describe('BadgeForm component', () => {
const
buttons
=
vm
.
$el
.
querySelectorAll
(
'
.row-content-block button
'
);
expect
(
buttons
.
length
).
toBe
(
2
);
const
buttonSaveElement
=
buttons
[
0
];
const
buttonSaveElement
=
buttons
[
1
];
expect
(
buttonSaveElement
).
toBeVisible
();
expect
(
buttonSaveElement
).
toHaveText
(
'
Save changes
'
);
const
buttonCancelElement
=
buttons
[
1
];
const
buttonCancelElement
=
buttons
[
0
];
expect
(
buttonCancelElement
).
toBeVisible
();
expect
(
buttonCancelElement
).
toHaveText
(
'
Cancel
'
);
...
...
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