Skip to content

e2e: the tissue drag follows the page, not the clock - #928

Merged
adamjohnwright merged 1 commit into
mainfrom
e2e/reliable-tissue-drag
Nov 11, 2026
Merged

adamjohnwright merged 1 commit into
mainfrom
e2e/reliable-tissue-drag

Conversation

@adamjohnwright

Copy link
Copy Markdown
Contributor

Fixes the flaky end-to-end test a dragged tissue counts as chosen (e2e/analysis-results.spec.ts), which failed three times in one CI run on #896. No spec: a test fix.

Cause, from CI's trace: the test measured the selected list while the analysis panel was still opening. The panel then pushed the form down about 170 px, and the drop landed on the heading above the list. The drag also relied on fixed pauses (150 ms, then 20 ms a step).

Now the drag waits on what the page shows, with no fixed pause:

  1. Press on Colon where it is now, until CDK's drag preview carries it.
  2. Move to the selected list where it is now, re-measured if the page moved, until CDK's placeholder is in it.
  3. Release only then.

Checked:

  • 24 of 24 runs, eight at once, with the browser's CPU slowed sixfold.
  • Aimed off the list, the old test releases and fails as CI did; the new one does not release.

🤖 Generated with Claude Code

'a dragged tissue counts as chosen' failed three times in one CI run. Its
trace shows why: the test measured the selected list while the analysis
panel was still opening, the panel then pushed the form down about 170px,
and the drop landed on the heading above the list. The drag also relied on
fixed pauses (150 ms, then 20 ms a step).

The drag now waits on what the page shows: pressed on Colon as it is now
until CDK's preview carries it, then moved to the selected list as it is
now until CDK's placeholder is in it, re-measured if the page moved, and
released only then. No fixed pause is left.

Checked: 24 of 24 runs eight at once with the browser's CPU slowed sixfold.
Aimed off the list, the old test releases and fails as CI did; the new one
does not release.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@adamjohnwright
adamjohnwright enabled auto-merge (squash) November 11, 2026 22:26
@adamjohnwright
adamjohnwright merged commit efa7723 into main Nov 11, 2026
8 checks passed
@adamjohnwright
adamjohnwright deleted the e2e/reliable-tissue-drag branch November 11, 2026 22:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant