Repository navigation
test: trim component snapshots in favour of behaviour - #3505
Merged
Merged
Conversation
setchy
force-pushed
the
test/component-snapshot-trim
branch
from
October 25, 2026 13:59
ccb6039 to
03d4606
Compare
Replace the large NotificationRow, ReasonFilter, FilterSection, and Sidebar snapshots with content, option-count, enabled-state, and role assertions. Restore the removed sidebar icon-state coverage through notification and focused-mode variant assertions, and keep the notification reference and exit state on stable data attributes. Visual regression continues to cover the rendered icons.
setchy
force-pushed
the
test/component-snapshot-trim
branch
from
October 25, 2026 14:05
03d4606 to
c3d2244
Compare
|
Contributor
|
🎉 This pull request is included in Gitify v8.0.0! 🎉 Downloads for macOS, Windows, and Linux are available on the release page. Thanks for helping make Gitify better! |
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
NotificationRowsnapshots with assertions for content, actions, and reference visibility. The reference now exposes a stabledata-hiddenstate.ReasonFiltersnapshot with an assertion for every reason option, counting duplicate titles.FilterSectionsnapshots with enabled/disabled checkbox assertions.Sidebarsnapshots with role-based control assertions and variant checks for notifications, focused mode, and highlighted filters.Why
These snapshots were 4.5k lines of markup that changed on every styling tweak. The replacements assert the behaviour and contract the tests actually care about; visual regression still covers the rendered icons and layout.
Verification
pnpm test: 200 files, 1,968 tests passedpnpm exec vp check --no-fmt: 465 files passedFollow-up
NotificationFooterand the remaining filter-section snapshots can get the same treatment later.