Skip to content

test(List): measure the label instead of a hidden tooltip description - #13725

Closed
astracat-bot[bot] wants to merge 1 commit into
mainfrom
codebunny/fix/test-list-measure-the-label-instead-of-a-hidden-tooltip-description-8ea1d6
Closed

astracat-bot[bot] wants to merge 1 commit into
mainfrom
codebunny/fix/test-list-measure-the-label-instead-of-a-hidden-tooltip-description-8ea1d6

Conversation

@astracat-bot

@astracat-bot astracat-bot Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

validation: not run: GitHub deferred heavy CI pending review, and package downloads prevented local browser validation. CodeBunny’s CI lab reproduced the original failure in 20 of 20 runs (repro 7632199019499071527).

Maintainer impact

The four core-list--numbered-first-line: shared counter column cases report Expected: <= 1; Received: 34 at the first-line alignment assertion after 2bfebe7 (#11916).

Intended invariant

The counter stays aligned with the visible label's first line. Item's current FR2 first-line alignment contract is unchanged, as are the one-pixel bound and every other assertion.

Change

The selector :scope > span > span now finds the Avatar's hidden tooltip-description span in the start-content slot before it reaches the row label. That hidden span has no line box. Exclude [hidden] candidates so the measurement reads the row label again.

No behavior change. This changes only the browser test's observation, not List, Item, Avatar, Tooltip, their styles, or the story fixtures. No timeout, retry, skip, baseline, or assertion limit changes.

Evidence

  • CI-lab repro 7632199019499071527 repeats the unchanged spec at the failing commit: all four affected cases fail with the same 34px reading in all 20 runs. Each run also passes the 13 other active cases in the file; its four pre-existing skipped cases are unchanged.
  • A hand replay of the markup shape from Item and Avatar confirms the old selector picks the hidden description and the revised selector picks the visible label. This is not a browser run or proof of post-change pixels.
  • git diff --check passes. The diff preserves the complete measurement formula and all assertions.
  • The spec lookup and pre-review scripts could not run because dependencies were unavailable.

The remaining uncertainty is post-change browser validation: the selector correction is supported by the source and repeated failure, but the patched Playwright test has not run. Changing component layout instead would target the hidden description's nonexistent line box rather than the intended label.

PR CI status

CI run 45399158471 marked build, test, and docsite-test red because heavy CI was deferred under AST-030 FR20. These jobs did not fail on a build or test assertion; the accessibility contract jobs were skipped. The selector change still needs a browser run. The workflow starts heavy CI once the review app or an engineering owner approves this commit and the spec gate passes, while the run is at most six hours old.

Tests covered

packages/core/src/List/ListMarkers.a11y.chromium.spec.ts:

  • core-list--numbered-first-line: shared counter column (1280px, light, ltr) — eaeed1c7f4cb2d93155217d901259aefb8aa282161463a2427733a2f5cf867a5
  • core-list--numbered-first-line: shared counter column (1280px, light, rtl) — 846274c61907cf0356058de6241ddcb271f2f850a53977045991a0086bb05632
  • core-list--numbered-first-line: shared counter column (390px, dark, ltr) — f0271f20f75938598fc46a634f80cecea41885ec24c80a5ae784f6e9f44ecb20
  • core-list--numbered-first-line: shared counter column (390px, dark, rtl) — 3a306436e573ae8310d1802127a9928ca0b15ac7d2af25ff348297c20878b98c

@vercel

vercel Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
astryx Ready Ready Preview Nov 24, 2026 1:12pm UTC

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Nov 24, 2026
@astracat-bot

astracat-bot Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor Author

AI review status for this pull request.

Review status Updated
🟢 Reviewed (for maintainers only) Nov 24, 2026, 1:20 PM UTC

@github-actions

Copy link
Copy Markdown
Contributor

PR Analysis Report

🔎 Preview · 80701c6

This branch's preview address cannot be known in advance; open it from Vercel's comment.

Current run: Heavy CI deferred: runs when review passes and before merge. Lint, typecheck and any path-filtered checks ran on this push.


Generated by PR Enrichment workflow | View current CI run

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved pending CI: CI has not run on this head yet, and the heavy checks that run this browser spec start once review passes.

The lookup change makes the first-line check measure the row's visible label again instead of the Avatar tooltip's hidden description copy, and nothing else in the spec or the components changes. No changes are needed from you.

Claims and files checked

Review mode: full; reason: no-earlier-review

Claims:

  • The four numbered-first-line shared-counter cases fail at the first-line check since the tooltip change landed: consistent with the source, since the old lookup reaches an element with no box; the reported pixel value was not reproduced here.
  • The old lookup reaches the Avatar's hidden tooltip description in the start slot before the label: verified (Item.tsx:935-943, Avatar.tsx:957-961, useTooltip.tsx:324).
  • That hidden copy has no line box: verified, it carries the hidden attribute (useTooltip.tsx:324).
  • Skipping [hidden] candidates makes the lookup read the row label: verified (Item.tsx:863-874, Item.tsx:991-998).
  • No behaviour change, and List, Item, Avatar, Tooltip, their styles and the stories are untouched: verified, the diff holds one test file.
  • The one-pixel bound and every other assertion, timeout, retry and skip are unchanged: verified (ListMarkers.a11y.chromium.spec.ts:266 and the diff).
  • The 13 other active cases pass and the 4 skipped cases stay skipped: consistent with the file (21 tests, 4 skipped as known right-to-left gaps); the runs were not reproduced here.
  • A hand replay picks the hidden copy before the change and the label after it: matches the markup in Item.tsx and Avatar.tsx.
  • The whitespace check passes: verified with git diff --check.
  • The patched browser test has not run yet: true; CI runs it before merge.

Files:

  • packages/core/src/List/ListMarkers.a11y.chromium.spec.ts: clear.

Automated review (maintainer link)

@cixzhang

Copy link
Copy Markdown
Contributor

(Posted by Cindy's agent.) Superseded by #13726, which carries this fix byte for byte (credited).

@cixzhang cixzhang closed this Nov 24, 2026
@github-actions
github-actions Bot deleted the codebunny/fix/test-list-measure-the-label-instead-of-a-hidden-tooltip-description-8ea1d6 branch November 25, 2026 06:04

This branch was successfully deployed

1 active deployment
Preview — 80701c6a Deployed Nov 24, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant