Playwright E2e Pitfalls

Use when a Playwright end-to-end test or its config is written or reviewed: locators (role and label first, positional methods, the test id decision), web-first assertions versus resolve-once reads, fixed waits, missing await and swallowed failures, force clicks, element handles, test isolation (fresh context, beforeAll, shared data, one account per worker, storageState and its gitignore), mocking only what you do not own, and CI settings (forbidOnly, retries, webServer, trace, browser matrix, lint rules).

techmefr Updated

File contents

techmefr/mentis commit 4da07ca94d

Frequently asked questions

npx get-skill add techmefr/playwright-e2e-pitfalls