Skip to content

300 — should decline offer

Description

Verifies that a logged-in invitee can decline an invitation from another organization — the invite is dismissed and the user remains in their own existing organization (no membership change).

Preconditions

  • The invitee has an existing account with their own organization (orgName1) and is currently logged in to it.
  • A second organization has sent them an invitation; the invitation email is in their inbox and the invite link is valid and unused.

Steps

  1. Open the invite link in the same browser session. Expected: the invitation offer page shows the inviting organization's name with the invitee's email pre-filled.
  2. Click "Decline". Expected: the invite is dismissed and the user lands back in their original organization — the active organization name is still their own (orgName1), confirming the inviter's organization was not joined.
  • Spec: playwright/tests/integration/invite.spec.ts (line 407)