diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-09 12:08:36 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-09 12:08:36 +0300 |
commit | a74ca2457e7c8a26ff5e12211d741b473c86c0b8 (patch) | |
tree | 94c510c39dc9646ffd0c3af676ada798af74a444 /spec/frontend/admin | |
parent | 06af519348e7254062a7d03ef3e421356ff8c64a (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/admin')
20 files changed, 0 insertions, 76 deletions
diff --git a/spec/frontend/admin/analytics/devops_score/components/devops_score_callout_spec.js b/spec/frontend/admin/analytics/devops_score/components/devops_score_callout_spec.js index c9a899ab78b..06f9ffeffcd 100644 --- a/spec/frontend/admin/analytics/devops_score/components/devops_score_callout_spec.js +++ b/spec/frontend/admin/analytics/devops_score/components/devops_score_callout_spec.js @@ -19,10 +19,6 @@ describe('DevopsScoreCallout', () => { const findBanner = () => wrapper.findComponent(GlBanner); - afterEach(() => { - wrapper.destroy(); - }); - describe('with no cookie set', () => { beforeEach(() => { utils.setCookie = jest.fn(); diff --git a/spec/frontend/admin/application_settings/inactive_project_deletion/components/form_spec.js b/spec/frontend/admin/application_settings/inactive_project_deletion/components/form_spec.js index 2db997942a7..969844f981c 100644 --- a/spec/frontend/admin/application_settings/inactive_project_deletion/components/form_spec.js +++ b/spec/frontend/admin/application_settings/inactive_project_deletion/components/form_spec.js @@ -29,10 +29,6 @@ describe('Form component', () => { wrapper = mountFn(SettingsForm, { propsData }); }; - afterEach(() => { - wrapper.destroy(); - }); - describe('Enable inactive project deletion', () => { it('has the checkbox', () => { createComponent(); diff --git a/spec/frontend/admin/applications/components/delete_application_spec.js b/spec/frontend/admin/applications/components/delete_application_spec.js index 1a400a101b5..315c38a2bbc 100644 --- a/spec/frontend/admin/applications/components/delete_application_spec.js +++ b/spec/frontend/admin/applications/components/delete_application_spec.js @@ -31,7 +31,6 @@ describe('DeleteApplication', () => { }); afterEach(() => { - wrapper.destroy(); resetHTMLFixture(); }); diff --git a/spec/frontend/admin/background_migrations/components/database_listbox_spec.js b/spec/frontend/admin/background_migrations/components/database_listbox_spec.js index 212f4c0842c..d7b319a3d5e 100644 --- a/spec/frontend/admin/background_migrations/components/database_listbox_spec.js +++ b/spec/frontend/admin/background_migrations/components/database_listbox_spec.js @@ -26,10 +26,6 @@ describe('BackgroundMigrationsDatabaseListbox', () => { }); }; - afterEach(() => { - wrapper.destroy(); - }); - const findGlCollapsibleListbox = () => wrapper.findComponent(GlCollapsibleListbox); describe('template always', () => { diff --git a/spec/frontend/admin/broadcast_messages/components/base_spec.js b/spec/frontend/admin/broadcast_messages/components/base_spec.js index 13619f536c8..50d8eeb563d 100644 --- a/spec/frontend/admin/broadcast_messages/components/base_spec.js +++ b/spec/frontend/admin/broadcast_messages/components/base_spec.js @@ -41,7 +41,6 @@ describe('BroadcastMessagesBase', () => { afterEach(() => { axiosMock.restore(); - wrapper.destroy(); }); it('renders the table and pagination when there are existing messages', () => { diff --git a/spec/frontend/admin/broadcast_messages/components/messages_table_spec.js b/spec/frontend/admin/broadcast_messages/components/messages_table_spec.js index 349fab03853..432bfefeb18 100644 --- a/spec/frontend/admin/broadcast_messages/components/messages_table_spec.js +++ b/spec/frontend/admin/broadcast_messages/components/messages_table_spec.js @@ -21,10 +21,6 @@ describe('MessagesTable', () => { }); } - afterEach(() => { - wrapper.destroy(); - }); - it('renders a table row for each message', () => { createComponent(); diff --git a/spec/frontend/admin/deploy_keys/components/table_spec.js b/spec/frontend/admin/deploy_keys/components/table_spec.js index ef5796f634b..a05654a1d25 100644 --- a/spec/frontend/admin/deploy_keys/components/table_spec.js +++ b/spec/frontend/admin/deploy_keys/components/table_spec.js @@ -91,10 +91,6 @@ describe('DeployKeysTable', () => { }); }; - afterEach(() => { - wrapper.destroy(); - }); - it('renders page title', () => { createComponent(); diff --git a/spec/frontend/admin/signup_restrictions/components/signup_checkbox_spec.js b/spec/frontend/admin/signup_restrictions/components/signup_checkbox_spec.js index eecc21e206b..9e55716cc30 100644 --- a/spec/frontend/admin/signup_restrictions/components/signup_checkbox_spec.js +++ b/spec/frontend/admin/signup_restrictions/components/signup_checkbox_spec.js @@ -28,10 +28,6 @@ describe('Signup Form', () => { const findCheckboxLabel = () => findByTestId('label'); const findHelpText = () => findByTestId('helpText'); - afterEach(() => { - wrapper.destroy(); - }); - describe('Signup Checkbox', () => { beforeEach(() => { mountComponent(); diff --git a/spec/frontend/admin/signup_restrictions/components/signup_form_spec.js b/spec/frontend/admin/signup_restrictions/components/signup_form_spec.js index f2a951bcc76..9192fc12401 100644 --- a/spec/frontend/admin/signup_restrictions/components/signup_form_spec.js +++ b/spec/frontend/admin/signup_restrictions/components/signup_form_spec.js @@ -40,8 +40,6 @@ describe('Signup Form', () => { const findModal = () => wrapper.findComponent(GlModal); afterEach(() => { - wrapper.destroy(); - formSubmitSpy = null; }); diff --git a/spec/frontend/admin/statistics_panel/components/app_spec.js b/spec/frontend/admin/statistics_panel/components/app_spec.js index 4c362a31068..60e46cddd7e 100644 --- a/spec/frontend/admin/statistics_panel/components/app_spec.js +++ b/spec/frontend/admin/statistics_panel/components/app_spec.js @@ -30,10 +30,6 @@ describe('Admin statistics app', () => { store = createStore(); }); - afterEach(() => { - wrapper.destroy(); - }); - const findStats = (idx) => wrapper.findAll('.js-stats').at(idx); describe('template', () => { diff --git a/spec/frontend/admin/topics/components/remove_avatar_spec.js b/spec/frontend/admin/topics/components/remove_avatar_spec.js index f058eef3a3a..c069203d046 100644 --- a/spec/frontend/admin/topics/components/remove_avatar_spec.js +++ b/spec/frontend/admin/topics/components/remove_avatar_spec.js @@ -36,10 +36,6 @@ describe('RemoveAvatar', () => { createComponent(); }); - afterEach(() => { - wrapper.destroy(); - }); - describe('the button component', () => { it('displays the remove button', () => { const button = findButton(); diff --git a/spec/frontend/admin/topics/components/topic_select_spec.js b/spec/frontend/admin/topics/components/topic_select_spec.js index 738cbd88c4c..113a0e3d404 100644 --- a/spec/frontend/admin/topics/components/topic_select_spec.js +++ b/spec/frontend/admin/topics/components/topic_select_spec.js @@ -59,7 +59,6 @@ describe('TopicSelect', () => { } afterEach(() => { - wrapper.destroy(); jest.clearAllMocks(); }); diff --git a/spec/frontend/admin/users/components/actions/actions_spec.js b/spec/frontend/admin/users/components/actions/actions_spec.js index 8e9652332c1..4aeaa5356b4 100644 --- a/spec/frontend/admin/users/components/actions/actions_spec.js +++ b/spec/frontend/admin/users/components/actions/actions_spec.js @@ -22,11 +22,6 @@ describe('Action components', () => { }); }; - afterEach(() => { - wrapper.destroy(); - wrapper = null; - }); - describe('CONFIRMATION_ACTIONS', () => { it.each(CONFIRMATION_ACTIONS)('renders a dropdown item for "%s"', (action) => { initComponent({ diff --git a/spec/frontend/admin/users/components/app_spec.js b/spec/frontend/admin/users/components/app_spec.js index 913732aae42..d40089edc82 100644 --- a/spec/frontend/admin/users/components/app_spec.js +++ b/spec/frontend/admin/users/components/app_spec.js @@ -17,11 +17,6 @@ describe('AdminUsersApp component', () => { }); }; - afterEach(() => { - wrapper.destroy(); - wrapper = null; - }); - describe('when initialized', () => { beforeEach(() => { initComponent(); diff --git a/spec/frontend/admin/users/components/modals/delete_user_modal_spec.js b/spec/frontend/admin/users/components/modals/delete_user_modal_spec.js index 2e892e292d7..efb951f4ad2 100644 --- a/spec/frontend/admin/users/components/modals/delete_user_modal_spec.js +++ b/spec/frontend/admin/users/components/modals/delete_user_modal_spec.js @@ -73,11 +73,6 @@ describe('Delete user modal', () => { formSubmitSpy = jest.spyOn(HTMLFormElement.prototype, 'submit').mockImplementation(); }); - afterEach(() => { - wrapper.destroy(); - wrapper = null; - }); - it('renders modal with form included', () => { createComponent(); expect(findForm().element).toMatchSnapshot(); diff --git a/spec/frontend/admin/users/components/user_actions_spec.js b/spec/frontend/admin/users/components/user_actions_spec.js index 84966998e82..1a2cc3e5c34 100644 --- a/spec/frontend/admin/users/components/user_actions_spec.js +++ b/spec/frontend/admin/users/components/user_actions_spec.js @@ -37,11 +37,6 @@ describe('AdminUserActions component', () => { }); }; - afterEach(() => { - wrapper.destroy(); - wrapper = null; - }); - describe('edit button', () => { describe('when the user has an edit action attached', () => { beforeEach(() => { diff --git a/spec/frontend/admin/users/components/user_avatar_spec.js b/spec/frontend/admin/users/components/user_avatar_spec.js index dc1770daee5..02e648d2b77 100644 --- a/spec/frontend/admin/users/components/user_avatar_spec.js +++ b/spec/frontend/admin/users/components/user_avatar_spec.js @@ -34,11 +34,6 @@ describe('AdminUserAvatar component', () => { }); }; - afterEach(() => { - wrapper.destroy(); - wrapper = null; - }); - describe('when initialized', () => { beforeEach(() => { initComponent(); diff --git a/spec/frontend/admin/users/components/user_date_spec.js b/spec/frontend/admin/users/components/user_date_spec.js index 73be33d5a9d..19c1cd38a50 100644 --- a/spec/frontend/admin/users/components/user_date_spec.js +++ b/spec/frontend/admin/users/components/user_date_spec.js @@ -17,11 +17,6 @@ describe('FormatDate component', () => { }); }; - afterEach(() => { - wrapper.destroy(); - wrapper = null; - }); - it.each` date | dateFormat | output ${mockDate} | ${undefined} | ${'Nov 13, 2020'} diff --git a/spec/frontend/admin/users/components/users_table_spec.js b/spec/frontend/admin/users/components/users_table_spec.js index 3d3cdadb382..6f658fd2e59 100644 --- a/spec/frontend/admin/users/components/users_table_spec.js +++ b/spec/frontend/admin/users/components/users_table_spec.js @@ -57,11 +57,6 @@ describe('AdminUsersTable component', () => { }); }; - afterEach(() => { - wrapper.destroy(); - wrapper = null; - }); - describe('when there are users', () => { beforeEach(() => { initComponent(); diff --git a/spec/frontend/admin/users/index_spec.js b/spec/frontend/admin/users/index_spec.js index b51858d5129..d8a94ee5e1d 100644 --- a/spec/frontend/admin/users/index_spec.js +++ b/spec/frontend/admin/users/index_spec.js @@ -19,8 +19,6 @@ describe('initAdminUsersApp', () => { }); afterEach(() => { - wrapper.destroy(); - wrapper = null; el = null; }); @@ -47,8 +45,6 @@ describe('initAdminUserActions', () => { }); afterEach(() => { - wrapper.destroy(); - wrapper = null; el = null; }); |