Skip to content

test: replace login and repository-header snapshots with behaviour - #3514

Merged
setchy merged 1 commit into
mainfrom
test/replace-login-repo-snapshots
Oct 25, 2026
Merged

setchy merged 1 commit into
mainfrom
test/replace-login-repo-snapshots

Conversation

@setchy

@setchy setchy commented Oct 25, 2026

Copy link
Copy Markdown
Member

Summary

  • Replace the six login-route snapshots with role/label assertions for the forge chooser, form fields, submit action, and error states.
  • Replace the three RepositoryHeader snapshots with assertions for the repository name, actions, collapse toggle, all-read state, and default avatar.
  • Delete the seven obsolete .snap files.

Accessibility fixes surfaced by the rewrite

  • Login form labels are now associated with their inputs via FormControl id.
  • The repository button has an explicit aria-label (Open repository <repo>), instead of an inferred name built from the avatar and count.

Verification

  • pnpm test: 200 files, 1,968 tests passed
  • scripts/visual.sh: 60 tests passed
  • pnpm exec vp check --no-fmt: 466 files passed

Closes #3509. Advances #3510.

Assert login forms, forge choice, and repository-header actions through roles and labels instead of full markup snapshots. Associate the login form labels with their inputs and give the repository button a clear accessible name. Delete the seven obsolete snapshot files.
@setchy
setchy requested a review from afonsojramos as a code owner October 25, 2026 14:47
@github-actions github-actions Bot added the test Enhancements to test coverage or quality label Oct 25, 2026
@sonarqubecloud

Copy link
Copy Markdown

@setchy
setchy merged commit 5510e2c into main Oct 25, 2026
19 checks passed
@setchy
setchy deleted the test/replace-login-repo-snapshots branch October 25, 2026 14:52
@github-actions github-actions Bot added this to the Release 7.11.0 milestone Oct 25, 2026
@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown
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!

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

Labels

test Enhancements to test coverage or quality

Development

Successfully merging this pull request may close these issues.

Replace login and repository-header snapshots with behaviour assertions

1 participant