mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-27 01:39:47 +00:00
Document the process for regenerating the Playwright test snapshot for the 'Can load audio' test. This test requires the ComfyUI backend to be running with --multi-user flag to properly capture the UI state. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1.2 KiB
1.2 KiB
Regenerating Load Audio Widget Test Expectations
Overview
This document describes how to regenerate the Playwright test expectations for the "Can load audio" test in browser_tests/tests/widget.spec.ts.
Prerequisites
- ComfyUI backend running with
--multi-userflag:python main.py --multi-user - ComfyUI_devtools installed in
custom_nodesdirectory - Node.js dependencies installed (
pnpm install)
Steps to Regenerate
- Ensure the backend is running on port 8188
- Run the specific test with snapshot update flag:
pnpm test:browser --update-snapshots tests/widget.spec.ts -g "Can load audio"
Current Test Status
- Test location:
browser_tests/tests/widget.spec.ts:313 - Snapshot location:
browser_tests/tests/widget.spec.ts-snapshots/load-audio-widget-chromium-linux.png - Workflow file:
browser_tests/assets/widgets/load_audio_widget.json
What the Test Does
The test loads a workflow containing a LoadAudio node and verifies that the audio widget renders correctly with:
- Audio player controls
- File upload button
- Proper node title and connections
Note
The test snapshot needs to be regenerated when UI changes affect the LoadAudio node rendering.