Skip to content

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

Description

Verifies that an invitee who began onboarding at step 1 of 2 (personal info) and then logged out can still redeem their invite later: opening the link prompts them to log back in, after which they finish onboarding and join the inviter's organization.

Preconditions

  • The invitee has registered and verified their email via API.
  • The invitee logged in, started filling personal info (step 1 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 (no email pre-fill because the session is gone).
  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 taken back into onboarding.
  5. Fill in first and last name and click "Finish". Expected: the user is logged in successfully and the active organization is the inviter's organization.
  • Spec: playwright/tests/integration/invite.spec.ts (line 340)