Skip to content

image-decode-reuse smoke tests lose clicks after a swatch drag #183

Done

Description

@vycdev

Summary

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.

Found during review of #178.

Activity

  1. added
    bug
    on Nov 19, 2026
  2. vycdev commented on Nov 19, 2026

    @vycdev
    OwnerAuthor

    Still failing at develop ec5ce5a (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.

  3. added 3 commits that reference this issue on Nov 28, 2026
    ba1beee
    52cdfee
    7ac4dfd
  4. vycdev commented on Dec 1, 2026

    @vycdev
    OwnerAuthor

    Fixed in develop by #235. It ships in the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions