DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to get a green Playwright TypeScript suite in under 5 minutes with Agentic Playwright

Scaffold a running Playwright and TypeScript test project and see the smoke test pass before writing any code.

Short answer: Create an empty directory for the tests, or clone an empty git repo, and open a terminal in it; then 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. All steps.

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

  1. Create an empty directory for the tests, or clone an empty git repo, and open a terminal in it.
  2. Run npm create agentic-playwright . -- --demo.
  3. Wait for the scaffold to install dependencies and a browser, then for the smoke test to run against the demo application.
  4. Confirm the smoke test is green, then open the example files such as the page objects and login spec to see the patterns.
  5. 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

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer