import {test, expect} from '../../fixtures/test' // CSS transform, transition, and animation appear in imported course content // and advanced instructor HTML. Tests verify the text content is preserved // regardless of how TinyMCE handles these style properties. test.describe('CSS transform, transition, and animation in inline styles', () => { test.beforeEach(async ({page, rcePage}) => { await page.goto('/scenarios/basic') await rcePage.waitForEditor() }) async function setAndGet(page: any, html: string): Promise { return page.evaluate((content: string) => { // @ts-expect-error -- TinyMCE global window.tinymce.activeEditor.setContent(content) // @ts-expect-error -- TinyMCE global return window.tinymce.activeEditor.getContent() }, html) } test('transform: rotate — text preserved', async ({page}) => { const content = await setAndGet(page, '

Rotated text

') expect(content).toContain('Rotated text') }) test('transform: scale — text preserved', async ({page}) => { const content = await setAndGet(page, '

Scaled up text

') expect(content).toContain('Scaled up text') }) test('transform: translate — text preserved', async ({page}) => { const content = await setAndGet( page, 'Shifted span', ) expect(content).toContain('Shifted span') }) test('transition property — text preserved', async ({page}) => { const content = await setAndGet( page, '

Transition text

', ) expect(content).toContain('Transition text') }) test('opacity in inline style — text preserved', async ({page}) => { const content = await setAndGet(page, '

Semi-transparent paragraph

') expect(content).toContain('Semi-transparent paragraph') }) test('multiple transform functions — text preserved', async ({page}) => { const content = await setAndGet( page, '
Composite transform
', ) expect(content).toContain('Composite transform') }) test('will-change property — text preserved', async ({page}) => { const content = await setAndGet( page, '

Performance hint text

', ) expect(content).toContain('Performance hint text') }) })