playwright-testing
kjaylee 제작
Web & Frontend Development요약
Test web applications and games using Playwright on MiniPC.
설명
이 스킬이 하는 일
Runs Playwright browser automation on a MiniPC node using headless Chromium. Handles web app and game QA, screenshot capture, DOM inspection, and console log collection. Executes via nodes.run or browser.proxy rather than the local machine.
Running tests on a dedicated MiniPC node keeps browser execution off the development machine and avoids display dependency issues.
사용 시점
- Verifying a game loads and renders its canvas correctly
- Capturing screenshots of a web app at specific states
- Checking for JavaScript console errors during page interaction
- Automating click sequences to test UI flows
- Confirming score or state changes after user input
예시 워크플로
User asks: test that the game at localhost:9877 loads and the canvas is visible
- 1
Navigate to http://localhost:9877/game.html on MiniPC via browser.proxy or nodes.run
- 2
Wait for networkidle state to ensure JS has finished executing
- 3
Locate the canvas element and assert it is visible
- 4
Click the canvas to trigger game interaction
- 5
Take a screenshot and capture any console errors
Screenshot saved to /tmp/game-test.png confirming canvas renders; console error list returned
설치
clawhub install kjaylee/playwright-testingCLI 명령을 실행하거나, 프롬프트를 Claude Code, Cursor, Codex 등 사용하는 코딩 에이전트에 붙여넣으세요.