import path from 'path' import { setupPuppeteer, E2E_TIMEOUT } from './e2eUtils' describe('e2e: markdown', () => { const { page, isVisible, value, html } = setupPuppeteer() async function testMarkdown(apiType: 'classic' | 'composition') { const baseUrl = `file://${path.resolve( __dirname, `../${apiType}/markdown.html#test` )}` await page().goto(baseUrl) expect(await isVisible('#editor')).toBe(true) expect(await value('textarea')).toBe('# hello') expect(await html('#editor div')).toBe('