diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-10-10 09:08:48 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-10-10 09:08:48 +0300 |
commit | 699bb48edac9e8536ab5eb1ecdf6cfb0ce11d379 (patch) | |
tree | 44e8736bdea167381660a6509f487f7c38522f70 /spec/frontend/vue_shared/components/markdown | |
parent | bf10fcacaa0a754a1f21aad7457d635df7bd94d8 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/vue_shared/components/markdown')
-rw-r--r-- | spec/frontend/vue_shared/components/markdown/markdown_editor_spec.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/spec/frontend/vue_shared/components/markdown/markdown_editor_spec.js b/spec/frontend/vue_shared/components/markdown/markdown_editor_spec.js index f2a7d04e229..f7e93f45148 100644 --- a/spec/frontend/vue_shared/components/markdown/markdown_editor_spec.js +++ b/spec/frontend/vue_shared/components/markdown/markdown_editor_spec.js @@ -18,6 +18,7 @@ describe('vue_shared/component/markdown/markdown_editor', () => { const value = 'test markdown'; const renderMarkdownPath = '/api/markdown'; const markdownDocsPath = '/help/markdown'; + const quickActionsDocsPath = '/help/quickactions'; const enableAutocomplete = true; const enablePreview = false; const formFieldId = 'markdown_field'; @@ -33,6 +34,7 @@ describe('vue_shared/component/markdown/markdown_editor', () => { value, renderMarkdownPath, markdownDocsPath, + quickActionsDocsPath, enableAutocomplete, enablePreview, formFieldId, @@ -63,11 +65,12 @@ describe('vue_shared/component/markdown/markdown_editor', () => { }); it('displays markdown field by default', () => { - buildWrapper(); + buildWrapper({ propsData: { supportsQuickActions: true } }); expect(findMarkdownField().props()).toEqual( expect.objectContaining({ markdownPreviewPath: renderMarkdownPath, + quickActionsDocsPath, canAttachFile: true, enableAutocomplete, textareaValue: value, |