writing-playwright-tests
Installation
SKILL.md
Writing Playwright Tests for ComfyUI_frontend
Golden Rules
-
ALWAYS look at existing tests first. Search
browser_tests/tests/for similar patterns before writing new tests. -
ALWAYS read the fixture code. The APIs are in
browser_tests/fixtures/- read them directly instead of guessing. -
Use premade JSON workflow assets instead of building workflows programmatically.
- Assets live in
browser_tests/assets/ - Load with
await comfyPage.workflow.loadWorkflow('feature/my_workflow') - Create new assets by starting with
browser_tests/assets/default.jsonand manually editing the JSON to match your desired graph state
- Assets live in
Vue Nodes vs LiteGraph: Decision Guide
Choose based on what you're testing, not personal preference: