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/clusters | |
parent | 06af519348e7254062a7d03ef3e421356ff8c64a (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/clusters')
11 files changed, 0 insertions, 39 deletions
diff --git a/spec/frontend/clusters/agents/components/activity_events_list_spec.js b/spec/frontend/clusters/agents/components/activity_events_list_spec.js index 6b374b6620d..770815a9403 100644 --- a/spec/frontend/clusters/agents/components/activity_events_list_spec.js +++ b/spec/frontend/clusters/agents/components/activity_events_list_spec.js @@ -44,10 +44,6 @@ describe('ActivityEvents', () => { const findAllActivityHistoryItems = () => wrapper.findAllComponents(ActivityHistoryItem); const findSectionTitle = (at) => wrapper.findAllByTestId('activity-section-title').at(at); - afterEach(() => { - wrapper.destroy(); - }); - describe('while the agentEvents query is loading', () => { it('displays a loading icon', async () => { createWrapper(); diff --git a/spec/frontend/clusters/agents/components/activity_history_item_spec.js b/spec/frontend/clusters/agents/components/activity_history_item_spec.js index 68f6f11aa8f..48460519c6c 100644 --- a/spec/frontend/clusters/agents/components/activity_history_item_spec.js +++ b/spec/frontend/clusters/agents/components/activity_history_item_spec.js @@ -25,10 +25,6 @@ describe('ActivityHistoryItem', () => { const findHistoryItem = () => wrapper.findComponent(HistoryItem); const findTimeAgo = () => wrapper.findComponent(TimeAgoTooltip); - afterEach(() => { - wrapper.destroy(); - }); - describe.each` kind | icon | title | lineNumber ${'token_created'} | ${EVENT_DETAILS.token_created.eventTypeIcon} | ${sprintf(EVENT_DETAILS.token_created.title, { tokenName: agentName })} | ${0} diff --git a/spec/frontend/clusters/agents/components/agent_integration_status_row_spec.js b/spec/frontend/clusters/agents/components/agent_integration_status_row_spec.js index db1219ccb41..ac0ce89f334 100644 --- a/spec/frontend/clusters/agents/components/agent_integration_status_row_spec.js +++ b/spec/frontend/clusters/agents/components/agent_integration_status_row_spec.js @@ -25,10 +25,6 @@ describe('IntegrationStatus', () => { const findIcon = () => wrapper.findComponent(GlIcon); const findBadge = () => wrapper.findComponent(GlBadge); - afterEach(() => { - wrapper.destroy(); - }); - describe('icon', () => { const icon = 'status-success'; const iconClass = 'gl-text-green-500'; diff --git a/spec/frontend/clusters/agents/components/create_token_button_spec.js b/spec/frontend/clusters/agents/components/create_token_button_spec.js index aadd11e9b5f..5a8906813cf 100644 --- a/spec/frontend/clusters/agents/components/create_token_button_spec.js +++ b/spec/frontend/clusters/agents/components/create_token_button_spec.js @@ -29,10 +29,6 @@ describe('CreateTokenButton', () => { }); }; - afterEach(() => { - wrapper.destroy(); - }); - describe('when user can create token', () => { beforeEach(() => { createWrapper(); diff --git a/spec/frontend/clusters/agents/components/create_token_modal_spec.js b/spec/frontend/clusters/agents/components/create_token_modal_spec.js index 0d10801e80e..ff698952c6b 100644 --- a/spec/frontend/clusters/agents/components/create_token_modal_spec.js +++ b/spec/frontend/clusters/agents/components/create_token_modal_spec.js @@ -119,7 +119,6 @@ describe('CreateTokenModal', () => { }); afterEach(() => { - wrapper.destroy(); apolloProvider = null; createResponse = null; }); diff --git a/spec/frontend/clusters/agents/components/integration_status_spec.js b/spec/frontend/clusters/agents/components/integration_status_spec.js index 36f0e622452..28a59391578 100644 --- a/spec/frontend/clusters/agents/components/integration_status_spec.js +++ b/spec/frontend/clusters/agents/components/integration_status_spec.js @@ -27,10 +27,6 @@ describe('IntegrationStatus', () => { const findAgentStatus = () => wrapper.findByTestId('agent-status'); const findAgentIntegrationStatusRows = () => wrapper.findAllComponents(AgentIntegrationStatusRow); - afterEach(() => { - wrapper.destroy(); - }); - it.each` lastUsedAt | status | iconName ${null} | ${'Never connected'} | ${'status-neutral'} diff --git a/spec/frontend/clusters/agents/components/revoke_token_button_spec.js b/spec/frontend/clusters/agents/components/revoke_token_button_spec.js index 6521221cbd7..9199c76585f 100644 --- a/spec/frontend/clusters/agents/components/revoke_token_button_spec.js +++ b/spec/frontend/clusters/agents/components/revoke_token_button_spec.js @@ -105,7 +105,6 @@ describe('RevokeTokenButton', () => { }); afterEach(() => { - wrapper.destroy(); apolloProvider = null; revokeSpy = null; }); diff --git a/spec/frontend/clusters/agents/components/show_spec.js b/spec/frontend/clusters/agents/components/show_spec.js index efa85136b17..118a3af48e0 100644 --- a/spec/frontend/clusters/agents/components/show_spec.js +++ b/spec/frontend/clusters/agents/components/show_spec.js @@ -79,10 +79,6 @@ describe('ClusterAgentShow', () => { const findActivity = () => wrapper.findComponent(ActivityEvents); const findIntegrationStatus = () => wrapper.findComponent(IntegrationStatus); - afterEach(() => { - wrapper.destroy(); - }); - describe('default behaviour', () => { beforeEach(async () => { createWrapper({ clusterAgent: defaultClusterAgent }); diff --git a/spec/frontend/clusters/agents/components/token_table_spec.js b/spec/frontend/clusters/agents/components/token_table_spec.js index 334615f1818..1a6aeedb694 100644 --- a/spec/frontend/clusters/agents/components/token_table_spec.js +++ b/spec/frontend/clusters/agents/components/token_table_spec.js @@ -57,10 +57,6 @@ describe('ClusterAgentTokenTable', () => { return createComponent(defaultTokens); }); - afterEach(() => { - wrapper.destroy(); - }); - it('displays the create token button', () => { expect(findCreateTokenBtn().exists()).toBe(true); }); diff --git a/spec/frontend/clusters/components/new_cluster_spec.js b/spec/frontend/clusters/components/new_cluster_spec.js index ef39c90aaef..398b472a3a7 100644 --- a/spec/frontend/clusters/components/new_cluster_spec.js +++ b/spec/frontend/clusters/components/new_cluster_spec.js @@ -20,10 +20,6 @@ describe('NewCluster', () => { return createWrapper(); }); - afterEach(() => { - wrapper.destroy(); - }); - it('renders the cluster component correctly', () => { expect(wrapper.html()).toMatchSnapshot(); }); diff --git a/spec/frontend/clusters/components/remove_cluster_confirmation_spec.js b/spec/frontend/clusters/components/remove_cluster_confirmation_spec.js index 53683af893a..d9fa2200a29 100644 --- a/spec/frontend/clusters/components/remove_cluster_confirmation_spec.js +++ b/spec/frontend/clusters/components/remove_cluster_confirmation_spec.js @@ -18,11 +18,6 @@ describe('Remove cluster confirmation modal', () => { }); }; - afterEach(() => { - wrapper.destroy(); - wrapper = null; - }); - it('renders buttons with modal included', () => { createComponent(); expect(wrapper.element).toMatchSnapshot(); |