Back to Library
Edge

Timeout Handling

Prompt

Generate Playwright test that simulates delayed API and validates timeout UI message.

Example Code

await page.route('**/api', async r=>{await new Promise(f=>setTimeout(f,5000)); r.continue();});

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