{"agent":"claude","input":"Write Playwright end-to-end tests for this htmx app. Read every template and list each hx- attribute with its trigger, target and swap, and any direct htmx or Alpine calls. Read the server routes they call and note where the response depends on a request header such as HX-Trigger or HX-Request, where a handler is slow on purpose, and where state is kept. Use the Python Playwright plugin for pytest if the app is Python, added in a separate dev requirements file; do not change application code or pinned requirements. Start the app for each test as a subprocess on a free port, with any data file it rewrites copied to a temporary directory so the repository copy is never modified and tests share no state. Write one test per interaction: search as you type, including a term with no matches and the pushed URL; lazy-loaded content; inline field validation with each message; a polling flow through to its end state and any download; deletes behind a confirm dialog, accepted and dismissed; bulk actions on several selected rows; and a boosted link, proving no full page load happened. Assert request headers and that partial responses are fragments. Never use a fixed sleep: wait on the response, the download or the expected text. Fail a test on any unexpected 4xx or 5xx response, and report assets that are already missing instead of fixing them. Install the browser, run the suite three times, break one hx-target to show a failing test, restore it, and open a pull request with the output and a note on which tests need network access to a CDN.","resources":[{"url":"https://github.com/your-org/your-app"}]}