Skip to content

test(BottomSheet): name the drag spec's list marker plainly - #10767

Merged
cixzhang merged 1 commit into
meta:mainfrom
vjeux:test/bottomsheet-drag-list-marker
Nov 9, 2026
Merged

cixzhang merged 1 commit into
meta:mainfrom
vjeux:test/bottomsheet-drag-list-marker

Conversation

@vjeux

@vjeux vjeux commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

Maintainer impact

A BottomSheet accessibility proof marks the sheet's scrolling list with a data attribute, so it can find the list again. The attribute's name was a leftover label that means nothing in this repository. It now says what it marks.

Intended invariant

A marker that a test sets says what it marks, as TableScroll.a11y.chromium.spec.ts does with tableScrollOuter. The proof's checks do not change.

Change

  • The test "a long list scrolls to its end, then the sheet stretches with the rest of the pull" now marks the list as data-sheet-list. It sets dataset.sheetList and finds the list with [data-sheet-list].
  • No other line changes. No component, story or element uses data-sheet-list.

Evidence

  • Failure before the change: none; this changes a name only. The test finds the list by the new name, so a mismatch between the two lines would fail it.
  • Success after the change: the spec passes on main and on this branch alike (table below).
  • Product/runtime behavior verified unchanged: one test file changes, by two lines.
  • CI impact (for a change to workflows, actions or CI scripts): none.

Scope

  • No intended public API, product behavior, visual direction, or policy change.
  • Product changes discovered during the work were removed or split.
  • Public text and artifacts contain no internal Meta context.

Testing

On main 79893c7 with its own Storybook build, CI=1, Chromium, 1 worker:

Run Main This branch
BottomSheetDrag.a11y.chromium.spec.ts, 2 rounds of 3 tests ×2, interleaved 12 pass 12 pass

Gates. typecheck (core), eslint and prettier pass. pnpm test:node passes (17,709 tests). A search of every tracked file finds the old name nowhere else.

Overlap. #8344 and #8375 also touch this file. This branch adds no conflict to either.

The proof that a long list scrolls to its end before the sheet
stretches marks the sheet's scrolling list with a data attribute. Its
name was a leftover label that means nothing here. It is now
`data-sheet-list`, which says what it marks. Nothing else changes.
@vercel

vercel Bot commented Nov 9, 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 9, 2026 9:13am UTC

Request Review

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

astracat-bot Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟢 Reviewed (for maintainers only) Nov 9, 2026, 9:34 AM UTC

@github-actions

github-actions Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

🔎 Preview · 340626e

Storybook · Sandbox · built from this PR's head

Modified components

Component Size LoC Visual · A11y · RTL
BottomSheet 68.2 kB (0) · 7.7 kB CSS (0) — ✗ · ✓ · —
BottomSheetSwitcher 17.9 kB (0) · 3.4 kB CSS (0) — ✗ · ✓ · —
Visual changes: 2 snapshots in 1 component

A change is a question for the reviewer, not a failure.

Component · story Before After Diff
BottomSheet · Text Only (neutral, dark) before frame after frame diff frame
BottomSheet · Text Only (neutral, light) before frame after frame diff frame

Package size: no published package changed; no new dependencies.

API changes: none in this pull request

Committed API report behind this build: cli 29 rows, core 34 rows, theme-butter 1 row, theme-y2k 1 row; run pnpm api:report.

Touched components checked; add ci:run-visual or ci:run-rtl to run the full suites.


Generated by PR Enrichment workflow | View full report

@astracat-bot astracat-bot Bot left a comment •

Copy link
Copy Markdown
Contributor

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.

The rename is consistent: dataset.sheetList writes the data-sheet-list attribute that the locator now selects, and the FR18 long-list test in BottomSheetDrag.a11y.chromium.spec.ts passes in Chromium with the new name. Nothing else needs to change.

Next step: the ci:run and ci:run-a11y labels are already on, so CI starts once the pull request is marked ready for review.

[Automated review]

@cixzhang

cixzhang commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

/approve-spec 340626e

@cixzhang cixzhang added ci:run A maintainer lets this outside contributor's pull request run CI (AST-030 FR17) ci:run-a11y Run the accessibility suite on this PR; write access, next push (AST-030 FR12) labels Nov 9, 2026
@vjeux
vjeux marked this pull request as ready for review November 9, 2026 09:52
@cixzhang
cixzhang merged commit 5baebb0 into meta:main Nov 9, 2026
129 checks passed
@vjeux
vjeux deleted the test/bottomsheet-drag-list-marker branch November 9, 2026 10:24

This branch was successfully deployed

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

Labels

ci:run A maintainer lets this outside contributor's pull request run CI (AST-030 FR17) ci:run-a11y Run the accessibility suite on this PR; write access, next push (AST-030 FR12) 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.

2 participants