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