Commit a64904e4 authored by Phil Hughes's avatar Phil Hughes

Merge branch '61596-increase-timeout-for-discussion-notes-spec' into 'master'

Fix discussion notes spec timeout

Closes #61596

See merge request gitlab-org/gitlab-ce!28212
parents 12e12d96 85cf3202
import { mount, createLocalVue } from '@vue/test-utils'; import { shallowMount, createLocalVue } from '@vue/test-utils';
import '~/behaviors/markdown/render_gfm'; import '~/behaviors/markdown/render_gfm';
import { SYSTEM_NOTE } from '~/notes/constants'; import { SYSTEM_NOTE } from '~/notes/constants';
import DiscussionNotes from '~/notes/components/discussion_notes.vue'; import DiscussionNotes from '~/notes/components/discussion_notes.vue';
...@@ -8,6 +8,7 @@ import PlaceholderSystemNote from '~/vue_shared/components/notes/placeholder_sys ...@@ -8,6 +8,7 @@ import PlaceholderSystemNote from '~/vue_shared/components/notes/placeholder_sys
import SystemNote from '~/vue_shared/components/notes/system_note.vue'; import SystemNote from '~/vue_shared/components/notes/system_note.vue';
import TimelineEntryItem from '~/vue_shared/components/notes/timeline_entry_item.vue'; import TimelineEntryItem from '~/vue_shared/components/notes/timeline_entry_item.vue';
import createStore from '~/notes/stores'; import createStore from '~/notes/stores';
import { setTestTimeout } from 'helpers/timeout';
import { import {
noteableDataMock, noteableDataMock,
discussionMock, discussionMock,
...@@ -17,6 +18,8 @@ import { ...@@ -17,6 +18,8 @@ import {
const localVue = createLocalVue(); const localVue = createLocalVue();
describe('DiscussionNotes', () => { describe('DiscussionNotes', () => {
setTestTimeout(500);
let wrapper; let wrapper;
const createComponent = props => { const createComponent = props => {
...@@ -24,7 +27,7 @@ describe('DiscussionNotes', () => { ...@@ -24,7 +27,7 @@ describe('DiscussionNotes', () => {
store.dispatch('setNoteableData', noteableDataMock); store.dispatch('setNoteableData', noteableDataMock);
store.dispatch('setNotesData', notesDataMock); store.dispatch('setNotesData', notesDataMock);
wrapper = mount(DiscussionNotes, { wrapper = shallowMount(DiscussionNotes, {
localVue, localVue,
store, store,
propsData: { propsData: {
......
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