mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-01 13:59:54 +00:00
## Summary This PR fixes a flaky test in the load audio widget spec that was causing intermittent failures in CI. ## Problem The test was attempting to trigger a file chooser event before the widget's upload button was fully rendered and ready for interaction, leading to race conditions. ## Solution Added an explicit wait for the widget element to be visible before triggering the file chooser, ensuring the DOM is ready for interaction. ## Changes - Added `waitFor` to verify widget visibility before file upload - Ensures proper synchronization between DOM updates and test actions ## Test plan - [x] Browser tests pass locally - [x] Typecheck passes - [ ] CI tests pass 🤖 Generated with [Claude Code](https://claude.ai/code) ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-5755-bugfix-Stabilize-flaky-load-audio-widget-test-2786d73d365081cebaefdc6470333c5d) by [Unito](https://www.unito.io) --------- Co-authored-by: Claude <noreply@anthropic.com>