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-04-21 06:09:30 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-04-21 06:09:30 +0300
commitb681bb9dcc29f927df3d6aeab67e6485562b9f04 (patch)
treebadb491ba5635920eb56518ffc48fbf06d7bfbe7 /spec/frontend/vue_shared/components/markdown
parente4cac4b3e78b656f1132cae54efa36a63302662d (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/field_spec.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/frontend/vue_shared/components/markdown/field_spec.js b/spec/frontend/vue_shared/components/markdown/field_spec.js
index d1c4d777d44..ab74ea868a2 100644
--- a/spec/frontend/vue_shared/components/markdown/field_spec.js
+++ b/spec/frontend/vue_shared/components/markdown/field_spec.js
@@ -187,6 +187,11 @@ describe('Markdown field component', () => {
});
describe('markdown buttons', () => {
+ beforeEach(() => {
+ // needed for the underlying insertText to work
+ document.execCommand = jest.fn(() => false);
+ });
+
it('converts single words', async () => {
const textarea = subject.find('textarea').element;
textarea.setSelectionRange(0, 7);