Repository navigation
[codex] Add ruler screenshot regression tests - #223
Merged
Merged
Conversation
pascalpp
marked this pull request as ready for review
June 15, 2026 05:24
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #211.
Adds screenshot regression coverage for representative ruler renderings without launching the full app UI. The snapshots cover zero-corner horizontal/vertical ruler layouts and mouse tick label placement across deterministic light/dark ruler colors.
The change also replaces several broad numeric layout unit tests with the screenshot assertions, keeps narrower behavioral unit tests in place, and adds
yarn test:regenerate:snapshotsfor updating baselines intentionally.Validation
/usr/bin/time -p yarn testpassed inreal 123.03syarn test:regenerate:snapshotsxcodebuild -project "Free Ruler.xcodeproj" -scheme "Free Ruler" test -only-testing:FreeRulerTests/usr/bin/time -p yarn testpassed inreal 119.00sNote: one intermediate full-suite run hit an Xcode RunningBoard/launchd app-spawn failure; a standalone UI rerun and the final full suite both passed.