Files
ComfyUI_frontend/browser_tests/tests
snomiao f66afd76db fix: Stabilize flaky link visibility toggle test
The test was flaky because it wasn't properly waiting for the canvas
to update after changing the link render mode setting. The setting
change triggers a canvas redraw via setDirty(), but the actual redraw
happens asynchronously.

Changes:
- Add explicit wait for canvas.links_render_mode to update
- Capture initial link render mode to properly verify state changes
- Add double frame wait plus 100ms delay to ensure canvas redraw completes
- Improve wait condition for visible links to handle undefined initial state
- Add timeout protection to prevent test hanging

This ensures the test reliably waits for both the setting change
and the visual update before taking screenshots, eliminating the
race condition that was causing intermittent failures.
2025-09-09 03:57:58 +00:00
..
2025-08-21 11:16:29 -07:00
2025-09-06 03:09:58 -07:00