From a420aa5c7b3510ebddb81ee627d4dfc2f964fd76 Mon Sep 17 00:00:00 2001 From: Adam DeHaven Date: Thu, 4 Jan 2024 10:44:54 -0500 Subject: [PATCH] test: add component tests --- src/components/MarkdownUi.spec.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/MarkdownUi.spec.ts b/src/components/MarkdownUi.spec.ts index bc9b65fc..a7868078 100644 --- a/src/components/MarkdownUi.spec.ts +++ b/src/components/MarkdownUi.spec.ts @@ -391,6 +391,7 @@ describe('', () => { expect(wrapper.findTestId('markdown-content').classes('html-preview')).toBe(false) // Ensure the HTML preview does not exist expect(wrapper.find('pre > code.language-html').exists()).toBe(false) + expect(wrapper.findTestId('copy-code-button').exists()).toBe(false) // Both panes should be visible expect(wrapper.findTestId('markdown-editor-textarea').isVisible()).toBe(true) @@ -412,6 +413,7 @@ describe('', () => { expect(wrapper.findTestId('markdown-content').classes('html-preview')).toBe(true) expect(wrapper.find('pre > code.language-html').isVisible()).toBe(true) + expect(wrapper.findTestId('copy-code-button').isVisible()).toBe(true) }) }) })