Who it is forA QA engineer or developer starting a new end-to-end test project who wants a working baseline before adapting it to their own app.
The problemSetting up a Playwright TypeScript project with page objects, fixtures, configuration, and a browser install takes time before any test can run.
The outcomeA scaffolded project with dependencies and a browser installed, and a passing smoke test run against the bundled demo application.
What you need first
- Node.js v22.x or later
- npm v10.x or later
- An empty directory or empty git repo for the test project
- A web application URL to test, or the --demo option to try the bundled demo app
Steps
- Create an empty directory for the tests, or clone an empty git repo, and open a terminal in it.
- Run
npm create agentic-playwright . -- --demo. - Wait for the scaffold to install dependencies and a browser, then for the smoke test to run against the demo application.
- Confirm the smoke test is green, then open the example files such as the page objects and login spec to see the patterns.
- Replace the example pages and tests with your own application's pages and tests.
Prompt for your agent
In the agentic-playwright repo, run `npm create agentic-playwright <target-folder> -- --demo` from an empty <target-folder>. Expected output: the scaffold installs dependencies and a browser and the smoke test passes against the demo app. Verify the smoke test result is green before making any changes.
Caveat. The bundled files are examples only, so the README says they must be replaced with your real application's pages, tests, and data.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for idavidov13/agentic-playwright and "Get a green Playwright TypeScript suite in under 5 minutes"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer