Back to Library
UI

File Download Validation

Prompt

Generate Playwright test to capture and validate file download event.

Example Code

const download = await page.waitForEvent('download');

Quick Actions

PRO TIP

Paste this prompt as a comment in your .spec.ts file and let Copilot generate the test.

Next Steps
Browse Prompts