diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-05-04 06:09:07 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-05-04 06:09:07 +0300 |
commit | 44ca34ad66b8b7f54c0c8a8f549aafb7293c8a38 (patch) | |
tree | 2c53ff23c11272b1546d5901c95ce1357bceb5c7 /spec/frontend/vue_shared | |
parent | b301036d090d8a7365f98a0444d09f8a09664834 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/vue_shared')
11 files changed, 0 insertions, 68 deletions
diff --git a/spec/frontend/vue_shared/alert_details/alert_status_spec.js b/spec/frontend/vue_shared/alert_details/alert_status_spec.js index 2a37ff2b784..98cb2f5cb0b 100644 --- a/spec/frontend/vue_shared/alert_details/alert_status_spec.js +++ b/spec/frontend/vue_shared/alert_details/alert_status_spec.js @@ -45,12 +45,6 @@ describe('AlertManagementStatus', () => { }); } - afterEach(() => { - if (wrapper) { - wrapper.destroy(); - } - }); - describe('sidebar', () => { it('displays the dropdown status header', () => { mountComponent({ props: { isSidebar: true } }); diff --git a/spec/frontend/vue_shared/alert_details/alert_summary_row_spec.js b/spec/frontend/vue_shared/alert_details/alert_summary_row_spec.js index a2981478954..0ecca0a69b9 100644 --- a/spec/frontend/vue_shared/alert_details/alert_summary_row_spec.js +++ b/spec/frontend/vue_shared/alert_details/alert_summary_row_spec.js @@ -16,13 +16,6 @@ describe('AlertSummaryRow', () => { }); } - afterEach(() => { - if (wrapper) { - wrapper.destroy(); - wrapper = null; - } - }); - describe('Alert Summary Row', () => { beforeEach(() => { mountComponent({ diff --git a/spec/frontend/vue_shared/alert_details/sidebar/alert_sidebar_spec.js b/spec/frontend/vue_shared/alert_details/sidebar/alert_sidebar_spec.js index 3b38349622f..89d02cc9de8 100644 --- a/spec/frontend/vue_shared/alert_details/sidebar/alert_sidebar_spec.js +++ b/spec/frontend/vue_shared/alert_details/sidebar/alert_sidebar_spec.js @@ -44,9 +44,6 @@ describe('Alert Details Sidebar', () => { } afterEach(() => { - if (wrapper) { - wrapper.destroy(); - } mock.restore(); }); diff --git a/spec/frontend/vue_shared/alert_details/sidebar/alert_sidebar_status_spec.js b/spec/frontend/vue_shared/alert_details/sidebar/alert_sidebar_status_spec.js index a3adbcf8d3a..7df744cd11d 100644 --- a/spec/frontend/vue_shared/alert_details/sidebar/alert_sidebar_status_spec.js +++ b/spec/frontend/vue_shared/alert_details/sidebar/alert_sidebar_status_spec.js @@ -45,12 +45,6 @@ describe('Alert Details Sidebar Status', () => { }); } - afterEach(() => { - if (wrapper) { - wrapper.destroy(); - } - }); - describe('sidebar expanded', () => { beforeEach(() => { mountComponent({ diff --git a/spec/frontend/vue_shared/alert_details/system_notes/alert_management_system_note_spec.js b/spec/frontend/vue_shared/alert_details/system_notes/alert_management_system_note_spec.js index 6a750bb99c0..72c16e8ff22 100644 --- a/spec/frontend/vue_shared/alert_details/system_notes/alert_management_system_note_spec.js +++ b/spec/frontend/vue_shared/alert_details/system_notes/alert_management_system_note_spec.js @@ -17,13 +17,6 @@ describe('Alert Details System Note', () => { }); } - afterEach(() => { - if (wrapper) { - wrapper.destroy(); - wrapper = null; - } - }); - describe('System notes', () => { beforeEach(() => { mountComponent({}); diff --git a/spec/frontend/vue_shared/components/metric_images/metric_images_tab_spec.js b/spec/frontend/vue_shared/components/metric_images/metric_images_tab_spec.js index 1789610dba9..4b0b89fe1e7 100644 --- a/spec/frontend/vue_shared/components/metric_images/metric_images_tab_spec.js +++ b/spec/frontend/vue_shared/components/metric_images/metric_images_tab_spec.js @@ -45,13 +45,6 @@ describe('Metric images tab', () => { mountComponent(); }); - afterEach(() => { - if (wrapper) { - wrapper.destroy(); - wrapper = null; - } - }); - const findUploadDropzone = () => wrapper.findComponent(UploadDropzone); const findImages = () => wrapper.findAllComponents(MetricImagesTable); const findModal = () => wrapper.findComponent(GlModal); diff --git a/spec/frontend/vue_shared/components/metric_images/metric_images_table_spec.js b/spec/frontend/vue_shared/components/metric_images/metric_images_table_spec.js index 9c91dc9b5fc..12dca95e9ba 100644 --- a/spec/frontend/vue_shared/components/metric_images/metric_images_table_spec.js +++ b/spec/frontend/vue_shared/components/metric_images/metric_images_table_spec.js @@ -39,13 +39,6 @@ describe('Metrics upload item', () => { ); }; - afterEach(() => { - if (wrapper) { - wrapper.destroy(); - wrapper = null; - } - }); - const findImageLink = () => wrapper.findComponent(GlLink); const findLabelTextSpan = () => wrapper.find('[data-testid="metric-image-label-span"]'); const findCollapseButton = () => wrapper.find('[data-testid="collapse-button"]'); diff --git a/spec/frontend/vue_shared/components/notes/noteable_warning_spec.js b/spec/frontend/vue_shared/components/notes/noteable_warning_spec.js index f87674246d1..d7fcb9a25d4 100644 --- a/spec/frontend/vue_shared/components/notes/noteable_warning_spec.js +++ b/spec/frontend/vue_shared/components/notes/noteable_warning_spec.js @@ -22,13 +22,6 @@ describe('Issue Warning Component', () => { }, }); - afterEach(() => { - if (wrapper) { - wrapper.destroy(); - wrapper = null; - } - }); - describe('when issue is locked but not confidential', () => { beforeEach(() => { wrapper = createComponent({ diff --git a/spec/frontend/vue_shared/components/paginated_table_with_search_and_tabs/paginated_table_with_search_and_tabs_spec.js b/spec/frontend/vue_shared/components/paginated_table_with_search_and_tabs/paginated_table_with_search_and_tabs_spec.js index 25bfa688e5b..9b6f5ae3e38 100644 --- a/spec/frontend/vue_shared/components/paginated_table_with_search_and_tabs/paginated_table_with_search_and_tabs_spec.js +++ b/spec/frontend/vue_shared/components/paginated_table_with_search_and_tabs/paginated_table_with_search_and_tabs_spec.js @@ -90,12 +90,6 @@ describe('AlertManagementEmptyState', () => { mountComponent(); }); - afterEach(() => { - if (wrapper) { - wrapper.destroy(); - } - }); - const EmptyState = () => wrapper.find('.empty-state'); const ItemsTable = () => wrapper.find('.gl-table'); const ErrorAlert = () => wrapper.findComponent(GlAlert); diff --git a/spec/frontend/vue_shared/components/resizable_chart/skeleton_loader_spec.js b/spec/frontend/vue_shared/components/resizable_chart/skeleton_loader_spec.js index bfc3aeb0303..043552baf0c 100644 --- a/spec/frontend/vue_shared/components/resizable_chart/skeleton_loader_spec.js +++ b/spec/frontend/vue_shared/components/resizable_chart/skeleton_loader_spec.js @@ -19,12 +19,6 @@ describe('Resizable Skeleton Loader', () => { expect(labelItems.length).toBe(8); }; - afterEach(() => { - if (wrapper?.destroy) { - wrapper.destroy(); - } - }); - describe('default setup', () => { beforeEach(() => { createComponent({ uniqueKey: null }); diff --git a/spec/frontend/vue_shared/components/slot_switch_spec.js b/spec/frontend/vue_shared/components/slot_switch_spec.js index daca4977817..3a2147c6c89 100644 --- a/spec/frontend/vue_shared/components/slot_switch_spec.js +++ b/spec/frontend/vue_shared/components/slot_switch_spec.js @@ -20,12 +20,6 @@ describe('SlotSwitch', () => { const getChildrenHtml = () => wrapper.findAll('* *').wrappers.map((c) => c.html()); - afterEach(() => { - if (wrapper) { - wrapper.destroy(); - } - }); - it('throws an error if activeSlotNames is missing', () => { expect(() => assertProps(SlotSwitch, {})).toThrow( '[Vue warn]: Missing required prop: "activeSlotNames"', |