Commit 6735832c authored by Clement Ho's avatar Clement Ho

Merge branch 'xanf-remove-attachToDocument-196750' into 'master'

Remove useless attachToDocument usage in ee/spec/frontend

Closes #196750

See merge request gitlab-org/gitlab!23053
parents 7012cbf0 cb0ebe6c
......@@ -35,7 +35,6 @@ const mockStubs = {
function createComponent({ props = {}, shallow = false, Component = StageEventList, stubs }) {
const func = shallow ? shallowMount : mount;
return func(Component, {
attachToDocument: true,
propsData: {
stage: issueStage,
events: issueEvents,
......
......@@ -51,7 +51,6 @@ function createComponent(props = {}, shallow = false) {
stubs: {
'gl-loading-icon': true,
},
attachToDocument: true,
});
}
......
......@@ -12,7 +12,6 @@ describe('Approval Check Popover', () => {
propsData: {
title: 'Title',
},
attachToDocument: true,
});
});
......
......@@ -21,7 +21,6 @@ describe('Issue card component', () => {
issueLinkBase: '/test',
...props,
},
attachToDocument: true,
});
};
......
......@@ -6,7 +6,6 @@ describe('Design management upload button component', () => {
function createComponent(isSaving = false, isInverted = false) {
wrapper = shallowMount(UploadButton, {
attachToDocument: true,
propsData: {
isSaving,
isInverted,
......
......@@ -21,7 +21,6 @@ describe('Configure Feature Flags Modal', () => {
wrapper = shallowMount(Component, {
propsData,
attachToDocument: true,
});
});
......
......@@ -36,7 +36,6 @@ describe('ee/ide/components/terminal_sync/terminal_sync_status', () => {
});
wrapper = shallowMount(TerminalSyncStatus, {
attachToDocument: true,
localVue,
store,
});
......
......@@ -49,7 +49,6 @@ describe('EnvironmentLogs', () => {
const initWrapper = () => {
wrapper = shallowMount(EnvironmentLogsComponent, {
attachToDocument: true,
propsData,
store,
stubs: {
......
......@@ -19,9 +19,7 @@ describe('LogControlButtons', () => {
const findRefreshBtn = () => wrapper.find('.js-refresh-log');
const initWrapper = () => {
wrapper = shallowMount(LogControlButtons, {
attachToDocument: true,
});
wrapper = shallowMount(LogControlButtons);
};
afterEach(() => {
......
......@@ -18,7 +18,6 @@ describe('Filter component', () => {
GlDropdown: false,
GlSearchBoxByType: false,
},
attachToDocument: true,
propsData,
store,
});
......
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