import {test, expect} from '../../fixtures/test' // Canvas embeds third-party content via

', ) expect(content).toContain('Embedded tool') }) test('iframe with allow attribute — text context preserved', async ({page}) => { const content = await setAndGet( page, '

Video player:

Watch the above video.

', ) expect(content).toContain('Video player') expect(content).toContain('Watch the above video') }) test('iframe with loading=lazy — content structure preserved', async ({page}) => { const content = await setAndGet( page, '

Below the fold:

', ) expect(content).toContain('Below the fold') }) test('iframe with referrerpolicy — label text preserved', async ({page}) => { const content = await setAndGet( page, '

External resource (no referrer sent):

', ) expect(content).toContain('External resource') expect(content).toContain('no referrer sent') }) test('multiple iframes in sequence — all labels preserved', async ({page}) => { const content = await setAndGet( page, `

Primary video:

Secondary reading:

Interactive lab:

`, ) expect(content).toContain('Primary video') expect(content).toContain('Secondary reading') expect(content).toContain('Interactive lab') }) })