301 — should be already part of the organization¶
Description¶
Verifies that when a logged-in user accepts an invite to an organization they are already a member of, the system silently confirms membership instead of showing the "welcome to PrimaTime" first-time onboarding banner.
Preconditions¶
- The invitee already used their first invite code to register, verify, and join the inviting organization via API (they are now an employee of that organization).
- A second invitation to the same organization has been sent to a different MailSlurp inbox (employee2) for the same workflow; the invite link is valid.
- The invitee has logged in and completed onboarding under their original email.
Steps¶
- Open the second invite link (for the already-joined organization) in the same browser session. Expected: the invitation offer page shows the inviting organization's name and the invitee's primary email pre-filled.
- Click "Accept". Expected: the "welcome to PrimaTime" first-time onboarding banner is NOT displayed (confirming the user was already part of the organization rather than newly added).
Related¶
- Spec:
playwright/tests/integration/invite.spec.ts(line 418)