With one prompt, Claude Code opens your local app in a clean browser, goes through the signup flow, saves screenshots and fixes the errors it finds.
Check that Node.js is installed
A normal chat with Claude or ChatGPT can't open an app running on your computer or change your code, so this guide uses Claude Code, which works inside your project folder, plus Microsoft's free Playwright MCP, which gives it a browser. Here is how it goes once it's set up: you paste one prompt like "Open my signup page, sign up as a test user and fix what breaks". The agent clicks through the form, saves a screenshot of every step, fixes what it finds and gives you a short list of the fixes. In everyday terms: you check your signup in a few minutes instead of clicking through it by hand after every change. Start with Node.js. Open a terminal and run the command below. You need version 18 or newer, so the output should start with v18 or a higher number. If you get 'command not found' or an older version, install the current LTS release of Node.js first. Playwright MCP runs through npx, which comes with Node.js.
node -v
Add Playwright MCP to Claude Code with an isolated profile
In the terminal, go to your project folder and run the command below. Put everything after the double dash (--). That way Claude Code passes --isolated to the Playwright server and doesn't read it as its own option. --isolated keeps the browser profile in memory and never saves it to disk. Your cookies and logins aren't in it, and each session starts clean. You should see an 'Added ...' line. Next, run 'claude mcp list'. When the setup works, playwright shows ✔ Connected. The first start can take a moment while npx downloads the package.
claude mcp add playwright -- npx @playwright/mcp@latest --isolated claude mcp list
Optional: keep the browser on localhost
If your app makes no requests outside localhost, you can stop the browser from loading anything else. Remove the server and add it again with --allowed-origins. Be aware of two limits. First, Playwright's docs say this is not a security boundary, and it doesn't affect redirects. Second, it also blocks outside fonts, CDNs, analytics and payment scripts. If your page breaks after this change, go back to the command from step 2.
claude mcp remove playwright claude mcp add playwright -- npx @playwright/mcp@latest --isolated --allowed-origins "http://localhost:*"
Start your dev server
Open a second terminal window in the project folder and start the app the way you normally do. For many JavaScript projects that's the command below. Leave this window open. Copy the local URL it prints, for example http://localhost:3000. Then open that URL in your own browser once to make sure the signup page loads.
npm run dev
Open Claude Code and confirm the browser tools
In your first terminal, start Claude Code from the project folder by typing 'claude'. Then type /mcp and press Enter. Check that playwright is in the list and connected. If it isn't, run 'claude mcp get playwright'. The Issue line shows what went wrong.
claude /mcp
Ask the agent to go through signup and fix what breaks
Paste the prompt below and change the URL to yours. The agent opens a browser window, reads the page structure, fills the form, clicks through each step and saves the screenshots you asked for. When something fails, it checks the console and network errors, edits your code and runs the flow again. At the end you get a short report. Its exact wording depends on your app, but it lists each bug it saw, what caused it, the files it changed, and whether signup now works end to end. Claude Code asks for permission before each new tool or file edit. Read each request before you approve it. Use only fake test data, never a real email or password.
Open http://localhost:3000/signup with the Playwright browser. Sign up as a new user with the test email test+1@example.com and the password Test-Pass-123. After each step, take a screenshot and save it as screenshots/signup-01.png, signup-02.png and so on. Also check the browser console messages and failed network requests after each step. If a step fails, a button is hidden or cut off, the layout overlaps, or a form error is unclear: 1. Tell me what you saw. 2. Find the cause in the code and fix it. 3. Run the whole flow again from the start. Stop when signup works end to end. Then list every bug you fixed and the files you changed.
Review the changes and keep the screenshots out of git
Open the screenshots folder and look through the steps yourself. Then review the agent's changes with git diff before you commit. Add screenshots/ to .gitignore so test images don't end up in your repository. To run the check again, open a new Claude Code session and paste the same prompt. The isolated profile starts with no saved state each time, so you can reuse the same test email if your local database lets you, or bump the number (test+2@example.com).
git diff echo "screenshots/" >> .gitignore
Get the next automation before it's posted.
One short email with the AI stories that matter. What happened in AI, why it matters, one tool worth trying. Free. Unsubscribe anytime.
