Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-10-10 09:08:48 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-10-10 09:08:48 +0300
commit699bb48edac9e8536ab5eb1ecdf6cfb0ce11d379 (patch)
tree44e8736bdea167381660a6509f487f7c38522f70 /spec/frontend/vue_shared/components/markdown
parentbf10fcacaa0a754a1f21aad7457d635df7bd94d8 (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.js5
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,