import {test, expect} from '../../fixtures/test' // Form elements (, ', ) // Either stripped or inert — textarea must not be a live form field if (content.includes(' dropdown is stripped', async ({page}) => { const content = await setAndGet( page, '', ) expect(content).not.toContain(' wrapper element is stripped', async ({page}) => { const content = await setAndGet( page, '

Content inside form

', ) expect(content).not.toContain(' is stripped', async ({page}) => { const content = await setAndGet( page, '

Visible

', ) expect(content).not.toContain('csrf_token') expect(content).not.toContain('stolen') expect(content).toContain('Visible') }) test(' button is stripped or formaction removed', async ({page}) => { const content = await setAndGet( page, '', ) expect(content).not.toContain('formaction') expect(content).not.toContain('evil.example.com') }) })