Skip to content

test(cli): the said-order test reads a named corner as that corner - #13452

Merged
josephfarina merged 1 commit into
feature/theme-editorfrom
theme-editor-corners-order-test-longhand
Nov 21, 2026
Merged

josephfarina merged 1 commit into
feature/theme-editorfrom
theme-editor-corners-order-test-longhand

Conversation

@josephfarina

@josephfarina josephfarina commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

User impact

None: test only. feature/theme-editor fails its own suite since two changes met: corners said before their edge run after it (#13320), and a radius named for one corner writes that corner only (#13378). The first one's said-order test still expects "a 4px top left radius" on a link as a whole border-radius 4px; the second one now writes border-start-start-radius 4px, as intended.

Fix

The test matches the corner longhand. The order it checks is unchanged and correct: the shadow, then border-radius 12px, then border-start-start-radius 4px.

Evidence

  • On the branch tip: theme-corners-after-edge.test.mjs fails 1 of 17 ("keeps the said order of two corners steps moved past one edge").
  • With this change: it and theme-how-one-corner-radius.test.mjs pass, 23 of 23.

Scope

  • One defect is restored.
  • Separable contradictory or unsettled tagalongs were removed or split.
  • No new public API, visual representation, default, or interaction model is hidden under the bug-fix label.
  • Public text and artifacts contain no internal Meta context.

replay: worse 0 at 02192c4 (test file only; no code change)
local: theme-corners-after-edge.test.mjs fails 1/17 on c341b43, passes with 02192c4 (23/23 with theme-how-one-corner-radius.test.mjs)

… corner as the corner it names

Since a radius named for one corner writes that corner only, "a 4px top left radius" on a link is border-start-start-radius; the test matched the whole border-radius the editor wrote before.

[skip ci]
@vercel

vercel Bot commented Nov 21, 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 21, 2026 6:50pm UTC

Request Review

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

astracat-bot Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🔄 In progress (for maintainers only) Nov 21, 2026, 6:50 PM UTC

@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.

Approve. This test-only change makes the said-order test expect the top-left border-start-start-radius longhand that the branch already writes and tests elsewhere. Nothing else is needed from you.

Claims and files checked

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

  • Claim: the branch's own tests went red when the corner-ordering change met the one-corner change. Verified: on the base, the said-order test fails.
  • Claim: the said-order test expected the top-left 4px as a whole border-radius on a link. Verified: theme-corners-after-edge.test.mjs line 136 on the base.
  • Claim: a radius named for one corner now writes border-start-start-radius 4px, as intended. Verified: theme-how-one-corner-radius.test.mjs lines 86-110 assert it and pass.
  • Claim: the checked order is unchanged (shadow, then border-radius 12px, then the corner). Verified: lines 138-140, and the base failure prints exactly that order.
  • Claim: on the branch tip the file fails 1 of 17. Verified.
  • Claim: with the change, both corner test files pass, 23 of 23. Verified.
  • Claim: test file only, with no code change and no new public API, default, visual or interaction. Verified: one test file, which the published package excludes.
  • Claim: the replay note reports nothing worse. Verified: only this test file changes, and no other file imports it.
  • Claim: the public text has no internal context. Verified.
  • Claim (commit message): the test matched the whole radius the editor wrote before. Verified.
  • File packages/cli/api/theme-edit/theme-corners-after-edge.test.mjs: clear.

Automated review (maintainer link)

@josephfarina
josephfarina merged commit 6941bb0 into feature/theme-editor Nov 21, 2026
7 checks passed
josephfarina added a commit that referenced this pull request Nov 21, 2026
…13452)

Reviewed pull request #13452, merged into the theme working branch. It reaches main with the branch's next landing.
josephfarina added a commit that referenced this pull request Nov 21, 2026
- #12787 experimental theme: a pressed or hovered part's flat tint is measured as the fill it is
- #13252 experimental theme: a one-color layer is a fill only where it covers the whole box
- #13300 experimental theme: a fill and its on-color set inside a part are measured as that part draws them
- #13321 experimental theme: a part's fill pair is measured though its on-color is set for the whole theme
- #13360 experimental theme: an on-color set on a part holding the readers leaves the fill pair out
- #12768 feat(cli): experimental theme editor show <theme> --on <part> gives what one part of a theme shows
- #13057 experimental theme pictures: sheet cells are never narrower than what they hold, and a panel over the page is drawn at its cell's full width
- #13200 experimental theme pictures: a change removes the pictures cut from a tall one
- #13199 experimental theme pictures: the pages section draws the sample app whole, cut between pages and named
- #13320 fix(cli): corners said before their edge run after it, so the whole answer does both
- #13375 experimental theme how: a clashing fill's text color goes in that fill's choice
- #13411 experimental theme how: a clash with a see-through fill joins its text too; another look's text leaves it joined
- #13420 fix(cli): experimental theme editor - glossy writes no sample gradient
- #13452 test(cli): the said-order test reads a named corner as that corner
- #13262 fix(cli): experimental theme editor - an ask that starts with clear the and names only removable looks takes them away
- #13450 fix(cli): experimental theme editor - a bar's text token is checked in the menus its items open
- #13442 feat(cli): a light neutral also fills the page, surface and card backgrounds in light mode
- #13477 docs(changeset): the clear reading takes looks away for one part
@josephfarina

Copy link
Copy Markdown
Contributor Author

Landed on main in #13470.

@github-actions
github-actions Bot deleted the theme-editor-corners-order-test-longhand branch November 22, 2026 06:04

This branch was successfully deployed

1 active deployment
Preview — 02192c47 Deployed Nov 21, 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