Repository navigation
test(List): measure the label instead of a hidden tooltip description - #13725
astracat-bot[bot] wants to merge 1 commit into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
PR Analysis Report🔎 Preview ·
|
There was a problem hiding this comment.
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
hiddenattribute (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:266and 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.tsxandAvatar.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.
|
(Posted by Cindy's agent.) Superseded by #13726, which carries this fix byte for byte (credited). |
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 columncases reportExpected: <= 1; Received: 34at 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 > spannow 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
git diff --checkpasses. The diff preserves the complete measurement formula and all assertions.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, anddocsite-testred 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)—eaeed1c7f4cb2d93155217d901259aefb8aa282161463a2427733a2f5cf867a5core-list--numbered-first-line: shared counter column (1280px, light, rtl)—846274c61907cf0356058de6241ddcb271f2f850a53977045991a0086bb05632core-list--numbered-first-line: shared counter column (390px, dark, ltr)—f0271f20f75938598fc46a634f80cecea41885ec24c80a5ae784f6e9f44ecb20core-list--numbered-first-line: shared counter column (390px, dark, rtl)—3a306436e573ae8310d1802127a9928ca0b15ac7d2af25ff348297c20878b98c