What problem does it solve?
Raw Playwright codegen recordings use fragile pixel coordinates, arbitrary waits, and bare page calls that violate ComfyUI testing conventions, requiring tedious manual rewriting before tests can be committed.
Core Features & Use Cases
- Rule-Based Transformation: Applies ordered replacement rules mapping raw codegen patterns (page.goto, waitForTimeout, bare locators) to ComfyUI fixture equivalents like comfyPage.canvas and nextFrame().
- Fixture Migration Guidance: Converts @playwright/test imports and page fixtures to the comfyPage fixture API with descriptive test names, describe blocks, and scenario tags.
- Anti-Pattern Detection: Flags prohibited patterns such as waitForTimeout, page.goto, bare CSS selectors, and shared test state.
- Use Case: A QA tester records a canvas interaction test with the Playwright recorder, pastes the raw output, and receives a rewritten test using node references, proper tags, and canvas cleanup hooks.
Quick Start
Transform this pasted raw Playwright codegen output into a ComfyUI convention-compliant test using the comfyPage fixture.