Project
Playwright + Claude
Regression suite and edge cases
Why it started
I wanted a suite I could rerun after every change, and a list of edge cases before I wrote the test. Guessing locators from a screenshot was how tests kept breaking.
How it works
TypeScript and Playwright against demoqa.com. The suite covers text boxes, a checkbox tree, login (pass and fail), radio buttons, native and custom dropdowns, buttons, web tables, and a practice form. Locators prefer getByRole. Chained locators keep strict mode from matching a second node with the same name. selectOption only works on a real select element. Custom menus need the option role scoped to the parent listbox. A clean run is 7 tests on parallel workers, about 18 seconds.
The edge-case tool calls Claude Sonnet. You hand it a feature in plain English, such as a login form. It returns five cases a manual pass often misses: whitespace in the email, a pasted password of thousands of characters, a double submit, autofill of dead credentials, and uncommon Unicode in the local part. Generated locators still get checked by hand. The model invents ids, and it will write two clicks where the page needs dblclick. Repo: github.com/muymay/playwright-ai-suite.