diff options
Diffstat (limited to 'spec/frontend/notes/components/note_form_spec.js')
-rw-r--r-- | spec/frontend/notes/components/note_form_spec.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/spec/frontend/notes/components/note_form_spec.js b/spec/frontend/notes/components/note_form_spec.js index 3e80b24f128..b709141f4ac 100644 --- a/spec/frontend/notes/components/note_form_spec.js +++ b/spec/frontend/notes/components/note_form_spec.js @@ -81,7 +81,6 @@ describe('issue_note_form component', () => { it('should show conflict message if note changes outside the component', async () => { wrapper.setProps({ ...props, - isEditing: true, noteBody: 'Foo', }); @@ -111,6 +110,12 @@ describe('issue_note_form component', () => { ); }); + it('should set data-supports-quick-actions to enable autocomplete', () => { + const textarea = wrapper.find('textarea'); + + expect(textarea.attributes('data-supports-quick-actions')).toBe('true'); + }); + it('should link to markdown docs', () => { const { markdownDocsPath } = notesDataMock; const markdownField = wrapper.find(MarkdownField); @@ -171,7 +176,6 @@ describe('issue_note_form component', () => { it('should be possible to cancel', async () => { wrapper.setProps({ ...props, - isEditing: true, }); await nextTick(); @@ -185,7 +189,6 @@ describe('issue_note_form component', () => { it('should be possible to update the note', async () => { wrapper.setProps({ ...props, - isEditing: true, }); await nextTick(); |