You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
image-decode-reuse smoke tests lose clicks after a swatch drag #183
All four opaque-history @smoke tests in tests/e2e/image-decode-reuse.spec.ts (8- and 16-bit Display P3, bitmap and img fallback) are affected. They fail intermittently on fast local machines: 3 of 40 runs on macOS at b1256cb, and 4 of 32 in an earlier triage. At 93b4be6 they failed locally in 8 of 8 runs. develop's GitHub CI passes them.
Cause
The tests click a 2D control right after a swatch drag. dnd-kit's PointerSensor keeps a capture-phase document click blocker for 50 ms after a drag ends (setTimeout(this.documentListeners.removeAll, 50) in detach), so a click in that window is swallowed. Whether a test hits the window depends on machine speed.
#178 hit the same problem in tests/e2e/first-layer-reconciliation.spec.ts. Its drag helper now waits for the new swatch order and then 100 ms.
Fix idea
After each drag in image-decode-reuse.spec.ts, wait for the reordered state and then just over 50 ms, or share a drag helper between the specs.
Acceptance
npm run test:e2e passes repeatedly on a fast local machine.
Still failing at developec5ce5a (after #177): 3 of the 4 opaque Display P3 history cases failed in a full npm run test:e2e run on macOS, and 7 of 8 in a two-repeat run of this spec. Same symptom: after the swatch drag, the click on 2D is lost and setInputFiles times out waiting for image-file-input. GitHub CI on ec5ce5a still passes.
Activity
vycdev commentedon Nov 19, 2026
Still failing at
developec5ce5a (after #177): 3 of the 4 opaque Display P3 history cases failed in a fullnpm run test:e2erun on macOS, and 7 of 8 in a two-repeat run of this spec. Same symptom: after the swatch drag, the click on 2D is lost andsetInputFilestimes out waiting forimage-file-input. GitHub CI on ec5ce5a still passes.Wait for dnd-kit's click blocker to lift after swatch drags
Wait for dnd-kit's click blocker to lift after swatch drags
Wait for dnd-kit's click blocker to lift after swatch drags
vycdev commentedon Dec 1, 2026
Fixed in develop by #235. It ships in the next release.