diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2019-04-26 11:39:44 +0300 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2019-04-26 11:39:44 +0300 |
commit | 55767af463441744140d3fbfd44b00026ed83350 (patch) | |
tree | dfc274b4b44fb42f4c092ec8c974ab2b14a3407f /spec/frontend | |
parent | d1ac44ae96468c571ba153cd79d1760c78524894 (diff) | |
parent | 41ff0d1e08c0f38ac3de8eb66e5635ecb772173c (diff) |
Merge branch '60855-mr-popover-is-not-attached-in-system-notes' into 'master'
Resolve "MR Popover is not attached in system notes"
Closes #60855
See merge request gitlab-org/gitlab-ce!27589
Diffstat (limited to 'spec/frontend')
-rw-r--r-- | spec/frontend/vue_shared/components/notes/system_note_spec.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/frontend/vue_shared/components/notes/system_note_spec.js b/spec/frontend/vue_shared/components/notes/system_note_spec.js index adcb1c858aa..5b4ca20940a 100644 --- a/spec/frontend/vue_shared/components/notes/system_note_spec.js +++ b/spec/frontend/vue_shared/components/notes/system_note_spec.js @@ -5,8 +5,10 @@ import createStore from '~/notes/stores'; describe('system note component', () => { let vm; let props; + let initMRPopoversSpy; beforeEach(() => { + initMRPopoversSpy = spyOnDependency(issueSystemNote, 'initMRPopovers'); props = { note: { id: '1424', @@ -56,4 +58,8 @@ describe('system note component', () => { it('removes wrapping paragraph from note HTML', () => { expect(vm.$el.querySelector('.system-note-message').innerHTML).toEqual('<span>closed</span>'); }); + + it('should initMRPopovers onMount', () => { + expect(initMRPopoversSpy).toHaveBeenCalled(); + }); }); |