Skip to content

test(keyboard): add keycap visualizer snapshots - #54

Merged
esphynox merged 10 commits into
mainfrom
test/snapshot-testing
Jul 29, 2026
Merged

test(keyboard): add keycap visualizer snapshots#54
esphynox merged 10 commits into
mainfrom
test/snapshot-testing

Conversation

@esphynox

Copy link
Copy Markdown
Collaborator

Summary

Adds snapshot testing coverage for the keyboard visualizer keycap group using Point-Free SnapshotTesting. The snapshots cover the Apple black theme for a default letter keycap, Tab, Escape, and a Cmd + Shift + K chord where the modifiers render as released/unpressed keys.

This also adds a named KeyboardKeyCode.k case and shares a test-only modifier flag helper for constructing device-specific modifier masks.

Tests

  • tuist generate
  • xcodebuild test -project Keyty.xcodeproj -scheme Keyty -destination platform=macOS
  • Other: xcodebuild test -project Keyty.xcodeproj -scheme Keyty -destination platform=macOS -only-testing:KeytyTests/KeycapItemFactoryTests -only-testing:KeytyTests/KeyboardVisualizerGroupViewSnapshotTests

Run project commands from Apps/Keyty.

UI Changes

N/A. Adds test snapshot reference images only.

Documentation

  • Updated relevant docs
  • No docs needed

Release Notes

N/A.

@esphynox esphynox self-assigned this Jul 29, 2026
@esphynox
esphynox marked this pull request as ready for review July 29, 2026 15:07
@esphynox
esphynox merged commit 9b38e7b into main Jul 29, 2026
1 check passed
@esphynox
esphynox deleted the test/snapshot-testing branch July 29, 2026 15:34
@esphynox esphynox added the ignore for release Dont include in release notes label Jul 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ignore for release Dont include in release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant