Commit 1d0764dd authored by Natalia Tepluhina's avatar Natalia Tepluhina

Merge branch 'xanf-vtu-30-unsync' into 'master'

Remove sync: false

See merge request gitlab-org/gitlab!22535
parents 6e88bebc f745fbbd
......@@ -36,7 +36,6 @@ function createComponent({
const comp = func(Component, {
localVue,
store,
sync: false,
propsData: {
emptyStateSvgPath,
noDataSvgPath,
......
......@@ -28,7 +28,6 @@ describe('CustomStageForm', () => {
labels: groupLabels,
...props,
},
sync: false,
});
}
......
......@@ -12,7 +12,6 @@ describe('Cycle Analytics LabelsSelector', () => {
labels: groupLabels,
selectedLabelId: props.selectedLabelId || null,
},
sync: false,
});
}
......
......@@ -25,7 +25,6 @@ describe('StageDropdownFilter component', () => {
const createComponent = () => {
wrapper = shallowMount(StageDropdownFilter, {
sync: false,
propsData: {
stages,
},
......
......@@ -36,7 +36,6 @@ function createComponent({ props = {}, shallow = false, Component = StageEventLi
const func = shallow ? shallowMount : mount;
return func(Component, {
attachToDocument: true,
sync: false,
propsData: {
stage: issueStage,
events: issueEvents,
......
......@@ -51,7 +51,6 @@ function createComponent(props = {}, shallow = false) {
stubs: {
'gl-loading-icon': true,
},
sync: false,
attachToDocument: true,
});
}
......
......@@ -37,7 +37,6 @@ describe('ProductivityApp component', () => {
wrapper = shallowMount(ProductivityApp, {
localVue,
store,
sync: false,
propsData,
methods: {
...actionSpies,
......
......@@ -26,7 +26,6 @@ describe('FilterDropdowns component', () => {
wrapper = shallowMount(FilterDropdowns, {
localVue,
store,
sync: false,
propsData: {},
methods: {
...actionSpies,
......
......@@ -25,7 +25,6 @@ describe('MetricChart component', () => {
const factory = (props = defaultProps) => {
wrapper = shallowMount(MetricChart, {
sync: false,
propsData: { ...props },
slots: {
default: mockChart,
......
......@@ -12,7 +12,6 @@ describe('MetricColumn component', () => {
const factory = (props = defaultProps) => {
wrapper = shallowMount(MetricColumn, {
sync: false,
propsData: { ...props },
});
};
......
......@@ -15,7 +15,6 @@ describe('MergeRequestTableRow component', () => {
const factory = (props = defaultProps) => {
wrapper = shallowMount(MergeRequestTableRow, {
sync: false,
propsData: { ...props },
});
};
......
......@@ -21,7 +21,6 @@ describe('MergeRequestTable component', () => {
const factory = (props = defaultProps) => {
wrapper = shallowMount(MergeRequestTable, {
sync: false,
propsData: { ...props },
});
};
......
......@@ -30,7 +30,6 @@ describe('GroupsDropdownFilter component', () => {
const createComponent = (props = {}) => {
wrapper = mount(GroupsDropdownFilter, {
sync: false,
propsData: {
...props,
},
......
......@@ -34,7 +34,6 @@ describe('ProjectsDropdownFilter component', () => {
const createComponent = (props = {}) => {
wrapper = mount(ProjectsDropdownFilter, {
sync: false,
propsData: {
groupId: 1,
...props,
......
......@@ -12,7 +12,6 @@ describe('Approval Check Popover', () => {
propsData: {
title: 'Title',
},
sync: false,
attachToDocument: true,
});
});
......
......@@ -14,7 +14,6 @@ describe('Approval Check Popover', () => {
beforeEach(() => {
wrapper = shallowMount(component, {
propsData: { rule: {} },
sync: false,
});
});
......
......@@ -23,7 +23,6 @@ describe('Approvals ApproversListItem', () => {
const factory = (options = {}) => {
wrapper = shallowMount(ApproversListItem, {
...options,
sync: false,
});
};
......
......@@ -12,7 +12,6 @@ describe('Empty Rule Name', () => {
eligibleApproversDocsPath: 'some/path',
...props,
},
sync: false,
});
};
......
......@@ -11,7 +11,6 @@ describe('Empty Rule', () => {
rule: {},
...props,
},
sync: false,
});
};
......
......@@ -22,7 +22,6 @@ describe('Rule Input', () => {
},
localVue,
store: new Vuex.Store(store),
sync: false,
});
};
......
......@@ -20,7 +20,6 @@ describe('SubscriptionApp component', () => {
wrapper = shallowMount(SubscriptionApp, {
store,
sync: false,
propsData: { ...props },
});
};
......
......@@ -24,7 +24,6 @@ describe('SubscriptionTable component', () => {
wrapper = shallowMount(SubscriptionTable, {
...options,
store,
sync: false,
});
};
......
......@@ -20,7 +20,6 @@ describe('BoardScope', () => {
wrapper = mount(BoardScope, {
propsData,
sync: false,
});
({ vm } = wrapper);
......
......@@ -41,7 +41,6 @@ describe('BoardSettingsSideBar', () => {
data() {
return localState;
},
sync: false,
});
};
......
......@@ -21,7 +21,6 @@ describe('Issue card component', () => {
issueLinkBase: '/test',
...props,
},
sync: false,
attachToDocument: true,
});
};
......
......@@ -42,7 +42,6 @@ describe('Environments', () => {
wrapper = mount(Environments, {
propsData: { ...propsData, environments },
stubs: { deploymentInstance: '<div class="js-deployment-instance"></div>' },
sync: false,
});
table = wrapper.find(GlTable);
......
......@@ -36,7 +36,6 @@ describe('custom metrics form fields component', () => {
...props,
},
csrfToken,
sync: false,
methods,
});
};
......
......@@ -34,7 +34,6 @@ describe('DependenciesApp component', () => {
wrapper = mount(DependenciesApp, {
store,
sync: false,
attachToDocument: true,
propsData: { ...props },
stubs,
......
......@@ -18,7 +18,6 @@ describe('DependenciesActions component', () => {
wrapper = shallowMount(DependenciesActions, {
...options,
store,
sync: false,
attachToDocument: true,
propsData: { ...propsData },
});
......
......@@ -11,7 +11,6 @@ describe('DependenciesTableRow component', () => {
const factory = ({ propsData, ...options } = {}) => {
wrapper = shallowMount(DependenciesTableRow, {
...options,
sync: false,
propsData: { ...propsData },
});
};
......
......@@ -9,7 +9,6 @@ describe('DependenciesTable component', () => {
const factory = ({ propsData, ...options } = {}) => {
wrapper = shallowMount(DependenciesTable, {
...options,
sync: false,
propsData: { ...propsData },
});
};
......
......@@ -18,7 +18,6 @@ describe('DependencyLicenseLinks component', () => {
const licenses = addUrls(createLicenses(numLicenses), numLicensesWithUrl);
wrapper = shallowMount(DependenciesLicenseLinks, {
sync: false,
attachToDocument: true,
propsData: {
licenses,
......
......@@ -7,7 +7,6 @@ describe('DependencyListIncompleteAlert component', () => {
const factory = (options = {}) => {
wrapper = shallowMount(DependencyListIncompleteAlert, {
sync: false,
...options,
});
};
......
......@@ -12,7 +12,6 @@ describe('DependencyListJobFailedAlert component', () => {
const factory = (options = {}) => {
wrapper = shallowMount(DependencyListJobFailedAlert, {
sync: false,
...options,
});
};
......
......@@ -9,7 +9,6 @@ describe('DependencyVulnerability component', () => {
const factory = ({ propsData, ...options } = {}) => {
wrapper = shallowMount(DependencyVulnerability, {
...options,
sync: false,
propsData: { ...propsData },
});
};
......
......@@ -16,7 +16,6 @@ describe('PaginatedDependenciesTable component', () => {
wrapper = shallowMount(PaginatedDependenciesTable, {
store,
sync: false,
propsData: { ...props },
});
};
......
......@@ -13,7 +13,6 @@ describe('Batch delete button component', () => {
propsData: {
isDeleting,
},
sync: false,
directives: {
GlModalDirective,
},
......
......@@ -30,7 +30,6 @@ describe('Design discussions component', () => {
function createComponent(props = {}) {
wrapper = shallowMount(DesignDiscussion, {
sync: false,
propsData: {
discussion: {
id: '0',
......
......@@ -18,7 +18,6 @@ describe('Design note component', () => {
function createComponent(props = {}) {
wrapper = shallowMount(DesignNote, {
sync: false,
propsData: {
note: {},
...props,
......
......@@ -10,7 +10,6 @@ describe('Design reply form component', () => {
function createComponent(props = {}) {
wrapper = shallowMount(DesignReplyForm, {
sync: false,
propsData: {
value: '',
isSaving: false,
......
......@@ -30,7 +30,6 @@ describe('Design overlay component', () => {
function createComponent(props = {}) {
wrapper = shallowMount(DesignOverlay, {
sync: false,
propsData: {
position: {
width: 100,
......
......@@ -6,7 +6,6 @@ describe('Design management large image component', () => {
function createComponent(propsData) {
wrapper = shallowMount(DesignImage, {
sync: false,
propsData,
});
}
......
......@@ -22,7 +22,6 @@ describe('Design management list item component', () => {
isLoading = false,
} = {}) {
wrapper = shallowMount(Item, {
sync: false,
localVue,
router,
propsData: {
......
......@@ -27,7 +27,6 @@ describe('Design management toolbar component', () => {
updatedAt.setHours(updatedAt.getHours() - 1);
wrapper = shallowMount(Toolbar, {
sync: false,
localVue,
router,
propsData: {
......
......@@ -11,7 +11,6 @@ describe('Design management pagination button component', () => {
function createComponent(design = null) {
wrapper = shallowMount(PaginationButton, {
sync: false,
localVue,
router,
propsData: {
......
......@@ -7,7 +7,6 @@ describe('Design management upload button component', () => {
function createComponent(isSaving = false, isInverted = false) {
wrapper = shallowMount(UploadButton, {
attachToDocument: true,
sync: false,
propsData: {
isSaving,
isInverted,
......
......@@ -58,7 +58,6 @@ describe('Design management design index page', () => {
};
wrapper = shallowMount(DesignIndex, {
sync: false,
propsData: { id: '1' },
mocks: { $apollo },
stubs: {
......
......@@ -85,7 +85,6 @@ describe('Design management index page', () => {
};
wrapper = shallowMount(Index, {
sync: false,
mocks: { $apollo },
localVue,
router,
......
......@@ -65,7 +65,6 @@ describe('EE DiffLineNoteForm', () => {
...props,
},
store,
sync: false,
localVue,
});
};
......
......@@ -18,7 +18,6 @@ describe('Deploy Board', () => {
environmentName: environment.name,
...props,
},
sync: false,
});
describe('with valid data', () => {
......
......@@ -25,7 +25,6 @@ describe('Environment Header', () => {
describe('renders name and link to app', () => {
beforeEach(() => {
wrapper = shallowMount(component, {
sync: false,
attachToDocument: true,
propsData,
});
......@@ -61,7 +60,6 @@ describe('Environment Header', () => {
propsData.environment.name = 'review/testing';
wrapper = shallowMount(component, {
sync: false,
attachToDocument: true,
propsData,
});
......@@ -87,7 +85,6 @@ describe('Environment Header', () => {
propsData.hasErrors = true;
wrapper = shallowMount(component, {
sync: false,
attachToDocument: true,
propsData,
});
......@@ -103,7 +100,6 @@ describe('Environment Header', () => {
propsData.hasPipelineFailed = true;
wrapper = shallowMount(component, {
sync: false,
attachToDocument: true,
propsData,
});
......
......@@ -14,7 +14,6 @@ describe('Environment', () => {
environment,
};
wrapper = shallowMount(component, {
sync: false,
attachToDocument: true,
propsData,
});
......@@ -92,7 +91,6 @@ describe('Environment', () => {
},
};
wrapper = shallowMount(component, {
sync: false,
attachToDocument: true,
propsData,
});
......@@ -111,7 +109,6 @@ describe('Environment', () => {
},
};
wrapper = shallowMount(component, {
sync: false,
attachToDocument: true,
propsData,
});
......
......@@ -22,7 +22,6 @@ describe('Project Header', () => {
beforeEach(() => {
wrapper = shallowMount(component, {
sync: false,
attachToDocument: true,
propsData,
});
......
......@@ -50,7 +50,6 @@ describe('SidebarDatePicker', () => {
...mockDatePickerProps,
...props,
},
sync: false,
});
};
......@@ -64,7 +63,6 @@ describe('SidebarDatePicker', () => {
const anotherWrapper = shallowMount(SidebarDatepicker, {
propsData: mockDatePickerProps,
sync: false,
});
const firstInputName = wrapper.find('input').attributes('name');
......
......@@ -21,7 +21,6 @@ describe('Configure Feature Flags Modal', () => {
wrapper = shallowMount(Component, {
propsData,
sync: false,
attachToDocument: true,
});
});
......
......@@ -35,7 +35,6 @@ describe('Edit feature flag form', () => {
},
},
store,
sync: false,
});
};
......
......@@ -15,7 +15,6 @@ describe('Feature flags > Environments dropdown ', () => {
endpoint: `${TEST_HOST}/environments.json'`,
...props,
},
sync: false,
});
};
......
......@@ -31,7 +31,6 @@ describe('Feature flags', () => {
const factory = (propsData = mockData) => {
wrapper = shallowMount(FeatureFlagsComponent, {
propsData,
sync: false,
});
};
......
......@@ -41,7 +41,6 @@ describe('Feature flag table', () => {
const createWrapper = (propsData, opts = {}) => {
wrapper = shallowMount(FeatureFlagsTable, {
propsData,
sync: false,
...opts,
});
};
......
......@@ -39,7 +39,6 @@ describe('feature flag form', () => {
featureFlagsUsersPerEnvironment: true,
},
},
sync: false,
});
};
......
......@@ -22,7 +22,6 @@ describe('New feature flag form', () => {
environmentsEndpoint: 'environments.json',
},
store,
sync: false,
});
};
......
......@@ -16,7 +16,6 @@ describe('ee/ide/components/ide_status_list', () => {
wrapper = mount(IdeStatusList, {
localVue,
sync: false,
store,
});
};
......
......@@ -17,7 +17,6 @@ describe('ee/ide/components/terminal_sync/terminal_sync_status_safe', () => {
wrapper = shallowMount(TerminalSyncStatusSafe, {
localVue,
sync: false,
store,
});
};
......
......@@ -38,7 +38,6 @@ describe('ee/ide/components/terminal_sync/terminal_sync_status', () => {
wrapper = shallowMount(TerminalSyncStatus, {
attachToDocument: true,
localVue,
sync: false,
store,
});
};
......
......@@ -53,7 +53,6 @@ describe('LicenseManagement', () => {
LicenseManagementRow: true,
PaginatedList: PaginatedListMock,
},
sync: false,
store: fakeStore,
});
};
......
......@@ -48,7 +48,6 @@ describe('EnvironmentLogs', () => {
const initWrapper = () => {
wrapper = shallowMount(EnvironmentLogsComponent, {
attachToDocument: true,
sync: false,
propsData,
store,
stubs: {
......
......@@ -21,7 +21,6 @@ describe('LogControlButtons', () => {
const initWrapper = () => {
wrapper = shallowMount(LogControlButtons, {
attachToDocument: true,
sync: false,
});
};
......
......@@ -54,7 +54,6 @@ describe('AlertWidget', () => {
...defaultProps,
...propsData,
},
sync: false,
});
};
const findWidgetForm = () => wrapper.find({ ref: 'widgetForm' });
......
......@@ -26,7 +26,6 @@ describe('Panel Type', () => {
propsData,
store,
localVue,
sync: false,
attachToDocument: true,
});
};
......
......@@ -13,7 +13,6 @@ describe('noteActions', () => {
shallowMount(noteActions, {
store,
propsData,
sync: false,
attachToDocument: true,
});
......
......@@ -12,7 +12,6 @@ describe('project header component', () => {
propsData: {
project: mockOneProject,
},
sync: false,
attachToDocument: true,
});
};
......
......@@ -32,7 +32,6 @@ describe('PackagesApp', () => {
wrapper = mount(PackagesApp, {
propsData,
sync: false,
attachToDocument: true,
});
}
......
......@@ -24,7 +24,6 @@ describe('LicenseComponentLinks component', () => {
components,
title,
},
sync: false,
});
};
......
......@@ -10,7 +10,6 @@ describe('LicensesTableRow component', () => {
const factory = (propsData = {}) => {
wrapper = shallowMount(LicensesTableRow, {
sync: false,
propsData,
});
};
......
......@@ -8,7 +8,6 @@ describe('LicensesTable component', () => {
const factory = (propsData = {}) => {
wrapper = shallowMount(LicensesTable, {
sync: false,
propsData: { ...propsData },
});
};
......
......@@ -22,7 +22,6 @@ describe('PaginatedLicensesTable component', () => {
wrapper = shallowMount(PaginatedLicensesTable, {
store,
sync: false,
});
};
......
......@@ -160,7 +160,6 @@ describe('ServiceDeskRoot', () => {
selectedTemplate: 'Bug',
templates: ['Bug', 'Documentation'],
},
sync: false,
});
wrapper.find('button.btn-success').trigger('click');
......@@ -184,7 +183,6 @@ describe('ServiceDeskRoot', () => {
selectedTemplate: 'Bug',
templates: ['Bug', 'Documentation'],
},
sync: false,
});
wrapper.find('button.btn-success').trigger('click');
......@@ -208,7 +206,6 @@ describe('ServiceDeskRoot', () => {
selectedTemplate: 'Bug',
templates: ['Bug', 'Documentation'],
},
sync: false,
});
wrapper.find('button.btn-success').trigger('click');
......
......@@ -14,7 +14,6 @@ describe('CreateIssueForm', () => {
const createWrapper = () => {
wrapper = shallowMount(CreateIssueForm, {
sync: false,
stubs: {
GlDropdown: GlDropdownStub,
},
......
......@@ -29,7 +29,6 @@ const createComponent = () => {
return shallowMount(RelatedItemsTreeApp, {
store,
sync: false,
});
};
......
......@@ -31,7 +31,6 @@ const createComponent = ({ slots } = {}) => {
return shallowMount(RelatedItemsTreeHeader, {
attachToDocument: true,
sync: false,
store,
slots,
});
......
......@@ -46,7 +46,6 @@ const createComponent = (parentItem = mockParentItem, item = mockItem) => {
return shallowMount(TreeItemBody, {
attachToDocument: true,
sync: false,
store,
propsData: {
parentItem,
......
......@@ -52,7 +52,6 @@ const createComponent = (parentItem = mockParentItem, item = mockItem) => {
parentItem,
item,
},
sync: false,
});
};
......
......@@ -40,7 +40,6 @@ describe('Security Dashboard app', () => {
store = createStore();
wrapper = shallowMount(SecurityDashboardApp, {
store,
sync: false,
methods: {
lockFilter: lockFilterSpy,
setPipelineId: setPipelineIdSpy,
......
......@@ -37,7 +37,6 @@ describe('Group Security Dashboard component', () => {
wrapper = shallowMount(GroupSecurityDashboard, {
localVue,
store,
sync: false,
propsData: {
dashboardDocumentation,
emptyStateSvgPath,
......
......@@ -50,7 +50,6 @@ describe('Instance Security Dashboard component', () => {
wrapper = shallowMount(InstanceSecurityDashboard, {
localVue,
store,
sync: false,
propsData: {
dashboardDocumentation,
emptyStateSvgPath,
......
......@@ -18,7 +18,6 @@ describe('Project List component', () => {
projects,
showLoadingIndicator,
},
sync: false,
});
};
......
......@@ -53,7 +53,6 @@ describe('Project Manager component', () => {
wrapper = shallowMount(ProjectManager, {
localVue,
store,
sync: false,
});
};
......
......@@ -27,7 +27,6 @@ describe('Security Dashboard Table', () => {
wrapper = shallowMount(SecurityDashboardTable, {
localVue,
store,
sync: false,
});
store.state.vulnerabilities.vulnerabilitiesEndpoint = vulnerabilitiesEndpoint;
});
......@@ -93,7 +92,6 @@ describe('Security Dashboard Table', () => {
wrapper = shallowMount(SecurityDashboardTable, {
localVue,
store,
sync: false,
slots: {
emptyState: '<div class="customEmptyState">Hello World</div>',
},
......
......@@ -62,7 +62,6 @@ describe('Vulnerability Chart component', () => {
...stubChildren(Chart),
...stubs,
},
sync: false,
});
};
......
......@@ -64,7 +64,6 @@ describe('Vulnerability Severity component', () => {
wrapper = mount(VulnerabilitySeverity, {
localVue,
store,
sync: false,
propsData,
});
};
......
......@@ -26,7 +26,6 @@ describe('Step', () => {
store,
propsData: { ...initialProps, ...propsData },
localVue,
sync: false,
});
};
......
......@@ -7,7 +7,6 @@ describe('Progress Bar', () => {
const factory = propsData => {
wrapper = shallowMount(component, {
propsData,
sync: false,
});
};
......
......@@ -28,7 +28,6 @@ describe('Subscription Details', () => {
const createComponent = (opts = {}) => {
wrapper = mount(Component, {
localVue,
sync: false,
store,
...opts,
});
......
......@@ -42,7 +42,6 @@ describe('ThreatMonitoringApp component', () => {
...propsData,
},
store,
sync: false,
});
};
......
......@@ -18,7 +18,6 @@ describe('ThreatMonitoringFilters component', () => {
wrapper = shallowMount(ThreatMonitoringFilters, {
store,
sync: false,
});
};
......
......@@ -35,7 +35,6 @@ describe('WafStatisticsHistory component', () => {
wrapper = shallowMount(WafStatisticsHistory, {
localVue,
store,
sync: false,
...options,
});
};
......
......@@ -14,7 +14,6 @@ describe('WafStatisticsSummary component', () => {
wrapper = shallowMount(WafStatisticsSummary, {
store,
sync: false,
});
};
......
......@@ -19,7 +19,6 @@ describe('EE MRWidget approvals footer', () => {
approvalRules: testApprovalRules(),
...props,
},
sync: false,
});
};
......
......@@ -57,7 +57,6 @@ describe('EE MRWidget approvals list', () => {
const createComponent = (props = {}) => {
wrapper = shallowMount(ApprovalsList, {
propsData: props,
sync: false,
});
};
......
......@@ -14,7 +14,6 @@ describe('EE MRWidget approvals summary optional', () => {
const createComponent = (props = {}) => {
wrapper = shallowMount(ApprovalsSummaryOptional, {
propsData: props,
sync: false,
attachToDocument: true,
});
};
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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