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
f6c336e9
Commit
f6c336e9
authored
Jan 28, 2022
by
Vitaly Slobodin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Restore the lost success event handler for hiding the verification modal
Changelog: fixed EE: true
parent
86b33eb5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
ee/app/assets/javascripts/billings/components/account_verification_modal.vue
...cripts/billings/components/account_verification_modal.vue
+1
-0
ee/spec/frontend/billings/components/account_verification_modal_spec.js
...nd/billings/components/account_verification_modal_spec.js
+13
-0
No files found.
ee/app/assets/javascripts/billings/components/account_verification_modal.vue
View file @
f6c336e9
...
@@ -70,6 +70,7 @@ export default {
...
@@ -70,6 +70,7 @@ export default {
:initial-height=
"$options.iframeHeight"
:initial-height=
"$options.iframeHeight"
:iframe-url=
"iframeUrl"
:iframe-url=
"iframeUrl"
:allowed-origin=
"allowedOrigin"
:allowed-origin=
"allowedOrigin"
@
success=
"$emit('success')"
/>
/>
</gl-modal>
</gl-modal>
</template>
</template>
ee/spec/frontend/billings/components/account_verification_modal_spec.js
View file @
f6c336e9
import
{
GlSprintf
}
from
'
@gitlab/ui
'
;
import
{
GlSprintf
}
from
'
@gitlab/ui
'
;
import
{
shallowMount
}
from
'
@vue/test-utils
'
;
import
{
shallowMount
}
from
'
@vue/test-utils
'
;
import
AccountVerificationModal
from
'
ee/billings/components/account_verification_modal.vue
'
;
import
AccountVerificationModal
from
'
ee/billings/components/account_verification_modal.vue
'
;
import
Zuora
from
'
ee/billings/components/zuora.vue
'
;
describe
(
'
Account verification modal
'
,
()
=>
{
describe
(
'
Account verification modal
'
,
()
=>
{
let
wrapper
;
let
wrapper
;
...
@@ -39,6 +40,18 @@ describe('Account verification modal', () => {
...
@@ -39,6 +40,18 @@ describe('Account verification modal', () => {
});
});
});
});
describe
(
'
when zuora emits success
'
,
()
=>
{
beforeEach
(()
=>
{
createComponent
();
});
it
(
'
forwards the success event up
'
,
()
=>
{
wrapper
.
findComponent
(
Zuora
).
vm
.
$emit
(
'
success
'
);
expect
(
wrapper
.
emitted
(
'
success
'
)).
toHaveLength
(
1
);
});
});
describe
(
'
clicking the submit button
'
,
()
=>
{
describe
(
'
clicking the submit button
'
,
()
=>
{
beforeEach
(()
=>
{
beforeEach
(()
=>
{
createComponent
();
createComponent
();
...
...
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