diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-01-25 15:14:14 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-01-25 15:14:14 +0300 |
commit | 868c8c35fbddd439f4df76a5954e2a1caa2af3cc (patch) | |
tree | b7bad2964729ba58b6f84ecf36bc72f939a4c900 /spec/frontend/incidents | |
parent | d2bb55891e78ae23506bee26a30165f3520b47e5 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/incidents')
-rw-r--r-- | spec/frontend/incidents/components/incidents_list_spec.js | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/spec/frontend/incidents/components/incidents_list_spec.js b/spec/frontend/incidents/components/incidents_list_spec.js index 48545ffd2d6..1be6007d844 100644 --- a/spec/frontend/incidents/components/incidents_list_spec.js +++ b/spec/frontend/incidents/components/incidents_list_spec.js @@ -1,5 +1,6 @@ import { GlAlert, GlLoadingIcon, GlTable, GlAvatar, GlEmptyState } from '@gitlab/ui'; import { mount } from '@vue/test-utils'; +import { nextTick } from 'vue'; import IncidentsList from '~/incidents/components/incidents_list.vue'; import { I18N, @@ -210,7 +211,7 @@ describe('Incidents List', () => { it('sets button loading on click', async () => { findCreateIncidentBtn().vm.$emit('click'); - await wrapper.vm.$nextTick(); + await nextTick(); expect(findCreateIncidentBtn().attributes('loading')).toBe('true'); }); @@ -233,7 +234,7 @@ describe('Incidents List', () => { it('should track create new incident button', async () => { findCreateIncidentBtn().vm.$emit('click'); - await wrapper.vm.$nextTick(); + await nextTick(); expect(Tracking.event).toHaveBeenCalled(); }); }); @@ -263,10 +264,10 @@ describe('Incidents List', () => { const columnHeader = () => wrapper.find(`[${attr}="${value}"]`); expect(columnHeader().attributes('aria-sort')).toBe(initialSort); columnHeader().trigger('click'); - await wrapper.vm.$nextTick(); + await nextTick(); expect(columnHeader().attributes('aria-sort')).toBe(firstSort); columnHeader().trigger('click'); - await wrapper.vm.$nextTick(); + await nextTick(); expect(columnHeader().attributes('aria-sort')).toBe(nextSort); }, ); @@ -287,7 +288,7 @@ describe('Incidents List', () => { it('should track incident creation events', async () => { findCreateIncidentBtn().vm.$emit('click'); - await wrapper.vm.$nextTick(); + await nextTick(); const { category, action } = trackIncidentCreateNewOptions; expect(Tracking.event).toHaveBeenCalledWith(category, action); }); |