Playwright E2E testing patterns — web-first assertions, user-visible locators, network interception, fixtures, authentication, and parallel execution
98
99%
Does it follow best practices?
Impact
98%
1.81xAverage score across 5 eval scenarios
Passed
No known issues
A web app has a user registration page. Write Playwright E2E tests for it.
The app runs on http://localhost:3000 with this page:
/register -- registration form with fields:
/welcome with a welcome messageAPI endpoint:
POST /api/auth/register -- creates account (returns 201 on success, 409 if email exists, 400 for validation errors)Produce:
playwright.config.ts -- Playwright configuratione2e/registration.spec.ts -- E2E test filepackage.json -- with @playwright/test dependency listedYou may create additional files for good test organization.