import {test, expect} from '../../fixtures/test' // cursor and pointer-events CSS properties appear in interactive course widgets // (drag-and-drop exercises, clickable diagrams, disabled states). These CSS // properties affect UX behavior but not content — text must survive regardless. test.describe('cursor and pointer-events CSS properties', () => { 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('cursor: pointer — text preserved', async ({page}) => { const content = await setAndGet(page, '

Clickable paragraph

') expect(content).toContain('Clickable paragraph') }) test('cursor: not-allowed — text preserved', async ({page}) => { const content = await setAndGet(page, '

Disabled element

') expect(content).toContain('Disabled element') }) test('cursor: crosshair on div — text preserved', async ({page}) => { const content = await setAndGet( page, '
Crosshair target area
', ) expect(content).toContain('Crosshair target area') }) test('pointer-events: none — text preserved', async ({page}) => { const content = await setAndGet( page, 'Non-interactive overlay text', ) expect(content).toContain('Non-interactive overlay text') }) test('pointer-events: auto — text preserved', async ({page}) => { const content = await setAndGet( page, '
Interactive content
', ) expect(content).toContain('Interactive content') }) test('user-select: none — text preserved', async ({page}) => { const content = await setAndGet( page, '

Non-selectable watermark text

', ) expect(content).toContain('Non-selectable watermark text') }) })