summaryrefslogtreecommitdiff
path: root/spec/frontend/vue_shared/components/markdown
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-01-12 15:09:17 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2023-01-12 15:09:17 +0000
commitd549d413bb69f87ec26661ec96287bb4b25c32ff (patch)
treeac50717d0e3db25fd64bd36c1090496c42b24556 /spec/frontend/vue_shared/components/markdown
parent1caab68312013cae5083460ec8e03796daef9341 (diff)
downloadgitlab-ce-d549d413bb69f87ec26661ec96287bb4b25c32ff.tar.gz
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.js4
1 files changed, 3 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 64b4b55fce5..e3df2cde1c1 100644
--- a/spec/frontend/vue_shared/components/markdown/markdown_editor_spec.js
+++ b/spec/frontend/vue_shared/components/markdown/markdown_editor_spec.js
@@ -95,11 +95,13 @@ describe('vue_shared/component/markdown/markdown_editor', () => {
expect(findTextarea().element.value).toBe(value);
});
- it(`emits ${EDITING_MODE_CONTENT_EDITOR} event when enableContentEditor emitted from markdown editor`, () => {
+ it(`emits ${EDITING_MODE_CONTENT_EDITOR} event when enableContentEditor emitted from markdown editor`, async () => {
buildWrapper();
findMarkdownField().vm.$emit('enableContentEditor');
+ await nextTick();
+
expect(wrapper.emitted(EDITING_MODE_CONTENT_EDITOR)).toHaveLength(1);
});