Skip to content

Document palette-aware assertions for screen goldens - #190

Open
tony wants to merge 2 commits into
masterfrom
fix/105-appearance-assertions
Open

tony wants to merge 2 commits into
masterfrom
fix/105-appearance-assertions

Conversation

@tony

@tony tony commented Dec 3, 2026

Copy link
Copy Markdown
Member

Closes #105

What changed, and why:

The testing guide shows how to read a cell's effective color from its committed snapshot. The example checks both a palette override and its reset while keeping the boxed golden token stable.

Checks run:

On Linux, Ruff formatting and lint, ty for Python 3.12 through 3.15, the full pytest suite with doctests, compiled Ghostty comparisons, and the Sphinx warnings-as-errors build passed.

Tool use:

Codex prepared the change and ran the local checks. A separate Codex reviewer replayed the changed behavior and checked the publication tree against the reviewed patch.

why: A boxed golden can keep its color token while a palette changes.

what:
- Resolve the token against its committed snapshot appearance.
- Check an OSC 4 override and OSC 104 restoration in a doctest.

Fixes #105
tony added a commit that referenced this pull request Dec 3, 2026
why: Readers need the behavior and scope of this change at release.

what:
- Add the unreleased entry for PR #190
- Preserve previously published notes and the parent branch's entries
@tony
tony marked this pull request as ready for review December 3, 2026 02:05
why: A golden can contain the same stored color while its resolved
     display color depends on the snapshot palette.

what:
- Point to the example that checks the resolved cell color.

This branch was previously deployed

1 inactive deployment
docs — d610de5e Deployed Dec 4, 2026 by tony via build (3.14) #328
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.

Offer an appearance-aware comparison for screen goldens

1 participant