Repository navigation
Stop the Display P3 history smoke tests losing a click after swatch drags - #235
Merged
Merged
Conversation
vycdev
force-pushed
the
t3/fix-image-decode-reuse-flakes
branch
2 times, most recently
from
November 28, 2026 12:04
ba1beee to
52cdfee
Compare
The opaque Display P3 history tests clicked 2D right after a swatch drag. dnd-kit stops click propagation for 50 ms after a drag ends, so the click was sometimes lost and the next import timed out. Probe with a synthetic click until one gets through, and use the same helper in the first-layer spec instead of its fixed 100 ms wait. Fixes #183 Co-Authored-By: Claude Opus 5.5 <[email protected]>
vycdev
force-pushed
the
t3/fix-image-decode-reuse-flakes
branch
from
November 28, 2026 12:20
52cdfee to
7ac4dfd
Compare
This was referenced Nov 28, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The four opaque Display P3 history smoke tests in
image-decode-reuse.spec.ts(8- and 16-bit, bitmap and img fallback) failed now and then on fast machines. Each one clicks 2D right after a swatch drag. dnd-kit keeps a capture-phase click listener on the document that stops propagation, and only removes it 50 ms after the drag ends. A click inside that window is lost: 2D gets focus, 3D stays pressed, and the next file import times out.The tests now wait until a probe click gets through again. The probe is a non-bubbling synthetic click on a throwaway element outside the app root. This waits on the actual blocker instead of a guessed delay.
first-layer-reconciliation.spec.tsuses the same helper in place of its fixed 100 ms wait from #178.Evidence (local macOS, Chromium, production build on a private port)
setInputFilestimed out after the 2D click, and the snapshot showed 2D focused and 3D pressed.mouse.up()found clicks blocked for up to 50 ms in 7 of 8 runs, so the probe detects the real blocker.first-layer-reconciliation.spec.tspassed.npm run lintandnpm run test:e2e:allpass (8 suites).This is not an app bug. Real users can't press and release another control within 50 ms of dropping a swatch, and the blocker exists so the drop itself doesn't count as a click.
Fixes #183
Reviewed with sol-loop: 1 round with gpt-6.2-sol. Sol verdict: approved
Created with Claude Opus 5.5 in Claude Code.
🤖 Generated with Claude Code