import {test, expect} from '../../fixtures/test' //
wrapping an
Video: Introduction to Algorithms
', ) expect(content).toContain('Introduction to Algorithms') }) test('text before and after figure/iframe — all preserved', async ({page}) => { const content = await setAndGet( page, '

Watch this lecture:

Lecture 1

Discussion follows.

', ) expect(content).toContain('Watch this lecture') expect(content).toContain('Lecture 1') expect(content).toContain('Discussion follows') }) test('multiple figure/iframe blocks — all captions preserved', async ({page}) => { const content = await setAndGet( page, '
Video 1: Topic A
Video 2: Topic B
', ) expect(content).toContain('Topic A') expect(content).toContain('Topic B') }) test('
with iframe and no caption — surrounding text preserved', async ({page}) => { const content = await setAndGet( page, '

Embed:

Notes here.

', ) expect(content).toContain('Embed') expect(content).toContain('Notes here') }) })