Skip to content

[codex suggestion] Add screenshot regression tests #211

Closed

Description

@pascalpp

Background

Recent ruler layout work, especially around zero-corner orientation changes and unit label placement, is covered by geometry/unit tests. Those tests are useful, but they cannot catch visual regressions such as text looking slightly too high/low, labels overlapping tick marks, or subtle drawing changes that are still numerically plausible.

Suggestion

Add screenshot regression coverage for representative ruler renderings.

Potential coverage:

  • Horizontal and vertical rulers.
  • All zero-corner configurations.
  • Unit label placement near each corner.
  • Mouse tick/number label overlap behavior where practical.
  • Light and dark/custom ruler colors if stable enough for deterministic rendering.

Expected Benefit

Screenshot baselines would give layout and drawing changes a visual safety net, complementing the existing unit tests. This would make future tweaks to ruler drawing, label offsets, resize handles, and zero-corner placement easier to review with confidence.

Notes

Keep the first version small and deterministic. A focused set of rendered ruler views is probably more useful than broad UI-test coverage, especially if it can run without launching the full app UI.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions