Commit 9e34315d authored by Natalia Tepluhina's avatar Natalia Tepluhina

Merge branch 'vs/fix-cc-validation-modal' into 'master'

Restore the lost success event handler for hiding the verification modal

See merge request gitlab-org/gitlab!79422
parents eeb178b2 f6c336e9
......@@ -70,6 +70,7 @@ export default {
:initial-height="$options.iframeHeight"
:iframe-url="iframeUrl"
:allowed-origin="allowedOrigin"
@success="$emit('success')"
/>
</gl-modal>
</template>
import { GlSprintf } from '@gitlab/ui';
import { shallowMount } from '@vue/test-utils';
import AccountVerificationModal from 'ee/billings/components/account_verification_modal.vue';
import Zuora from 'ee/billings/components/zuora.vue';
describe('Account verification modal', () => {
let wrapper;
......@@ -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', () => {
beforeEach(() => {
createComponent();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment