Commit 728c47d8 authored by Phil Hughes's avatar Phil Hughes

Merge branch '196190-fix-broken-shallow-mount-with-modal' into 'master'

Fix broken shallowMount with GlModal

See merge request gitlab-org/gitlab!22797
parents 5e39703d d02138fb
import { shallowMount } from '@vue/test-utils';
import { GlModal } from '@gitlab/ui';
import MarkdownField from '~/vue_shared/components/markdown/field.vue';
import { mount } from '@vue/test-utils';
import DesignReplyForm from 'ee/design_management/components/design_notes/design_reply_form.vue';
describe('Design reply form component', () => {
......@@ -13,13 +10,12 @@ describe('Design reply form component', () => {
const findModal = () => wrapper.find({ ref: 'cancelCommentModal' });
function createComponent(props = {}) {
wrapper = shallowMount(DesignReplyForm, {
wrapper = mount(DesignReplyForm, {
propsData: {
value: '',
isSaving: false,
...props,
},
stubs: { MarkdownField, GlModal },
});
}
......
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