Back to Library
Advanced

E-commerce Advanced Scenario 2

Prompt

Generate a Playwright advanced test for a e-commerce application handling scenario 2 with robust waits, network synchronization, proper assertions, error handling, and production-grade stability practices. Avoid hard waits and ensure reliability in CI environments.

Example Code

await page.goto('/'); await expect(page.locator('body')).toBeVisible();

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