297 — should complete workflow when user already created account and is in the 2/2 of onboarding¶
Description¶
Verifies that an invitee who has already completed personal info and is sitting on step 2 of 2 of onboarding (create organization) can open an invite link and, by accepting it, skip the "create organization" step and join the inviter's organization instead.
Preconditions¶
- The invitee has registered and verified their email via API but has not finished onboarding.
- The invitee is logged in, has filled out personal info, advanced to step 2 of 2, and is sitting on the "create organization" stage.
- The invitation email is in their inbox; the invite link is valid and unused.
Steps¶
- On the "create organization" onboarding step (after entering name and clicking Next). Expected: the create-organization stage text/heading is displayed.
- 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.
- Click "Accept". Expected: onboarding is bypassed — the user is logged in successfully and the active organization is the inviter's organization.
Related¶
- Spec:
playwright/tests/integration/invite.spec.ts(line 315)