Webapp testing

From cheatcode-ai/cheatcode · View interactive version

Webapp testing is an AI agent skill from the GitHub repository cheatcode-ai/cheatcode. Verify a running local web application through Cheatcode's managed headed browser without creating a second test harness or browser process.

How to use this skill

Skill file

Web Application Testing

Use the already-running managed preview and the native browser tools. Never install a browser,

launch a second browser process, write a Playwright/Python test harness, or start another dev server.

Verification flow

  1. Open the app's internal http://localhost:<port> URL once.
  2. Capture one screenshot with one explicit visual acceptance criterion. Use its PASS/FAIL

assessment instead of inferring quality from image size.

  1. For one representative functional interaction, call browser_observe once. Choose one exact

hyphenated element ref from its accessibility tree and call browser_act with that ref plus the

required method/value.

  1. Read the post-action tree returned by browser_act to decide whether the criterion passed. If

the user explicitly requires another interaction, use its fresh ref directly with browser_act.

  1. If a criterion fails, fix the concrete app defect and repeat only that changed criterion once.

Each ref is page-bound and single-use. A successful browser_act atomically replaces the consumed

observation with its post-action tree, so chain required interactions from those fresh refs without

re-observing. Observe again only when the page changed outside browser_act, navigated, or the

returned tree does not contain the required element. Never invent a ref or selector.

Finish as soon as the requested content renders, the representative interaction passes, and no

blocking browser error remains. Do not repeat equivalent screenshots, actions, or extractions.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.