import {test, expect} from '../../fixtures/test' // Full HTML documents pasted into the RCE may include ,
, and // wrapper elements. TinyMCE must extract only the body content and // strip document-level elements. Tests verify that body text survives while // head content (title, meta, link, style, script) is stripped. test.describe(' and wrapper elements in pasted content', () => { test.beforeEach(async ({page, rcePage}) => { await page.goto('/scenarios/basic') await rcePage.waitForEditor() }) async function setAndGet(page: any, html: string): PromiseBody content here
', ) expect(content).toContain('Body content here') // title should be stripped from the editor content expect(content).not.toContain('Safe body
', ) expect(content).not.toContain('