Playwright Starter Kit
Go from zero to a production-ready Playwright suite in one sitting. Build your Page Object Model, tackle login flows, manage multi-role auth state, and wire everything up to GitHub Actions CI.
Prompts in this Collection
- 1
Build a Playwright Page Object Model Architecture
Generate a full POM structure with a base page class, individual page classes, typed Playwright fixtures, and an example test — all in TypeScript.
Start here — establish the architecture before writing any tests.
beginnerplaywright - 2
Generate E2E Login Flow Tests
Comprehensive end-to-end tests for a login flow including valid credentials, invalid credentials, empty fields, MFA, and session persistence.
Your first real test suite: covers eight login scenarios with POM and data-testid selectors.
intermediateplaywright - 3
Playwright Multi-Role Auth State Management
Eliminate redundant login steps across your test suite. Generates global-setup.ts, per-role storageState files, and playwright.config.ts project config for admin, editor, and viewer roles.
Eliminate repetitive logins by saving auth state once per role — speeds up your whole suite.
intermediateplaywright - 4
Parallel Playwright CI Pipeline with Sharding
GitHub Actions workflow for parallel Playwright test execution with sharding, retries, and artifact upload.
Ship your suite to CI with sharding and artifacts — the finishing touch for a production-ready setup.
intermediategithub-actions