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
f17f5b39
Commit
f17f5b39
authored
4 years ago
by
Doug Stull
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Stub GlModal for testing modal footer button
parent
a4a02d02
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
app/assets/javascripts/blob/pipeline_tour_success_modal.vue
app/assets/javascripts/blob/pipeline_tour_success_modal.vue
+1
-1
spec/frontend/blob/pipeline_tour_success_modal_spec.js
spec/frontend/blob/pipeline_tour_success_modal_spec.js
+3
-1
No files found.
app/assets/javascripts/blob/pipeline_tour_success_modal.vue
View file @
f17f5b39
...
...
@@ -95,7 +95,7 @@ export default {
</gl-link>
</
template
>
</gl-sprintf>
<
template
slot=
"modal-footer"
>
<
template
#modal-footer
>
<a
ref=
"goto"
:href=
"goToPipelinesPath"
...
...
This diff is collapsed.
Click to expand it.
spec/frontend/blob/pipeline_tour_success_modal_spec.js
View file @
f17f5b39
...
...
@@ -16,6 +16,9 @@ describe('PipelineTourSuccessModal', () => {
trackingSpy
=
mockTracking
(
'
_category_
'
,
undefined
,
jest
.
spyOn
);
wrapper
=
shallowMount
(
pipelineTourSuccess
,
{
propsData
:
modalProps
,
stubs
:
{
GlModal
,
},
});
cookieSpy
=
jest
.
spyOn
(
Cookies
,
'
remove
'
);
...
...
@@ -51,7 +54,6 @@ describe('PipelineTourSuccessModal', () => {
it
(
'
send an event when go to pipelines is clicked
'
,
()
=>
{
trackingSpy
=
mockTracking
(
'
_category_
'
,
wrapper
.
element
,
jest
.
spyOn
);
const
goToBtn
=
wrapper
.
find
({
ref
:
'
goto
'
});
triggerEvent
(
goToBtn
.
element
);
expect
(
trackingSpy
).
toHaveBeenCalledWith
(
'
_category_
'
,
'
click_button
'
,
{
...
...
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