Skip to content

refactor(test): extract shared generateInvite helper in SettingsScreen tests (#162) - #164

Closed
luandro wants to merge 1 commit into
mainfrom
agent/comapeo-cloud-app/issue-162
Closed

refactor(test): extract shared generateInvite helper in SettingsScreen tests (#162)#164
luandro wants to merge 1 commit into
mainfrom
agent/comapeo-cloud-app/issue-162

Conversation

@luandro

@luandro luandro commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Extracts a shared generateInvite(user) helper to eliminate duplicated form-fill-and-submit code across 4 tests.

Changes:

  • Added import type { UserEvent } from '@testing-library/user-event'
  • Added generateInvite(user: UserEvent) helper function
  • Replaced 4 duplicate 3-line form-fill blocks with await generateInvite(user)

Verification:

  • ✅ 24/24 tests pass (1 pre-existing skip)
  • ✅ TypeScript strict mode
  • ✅ ESLint + Prettier
  • ✅ Full Validation PASSED (Husky gate)

Closes #162

@github-actions

Copy link
Copy Markdown
Contributor

Preview deployment ready: https://agent-comapeo-cloud-app-issu-1jme.comapeo-cloud-app.pages.dev

Commit: 6beaa9c

@luandro luandro closed this Jul 30, 2026
@luandro
luandro deleted the agent/comapeo-cloud-app/issue-162 branch July 30, 2026 02:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

refactor(test): extract shared generateInvite helper in SettingsScreen tests

1 participant