Commit 150bc6da authored by Enrique Alcantara's avatar Enrique Alcantara

Do not apply markdown styles to top toolbar

parent fa424e62
......@@ -17,8 +17,8 @@ export default {
};
</script>
<template>
<div class="md md-area" :class="{ 'is-focused': contentEditor.tiptapEditor.isFocused }">
<div class="md-area" :class="{ 'is-focused': contentEditor.tiptapEditor.isFocused }">
<top-toolbar class="gl-mb-4" :content-editor="contentEditor" />
<tiptap-editor-content :editor="contentEditor.tiptapEditor" />
<tiptap-editor-content class="md" :editor="contentEditor.tiptapEditor" />
</div>
</template>
......@@ -27,7 +27,10 @@ describe('ContentEditor', () => {
it('renders editor content component and attaches editor instance', () => {
createWrapper(editor);
expect(wrapper.findComponent(EditorContent).props().editor).toBe(editor.tiptapEditor);
const editorContent = wrapper.findComponent(EditorContent);
expect(editorContent.props().editor).toBe(editor.tiptapEditor);
expect(editorContent.classes()).toContain('md');
});
it('renders top toolbar component and attaches editor instance', () => {
......@@ -38,8 +41,8 @@ describe('ContentEditor', () => {
it.each`
isFocused | classes
${true} | ${['md', 'md-area', 'is-focused']}
${false} | ${['md', 'md-area']}
${true} | ${['md-area', 'is-focused']}
${false} | ${['md-area']}
`(
'has $classes class selectors when tiptapEditor.isFocused = $isFocused',
({ isFocused, classes }) => {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment