Skip to content

test(web): timeline expansion test waits for the list to settle - #58

Merged
ScriptedAlchemy merged 1 commit into
mainfrom
fix/timeline-worked-for-anchor
Nov 4, 2026
Merged

ScriptedAlchemy merged 1 commit into
mainfrom
fix/timeline-worked-for-anchor

Conversation

@ScriptedAlchemy

Copy link
Copy Markdown
Owner

MessagesTimeline's "keeps the worked-for heading in place when expanded at the bottom" failed on main often enough to redden Client and package tests, and therefore the required Fork Check, on every PR.

It was a test bug. The test measured the heading during LegendList's hidden first layout: toBeVisible() ignores opacity, so the heading could still move from 473 to 577 before the click handler ran, then stayed at 577 after expansion. Fake timers installed before the click also stalled the list, which showed up on CI as legend-list-content-container intercepts pointer events.

The test now waits for opacity-aware visibility and the bottom position, and leaves real timers running. Product code and the strict position assertions are unchanged.

Before: 3 of 3 full-file runs failed. After: 10 consecutive full-file runs passed, 40 tests each. vp run check:changed origin/main passes.

GPT-6 Astra via Codex in T3 Code; PR opened by Claude Opus 5.5 via Claude Code in T3 Code.

🤖 Generated with Claude Code

Wait for LegendList to finish its hidden initial layout before recording the heading position. Keep real timers running through the click and expansion so the virtualizer can complete its layout work.

Co-Authored-By: GPT-6 Astra <noreply@openai.com>
@changeset-bot

changeset-bot Bot commented Nov 4, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 9df2dfa

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@ScriptedAlchemy
ScriptedAlchemy merged commit c3309ca into main Nov 4, 2026
8 checks passed
@ScriptedAlchemy
ScriptedAlchemy deleted the fix/timeline-worked-for-anchor branch November 4, 2026 06:12
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