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
4032fc49
Commit
4032fc49
authored
Jun 04, 2020
by
Daniel Tian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use vue-test-utils for application row tests
parent
d59c77bb
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
157 additions
and
292 deletions
+157
-292
app/assets/javascripts/clusters/components/application_row.vue
...ssets/javascripts/clusters/components/application_row.vue
+4
-0
spec/frontend/clusters/components/application_row_spec.js
spec/frontend/clusters/components/application_row_spec.js
+153
-292
No files found.
app/assets/javascripts/clusters/components/application_row.vue
View file @
4032fc49
...
@@ -282,12 +282,16 @@ export default {
...
@@ -282,12 +282,16 @@ export default {
},
},
methods
:
{
methods
:
{
installClicked
()
{
installClicked
()
{
if
(
this
.
disabled
||
this
.
installButtonDisabled
)
return
;
eventHub
.
$emit
(
'
installApplication
'
,
{
eventHub
.
$emit
(
'
installApplication
'
,
{
id
:
this
.
id
,
id
:
this
.
id
,
params
:
this
.
installApplicationRequestParams
,
params
:
this
.
installApplicationRequestParams
,
});
});
},
},
updateConfirmed
()
{
updateConfirmed
()
{
if
(
this
.
isUpdating
)
return
;
eventHub
.
$emit
(
'
updateApplication
'
,
{
eventHub
.
$emit
(
'
updateApplication
'
,
{
id
:
this
.
id
,
id
:
this
.
id
,
params
:
this
.
installApplicationRequestParams
,
params
:
this
.
installApplicationRequestParams
,
...
...
spec/frontend/clusters/components/application_row_spec.js
View file @
4032fc49
This diff is collapsed.
Click to expand it.
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