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>2024-01-10 12:07:42 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2024-01-10 12:07:42 +0300
commitb6ccb96a5bae907504efd05955c2d188caa0d2f0 (patch)
tree2f7e0cb7587a003b3fb4f91165c42ccd856a0f4d /spec/frontend/comment_templates/components/form_spec.js
parent4dfcbb2696bce1a94c0b0fbd7f9e0cef1015f3d2 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/comment_templates/components/form_spec.js')
-rw-r--r--spec/frontend/comment_templates/components/form_spec.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/frontend/comment_templates/components/form_spec.js b/spec/frontend/comment_templates/components/form_spec.js
index 05ddf94b72b..ab368a42483 100644
--- a/spec/frontend/comment_templates/components/form_spec.js
+++ b/spec/frontend/comment_templates/components/form_spec.js
@@ -135,6 +135,18 @@ describe('Comment templates form component', () => {
expect(findSubmitBtn().props('loading')).toBe(false);
});
+
+ it('shows markdown preview button', () => {
+ wrapper = createComponent();
+
+ expect(wrapper.text()).toContain('Preview');
+ });
+
+ it('allows switching to rich text editor', () => {
+ wrapper = createComponent();
+
+ expect(wrapper.text()).toContain('Switch to rich text editing');
+ });
});
describe('updates saved reply', () => {