Christian Byrne
01f59afff2
test: fix flaky 'Can drag node' screenshot test ( #8967 )
...
## Summary
Fix intermittently failing 'Can drag node' screenshot test that blocks
CI on main and all PR branches.
## Changes
- **What**: Add `nextFrame()` waits after switching `Comfy.UseNewMenu`
from `Top` to `Disabled` in the `beforeEach` hook. The setting change
removes the top bar, causing the canvas to resize. Without waiting, the
hardcoded drag coordinates can miss the node entirely (resulting in a
canvas pan instead of a node drag).
## Review Focus
The root cause: `setSetting('Comfy.UseNewMenu', 'Disabled')` triggers a
layout shift (top bar disappears → canvas grows vertically). Litegraph
needs 1-2 frames to process the canvas resize. The drag starts at
hardcoded screen coords `{622, 400}` which only map to the node after
the resize settles.
2026-02-20 02:37:32 -08:00
..
2025-12-08 19:48:11 -07:00
2026-02-03 12:29:40 -08:00
2025-12-29 15:03:34 -08:00
2025-12-08 19:48:11 -07:00
2025-12-29 15:03:34 -08:00
2025-03-17 15:32:14 -04:00
2026-02-18 11:28:47 -08:00
2026-02-14 22:25:59 -08:00
2025-12-08 19:48:11 -07:00
2026-02-12 16:27:11 +09:00
2025-12-08 19:48:11 -07:00
2025-12-08 19:48:11 -07:00
2026-02-16 23:33:41 -08:00
2025-12-08 19:48:11 -07:00
2026-01-16 22:11:00 -07:00
2026-02-03 12:29:40 -08:00
2025-12-08 19:48:11 -07:00
2025-12-29 15:03:34 -08:00
2026-02-20 01:10:03 -08:00
2026-02-17 16:17:23 -08:00
2026-01-17 00:38:58 +01:00
2026-02-07 22:35:14 -08:00
2026-02-12 16:27:11 +09:00
2026-02-19 20:58:59 -08:00
2026-02-20 01:10:03 -08:00
2026-01-13 14:46:41 -08:00
2026-02-03 12:29:40 -08:00
2026-02-03 12:29:40 -08:00
2026-02-12 16:27:11 +09:00
2026-02-03 12:29:40 -08:00
2026-02-03 12:29:40 -08:00
2026-02-03 12:29:40 -08:00
2026-02-03 12:29:40 -08:00
2026-02-20 02:20:02 -08:00
2026-02-03 12:29:40 -08:00
2026-02-03 12:29:40 -08:00
2026-02-20 01:10:03 -08:00
2026-02-03 12:29:40 -08:00
2026-02-03 12:29:40 -08:00
2026-02-03 12:29:40 -08:00
2026-02-03 12:29:40 -08:00
2026-02-03 12:29:40 -08:00
2026-02-03 12:29:40 -08:00
2026-02-20 01:10:03 -08:00
2026-02-20 02:37:32 -08:00
2026-02-03 12:29:40 -08:00
2026-02-03 12:29:40 -08:00
2026-02-03 12:29:40 -08:00
2026-02-03 12:29:40 -08:00
2026-02-03 15:15:37 -08:00
2026-02-03 12:29:40 -08:00
2026-02-03 12:29:40 -08:00
2026-02-03 12:29:40 -08:00
2026-02-03 12:29:40 -08:00
2026-02-06 13:42:38 -08:00
2026-02-03 12:29:40 -08:00
2026-02-20 01:10:03 -08:00
2026-02-20 01:10:03 -08:00
2026-02-03 12:29:40 -08:00
2026-02-03 12:29:40 -08:00
2026-02-20 01:10:03 -08:00
2026-02-03 12:29:40 -08:00
2026-02-20 01:10:03 -08:00
2026-02-03 12:29:40 -08:00
2026-02-03 12:29:40 -08:00
2026-02-17 16:17:23 -08:00
2026-02-03 12:29:40 -08:00
2026-02-03 12:29:40 -08:00
2026-02-10 19:37:17 -08:00
2026-02-03 12:29:40 -08:00
2026-02-20 01:10:03 -08:00
2026-02-20 01:10:03 -08:00
2026-02-20 00:37:38 -08:00
2026-02-03 12:29:40 -08:00
2026-01-29 16:34:56 -08:00
2026-02-12 16:27:11 +09:00
2026-02-03 12:29:40 -08:00
2026-02-03 12:29:40 -08:00
2026-02-03 12:29:40 -08:00
2026-02-03 12:29:40 -08:00