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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
bf22eb61
Commit
bf22eb61
authored
Dec 11, 2017
by
Winnie Hellmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename popup-dialog to modal
parent
0cdc840b
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
61 additions
and
67 deletions
+61
-67
app/assets/javascripts/groups/components/item_actions.vue
app/assets/javascripts/groups/components/item_actions.vue
+7
-7
app/assets/javascripts/profile/account/components/delete_account_modal.vue
...ripts/profile/account/components/delete_account_modal.vue
+4
-4
app/assets/javascripts/repo/components/new_dropdown/modal.vue
...assets/javascripts/repo/components/new_dropdown/modal.vue
+4
-4
app/assets/javascripts/repo/components/repo_commit_section.vue
...ssets/javascripts/repo/components/repo_commit_section.vue
+8
-8
app/assets/javascripts/repo/components/repo_edit_button.vue
app/assets/javascripts/repo/components/repo_edit_button.vue
+3
-3
app/assets/javascripts/vue_shared/components/modal.vue
app/assets/javascripts/vue_shared/components/modal.vue
+2
-2
app/assets/javascripts/vue_shared/components/recaptcha_dialog.vue
...ts/javascripts/vue_shared/components/recaptcha_dialog.vue
+4
-4
app/assets/stylesheets/framework/modal.scss
app/assets/stylesheets/framework/modal.scss
+9
-2
app/assets/stylesheets/pages/repo.scss
app/assets/stylesheets/pages/repo.scss
+0
-13
spec/features/profile_spec.rb
spec/features/profile_spec.rb
+2
-2
spec/features/projects/tree/create_directory_spec.rb
spec/features/projects/tree/create_directory_spec.rb
+1
-1
spec/features/projects/tree/create_file_spec.rb
spec/features/projects/tree/create_file_spec.rb
+1
-1
spec/javascripts/groups/components/item_actions_spec.js
spec/javascripts/groups/components/item_actions_spec.js
+12
-12
spec/javascripts/vue_shared/components/modal_spec.js
spec/javascripts/vue_shared/components/modal_spec.js
+4
-4
No files found.
app/assets/javascripts/groups/components/item_actions.vue
View file @
bf22eb61
<
script
>
<
script
>
import
{
s__
}
from
'
../../locale
'
;
import
{
s__
}
from
'
../../locale
'
;
import
tooltip
from
'
../../vue_shared/directives/tooltip
'
;
import
tooltip
from
'
../../vue_shared/directives/tooltip
'
;
import
PopupDialog
from
'
../../vue_shared/components/popup_dialog
.vue
'
;
import
modal
from
'
../../vue_shared/components/modal
.vue
'
;
import
eventHub
from
'
../event_hub
'
;
import
eventHub
from
'
../event_hub
'
;
import
{
COMMON_STR
}
from
'
../constants
'
;
import
{
COMMON_STR
}
from
'
../constants
'
;
import
Icon
from
'
../../vue_shared/components/icon.vue
'
;
import
Icon
from
'
../../vue_shared/components/icon.vue
'
;
...
@@ -9,7 +9,7 @@ import Icon from '../../vue_shared/components/icon.vue';
...
@@ -9,7 +9,7 @@ import Icon from '../../vue_shared/components/icon.vue';
export
default
{
export
default
{
components
:
{
components
:
{
Icon
,
Icon
,
PopupDialog
,
modal
,
},
},
directives
:
{
directives
:
{
tooltip
,
tooltip
,
...
@@ -27,7 +27,7 @@ export default {
...
@@ -27,7 +27,7 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
dialog
Status
:
false
,
modal
Status
:
false
,
};
};
},
},
computed
:
{
computed
:
{
...
@@ -43,10 +43,10 @@ export default {
...
@@ -43,10 +43,10 @@ export default {
},
},
methods
:
{
methods
:
{
onLeaveGroup
()
{
onLeaveGroup
()
{
this
.
dialog
Status
=
true
;
this
.
modal
Status
=
true
;
},
},
leaveGroup
(
leaveConfirmed
)
{
leaveGroup
(
leaveConfirmed
)
{
this
.
dialog
Status
=
false
;
this
.
modal
Status
=
false
;
if
(
leaveConfirmed
)
{
if
(
leaveConfirmed
)
{
eventHub
.
$emit
(
'
leaveGroup
'
,
this
.
group
,
this
.
parentGroup
);
eventHub
.
$emit
(
'
leaveGroup
'
,
this
.
group
,
this
.
parentGroup
);
}
}
...
@@ -82,8 +82,8 @@ export default {
...
@@ -82,8 +82,8 @@ export default {
class=
"fa fa-sign-out"
class=
"fa fa-sign-out"
aria-hidden=
"true"
/>
aria-hidden=
"true"
/>
</a>
</a>
<
popup-dialog
<
modal
v-show=
"
dialog
Status"
v-show=
"
modal
Status"
:primary-button-label=
"__('Leave')"
:primary-button-label=
"__('Leave')"
kind=
"warning"
kind=
"warning"
:title=
"__('Are you sure?')"
:title=
"__('Are you sure?')"
...
...
app/assets/javascripts/profile/account/components/delete_account_modal.vue
View file @
bf22eb61
<
script
>
<
script
>
import
popupDialog
from
'
../../../vue_shared/components/popup_dialog
.vue
'
;
import
modal
from
'
../../../vue_shared/components/modal
.vue
'
;
import
{
__
,
s__
,
sprintf
}
from
'
../../../locale
'
;
import
{
__
,
s__
,
sprintf
}
from
'
../../../locale
'
;
import
csrf
from
'
../../../lib/utils/csrf
'
;
import
csrf
from
'
../../../lib/utils/csrf
'
;
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
};
};
},
},
components
:
{
components
:
{
popupDialog
,
modal
,
},
},
computed
:
{
computed
:
{
csrfToken
()
{
csrfToken
()
{
...
@@ -89,7 +89,7 @@ Once you confirm %{deleteAccount}, it cannot be undone or recovered.`),
...
@@ -89,7 +89,7 @@ Once you confirm %{deleteAccount}, it cannot be undone or recovered.`),
<
template
>
<
template
>
<div>
<div>
<
popup-dialog
<
modal
v-if=
"isOpen"
v-if=
"isOpen"
:title=
"s__('Profiles|Delete your account?')"
:title=
"s__('Profiles|Delete your account?')"
:text=
"text"
:text=
"text"
...
@@ -134,7 +134,7 @@ Once you confirm %{deleteAccount}, it cannot be undone or recovered.`),
...
@@ -134,7 +134,7 @@ Once you confirm %{deleteAccount}, it cannot be undone or recovered.`),
</form>
</form>
</
template
>
</
template
>
</
popup-dialog
>
</
modal
>
<button
<button
type=
"button"
type=
"button"
...
...
app/assets/javascripts/repo/components/new_dropdown/modal.vue
View file @
bf22eb61
<
script
>
<
script
>
import
{
mapActions
}
from
'
vuex
'
;
import
{
mapActions
}
from
'
vuex
'
;
import
{
__
}
from
'
../../../locale
'
;
import
{
__
}
from
'
../../../locale
'
;
import
popupDialog
from
'
../../../vue_shared/components/popup_dialog
.vue
'
;
import
modal
from
'
../../../vue_shared/components/modal
.vue
'
;
export
default
{
export
default
{
props
:
{
props
:
{
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
};
};
},
},
components
:
{
components
:
{
popupDialog
,
modal
,
},
},
methods
:
{
methods
:
{
...
mapActions
([
...
mapActions
([
...
@@ -68,7 +68,7 @@
...
@@ -68,7 +68,7 @@
</
script
>
</
script
>
<
template
>
<
template
>
<
popup-dialog
<
modal
:title=
"modalTitle"
:title=
"modalTitle"
:primary-button-label=
"buttonLabel"
:primary-button-label=
"buttonLabel"
kind=
"success"
kind=
"success"
...
@@ -94,5 +94,5 @@
...
@@ -94,5 +94,5 @@
</div>
</div>
</fieldset>
</fieldset>
</form>
</form>
</
popup-dialog
>
</
modal
>
</
template
>
</
template
>
app/assets/javascripts/repo/components/repo_commit_section.vue
View file @
bf22eb61
...
@@ -2,12 +2,12 @@
...
@@ -2,12 +2,12 @@
import
{
mapGetters
,
mapState
,
mapActions
}
from
'
vuex
'
;
import
{
mapGetters
,
mapState
,
mapActions
}
from
'
vuex
'
;
import
tooltip
from
'
../../vue_shared/directives/tooltip
'
;
import
tooltip
from
'
../../vue_shared/directives/tooltip
'
;
import
icon
from
'
../../vue_shared/components/icon.vue
'
;
import
icon
from
'
../../vue_shared/components/icon.vue
'
;
import
PopupDialog
from
'
../../vue_shared/components/popup_dialog
.vue
'
;
import
modal
from
'
../../vue_shared/components/modal
.vue
'
;
import
commitFilesList
from
'
./commit_sidebar/list.vue
'
;
import
commitFilesList
from
'
./commit_sidebar/list.vue
'
;
export
default
{
export
default
{
components
:
{
components
:
{
PopupDialog
,
modal
,
icon
,
icon
,
commitFilesList
,
commitFilesList
,
},
},
...
@@ -16,7 +16,7 @@ export default {
...
@@ -16,7 +16,7 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
showNewBranch
Dialog
:
false
,
showNewBranch
Modal
:
false
,
submitCommitsLoading
:
false
,
submitCommitsLoading
:
false
,
startNewMR
:
false
,
startNewMR
:
false
,
commitMessage
:
''
,
commitMessage
:
''
,
...
@@ -58,7 +58,7 @@ export default {
...
@@ -58,7 +58,7 @@ export default {
start_branch
:
createNewBranch
?
this
.
currentBranch
:
undefined
,
start_branch
:
createNewBranch
?
this
.
currentBranch
:
undefined
,
};
};
this
.
showNewBranch
Dialog
=
false
;
this
.
showNewBranch
Modal
=
false
;
this
.
submitCommitsLoading
=
true
;
this
.
submitCommitsLoading
=
true
;
this
.
commitChanges
({
payload
,
newMr
:
this
.
startNewMR
})
this
.
commitChanges
({
payload
,
newMr
:
this
.
startNewMR
})
...
@@ -76,7 +76,7 @@ export default {
...
@@ -76,7 +76,7 @@ export default {
this
.
checkCommitStatus
()
this
.
checkCommitStatus
()
.
then
((
branchChanged
)
=>
{
.
then
((
branchChanged
)
=>
{
if
(
branchChanged
)
{
if
(
branchChanged
)
{
this
.
showNewBranch
Dialog
=
true
;
this
.
showNewBranch
Modal
=
true
;
}
else
{
}
else
{
this
.
makeCommit
();
this
.
makeCommit
();
}
}
...
@@ -99,13 +99,13 @@ export default {
...
@@ -99,13 +99,13 @@ export default {
'is-collapsed': collapsed,
'is-collapsed': collapsed,
}"
}"
>
>
<
popup-dialog
<
modal
v-if=
"showNewBranch
Dialog
"
v-if=
"showNewBranch
Modal
"
:primary-button-label=
"__('Create new branch')"
:primary-button-label=
"__('Create new branch')"
kind=
"primary"
kind=
"primary"
:title=
"__('Branch has changed')"
:title=
"__('Branch has changed')"
:text=
"__('This branch has changed since you started editing. Would you like to create a new branch?')"
:text=
"__('This branch has changed since you started editing. Would you like to create a new branch?')"
@
toggle=
"showNewBranch
Dialog
= false"
@
toggle=
"showNewBranch
Modal
= false"
@
submit=
"makeCommit(true)"
@
submit=
"makeCommit(true)"
/>
/>
<button
<button
...
...
app/assets/javascripts/repo/components/repo_edit_button.vue
View file @
bf22eb61
<
script
>
<
script
>
import
{
mapGetters
,
mapActions
,
mapState
}
from
'
vuex
'
;
import
{
mapGetters
,
mapActions
,
mapState
}
from
'
vuex
'
;
import
popupDialog
from
'
../../vue_shared/components/popup_dialog
.vue
'
;
import
modal
from
'
../../vue_shared/components/modal
.vue
'
;
export
default
{
export
default
{
components
:
{
components
:
{
popupDialog
,
modal
,
},
},
computed
:
{
computed
:
{
...
mapState
([
...
mapState
([
...
@@ -43,7 +43,7 @@ export default {
...
@@ -43,7 +43,7 @@ export default {
{{
buttonLabel
}}
{{
buttonLabel
}}
</span>
</span>
</button>
</button>
<
popup-dialog
<
modal
v-if=
"discardPopupOpen"
v-if=
"discardPopupOpen"
class=
"text-left"
class=
"text-left"
:primary-button-label=
"__('Discard changes')"
:primary-button-label=
"__('Discard changes')"
...
...
app/assets/javascripts/vue_shared/components/
popup_dialog
.vue
→
app/assets/javascripts/vue_shared/components/
modal
.vue
View file @
bf22eb61
<
script
>
<
script
>
export
default
{
export
default
{
name
:
'
popup-dialog
'
,
name
:
'
modal
'
,
props
:
{
props
:
{
title
:
{
title
:
{
...
@@ -75,7 +75,7 @@ export default {
...
@@ -75,7 +75,7 @@ export default {
<
template
>
<
template
>
<div
class=
"modal-open"
>
<div
class=
"modal-open"
>
<div
<div
class=
"modal
popup-dialog
"
class=
"modal
show
"
role=
"dialog"
role=
"dialog"
tabindex=
"-1"
tabindex=
"-1"
>
>
...
...
app/assets/javascripts/vue_shared/components/recaptcha_dialog.vue
View file @
bf22eb61
<
script
>
<
script
>
import
PopupDialog
from
'
./popup_dialog
.vue
'
;
import
modal
from
'
./modal
.vue
'
;
export
default
{
export
default
{
name
:
'
recaptcha-dialog
'
,
name
:
'
recaptcha-dialog
'
,
...
@@ -20,7 +20,7 @@ export default {
...
@@ -20,7 +20,7 @@ export default {
},
},
components
:
{
components
:
{
PopupDialog
,
modal
,
},
},
methods
:
{
methods
:
{
...
@@ -65,7 +65,7 @@ export default {
...
@@ -65,7 +65,7 @@ export default {
</
script
>
</
script
>
<
template
>
<
template
>
<
popup-dialog
<
modal
kind=
"warning"
kind=
"warning"
class=
"recaptcha-dialog js-recaptcha-dialog"
class=
"recaptcha-dialog js-recaptcha-dialog"
:hide-footer=
"true"
:hide-footer=
"true"
...
@@ -81,5 +81,5 @@ export default {
...
@@ -81,5 +81,5 @@ export default {
v-html=
"html"
v-html=
"html"
></div>
></div>
</div>
</div>
</
popup-dialog
>
</
modal
>
</
template
>
</
template
>
app/assets/stylesheets/framework/modal.scss
View file @
bf22eb61
...
@@ -44,8 +44,15 @@ body.modal-open {
...
@@ -44,8 +44,15 @@ body.modal-open {
}
}
}
}
.modal.popup-dialog
{
.modal
{
display
:
block
;
background-color
:
$black-transparent
;
z-index
:
2100
;
@media
(
min-width
:
$screen-md-min
)
{
.modal-dialog
{
margin
:
30px
auto
;
}
}
}
}
.recaptcha-dialog
.recaptcha-form
{
.recaptcha-dialog
.recaptcha-form
{
...
...
app/assets/stylesheets/pages/repo.scss
View file @
bf22eb61
.modal.popup-dialog
{
display
:
block
;
background-color
:
$black-transparent
;
z-index
:
2100
;
@media
(
min-width
:
$screen-md-min
)
{
.modal-dialog
{
width
:
600px
;
margin
:
30px
auto
;
}
}
}
.project-refs-form
,
.project-refs-form
,
.project-refs-target-form
{
.project-refs-target-form
{
display
:
inline-block
;
display
:
inline-block
;
...
...
spec/features/profile_spec.rb
View file @
bf22eb61
...
@@ -25,7 +25,7 @@ describe 'Profile account page', :js do
...
@@ -25,7 +25,7 @@ describe 'Profile account page', :js do
fill_in
'password'
,
with:
'12345678'
fill_in
'password'
,
with:
'12345678'
page
.
within
'.
popup-dialog
'
do
page
.
within
'.
modal
'
do
click_button
'Delete account'
click_button
'Delete account'
end
end
...
@@ -38,7 +38,7 @@ describe 'Profile account page', :js do
...
@@ -38,7 +38,7 @@ describe 'Profile account page', :js do
fill_in
'password'
,
with:
'testing123'
fill_in
'password'
,
with:
'testing123'
page
.
within
'.
popup-dialog
'
do
page
.
within
'.
modal
'
do
click_button
'Delete account'
click_button
'Delete account'
end
end
...
...
spec/features/projects/tree/create_directory_spec.rb
View file @
bf22eb61
...
@@ -20,7 +20,7 @@ feature 'Multi-file editor new directory', :js do
...
@@ -20,7 +20,7 @@ feature 'Multi-file editor new directory', :js do
click_link
(
'New directory'
)
click_link
(
'New directory'
)
page
.
within
(
'.
popup-dialog
'
)
do
page
.
within
(
'.
modal
'
)
do
find
(
'.form-control'
).
set
(
'foldername'
)
find
(
'.form-control'
).
set
(
'foldername'
)
click_button
(
'Create directory'
)
click_button
(
'Create directory'
)
...
...
spec/features/projects/tree/create_file_spec.rb
View file @
bf22eb61
...
@@ -20,7 +20,7 @@ feature 'Multi-file editor new file', :js do
...
@@ -20,7 +20,7 @@ feature 'Multi-file editor new file', :js do
click_link
(
'New file'
)
click_link
(
'New file'
)
page
.
within
(
'.
popup-dialog
'
)
do
page
.
within
(
'.
modal
'
)
do
find
(
'.form-control'
).
set
(
'filename'
)
find
(
'.form-control'
).
set
(
'filename'
)
click_button
(
'Create file'
)
click_button
(
'Create file'
)
...
...
spec/javascripts/groups/components/item_actions_spec.js
View file @
bf22eb61
...
@@ -36,27 +36,27 @@ describe('ItemActionsComponent', () => {
...
@@ -36,27 +36,27 @@ describe('ItemActionsComponent', () => {
describe
(
'
methods
'
,
()
=>
{
describe
(
'
methods
'
,
()
=>
{
describe
(
'
onLeaveGroup
'
,
()
=>
{
describe
(
'
onLeaveGroup
'
,
()
=>
{
it
(
'
should change `
dialog
Status` prop to `true` which shows confirmation dialog
'
,
()
=>
{
it
(
'
should change `
modal
Status` prop to `true` which shows confirmation dialog
'
,
()
=>
{
expect
(
vm
.
dialog
Status
).
toBeFalsy
();
expect
(
vm
.
modal
Status
).
toBeFalsy
();
vm
.
onLeaveGroup
();
vm
.
onLeaveGroup
();
expect
(
vm
.
dialog
Status
).
toBeTruthy
();
expect
(
vm
.
modal
Status
).
toBeTruthy
();
});
});
});
});
describe
(
'
leaveGroup
'
,
()
=>
{
describe
(
'
leaveGroup
'
,
()
=>
{
it
(
'
should change `
dialog
Status` prop to `false` and emit `leaveGroup` event with required params when called with `leaveConfirmed` as `true`
'
,
()
=>
{
it
(
'
should change `
modal
Status` prop to `false` and emit `leaveGroup` event with required params when called with `leaveConfirmed` as `true`
'
,
()
=>
{
spyOn
(
eventHub
,
'
$emit
'
);
spyOn
(
eventHub
,
'
$emit
'
);
vm
.
dialog
Status
=
true
;
vm
.
modal
Status
=
true
;
vm
.
leaveGroup
(
true
);
vm
.
leaveGroup
(
true
);
expect
(
vm
.
dialog
Status
).
toBeFalsy
();
expect
(
vm
.
modal
Status
).
toBeFalsy
();
expect
(
eventHub
.
$emit
).
toHaveBeenCalledWith
(
'
leaveGroup
'
,
vm
.
group
,
vm
.
parentGroup
);
expect
(
eventHub
.
$emit
).
toHaveBeenCalledWith
(
'
leaveGroup
'
,
vm
.
group
,
vm
.
parentGroup
);
});
});
it
(
'
should change `
dialog
Status` prop to `false` and should NOT emit `leaveGroup` event when called with `leaveConfirmed` as `false`
'
,
()
=>
{
it
(
'
should change `
modal
Status` prop to `false` and should NOT emit `leaveGroup` event when called with `leaveConfirmed` as `false`
'
,
()
=>
{
spyOn
(
eventHub
,
'
$emit
'
);
spyOn
(
eventHub
,
'
$emit
'
);
vm
.
dialog
Status
=
true
;
vm
.
modal
Status
=
true
;
vm
.
leaveGroup
(
false
);
vm
.
leaveGroup
(
false
);
expect
(
vm
.
dialog
Status
).
toBeFalsy
();
expect
(
vm
.
modal
Status
).
toBeFalsy
();
expect
(
eventHub
.
$emit
).
not
.
toHaveBeenCalled
();
expect
(
eventHub
.
$emit
).
not
.
toHaveBeenCalled
();
});
});
});
});
...
@@ -99,9 +99,9 @@ describe('ItemActionsComponent', () => {
...
@@ -99,9 +99,9 @@ describe('ItemActionsComponent', () => {
newVm
.
$destroy
();
newVm
.
$destroy
();
});
});
it
(
'
should show modal dialog when `
dialog
Status` is set to `true`
'
,
()
=>
{
it
(
'
should show modal dialog when `
modal
Status` is set to `true`
'
,
()
=>
{
vm
.
dialog
Status
=
true
;
vm
.
modal
Status
=
true
;
const
modalDialogEl
=
vm
.
$el
.
querySelector
(
'
.modal
.popup-dialog
'
);
const
modalDialogEl
=
vm
.
$el
.
querySelector
(
'
.modal
'
);
expect
(
modalDialogEl
).
toBeDefined
();
expect
(
modalDialogEl
).
toBeDefined
();
expect
(
modalDialogEl
.
querySelector
(
'
.modal-title
'
).
innerText
.
trim
()).
toBe
(
'
Are you sure?
'
);
expect
(
modalDialogEl
.
querySelector
(
'
.modal-title
'
).
innerText
.
trim
()).
toBe
(
'
Are you sure?
'
);
expect
(
modalDialogEl
.
querySelector
(
'
.btn.btn-warning
'
).
innerText
.
trim
()).
toBe
(
'
Leave
'
);
expect
(
modalDialogEl
.
querySelector
(
'
.btn.btn-warning
'
).
innerText
.
trim
()).
toBe
(
'
Leave
'
);
...
...
spec/javascripts/vue_shared/components/
popup_dialog
_spec.js
→
spec/javascripts/vue_shared/components/
modal
_spec.js
View file @
bf22eb61
import
Vue
from
'
vue
'
;
import
Vue
from
'
vue
'
;
import
PopupDialog
from
'
~/vue_shared/components/popup_dialog
.vue
'
;
import
modal
from
'
~/vue_shared/components/modal
.vue
'
;
import
mountComponent
from
'
../../helpers/vue_mount_component_helper
'
;
import
mountComponent
from
'
../../helpers/vue_mount_component_helper
'
;
describe
(
'
PopupDialog
'
,
()
=>
{
describe
(
'
Modal
'
,
()
=>
{
it
(
'
does not render a primary button if no primaryButtonLabel
'
,
()
=>
{
it
(
'
does not render a primary button if no primaryButtonLabel
'
,
()
=>
{
const
popupDialog
=
Vue
.
extend
(
PopupDialog
);
const
modalComponent
=
Vue
.
extend
(
modal
);
const
vm
=
mountComponent
(
popupDialog
);
const
vm
=
mountComponent
(
modalComponent
);
expect
(
vm
.
$el
.
querySelector
(
'
.js-primary-button
'
)).
toBeNull
();
expect
(
vm
.
$el
.
querySelector
(
'
.js-primary-button
'
)).
toBeNull
();
});
});
...
...
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