Skip to content

Keep a button's label out of the card text in the word-keeping property test - #355

Merged
nstarman merged 1 commit into
mainfrom
fix-wrap-join-test
Oct 6, 2026
Merged

nstarman merged 1 commit into
mainfrom
fix-wrap-join-test

Conversation

@nstarman

@nstarman nstarman commented Oct 6, 2026 •

Copy link
Copy Markdown
Owner

Changing code or schema

What and why: tests/cardlayout.property.test.js › keeps every word of the text and of the role still fails at random on main, now by a different input than the one #354 fixed: at some widths a button's year label (e.g. 0000) is the same size as the body text, so the test counts it as body text (… 0000). The body filter now skips links.

Found by running the property at FC_RUNS=3000; with this change it passes at FC_RUNS=5000, and npm test is 717 passed.

(This PR first also fixed the space after –/? breaks; #354 landed that fix meanwhile, so the branch was rebased onto it and only this part remains.)

  • npm run test:schema passes
  • If a link.rel value or a type was added, every renderer was updated in this PR — n/a
  • If a constraint was added, schema/invalid/ gained a fixture proving it is enforced — n/a

🤖 Generated with Claude Code

@nstarman nstarman added this to the ♾️&➡ milestone Oct 6, 2026
@github-actions

github-actions Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

Preview: https://4fb1bce4.nstarkman-space.pages.dev

Built from 48faff2d4c3cd25dbcaffcecf9152a356a3aff6d, including the four CV PDFs.
Updated on every push to this pull request.

…rty test

At some widths a button's year label is the same size as the body text, so the
test counted "0000" as body text and failed at random. A link is not body text.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@nstarman
nstarman force-pushed the fix-wrap-join-test branch from ed922a0 to 48faff2 Compare October 6, 2026 22:02
@nstarman nstarman changed the title Fix flaky property test of the card text wrap Keep a button's label out of the card text in the word-keeping property test Oct 6, 2026
@nstarman
nstarman merged commit b49afdf into main Oct 6, 2026
7 checks passed
@nstarman
nstarman deleted the fix-wrap-join-test branch October 6, 2026 22:09
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