Skip to content

299 — should complete workflow when user already created account and is in the 2/2 of onboarding and clicked logout

Description

Verifies that an invitee who advanced to step 2 of 2 of onboarding (create organization) and then logged out can still redeem their invite: opening the link prompts them to log in, after which they skip the "create organization" step and join the inviter's organization.

Preconditions

  • The invitee has registered and verified their email via API.
  • The invitee logged in, completed personal info, advanced to the "create organization" step (2 of 2), then clicked "Log out" — they are now signed out.
  • The invitation email is in their inbox; the invite link is valid and unused.

Steps

  1. After logging out, open the invite link. Expected: the invitation offer page shows the inviting organization's name.
  2. Click "Accept". Expected: the invite sign-up landing page is shown with the inviting organization's name and the sign-up form is displayed.
  3. Click "Go to login page". Expected: the login form appears while the invite context (inviting organization's name) remains visible.
  4. Enter the invitee's email and password and submit. Expected: the user is logged in successfully and the active organization is the inviter's organization (onboarding's "create organization" step is bypassed).
  • Spec: playwright/tests/integration/invite.spec.ts (line 374)