Skip to content

292 — should complete workflow

Description

Verifies the invite flow for an invitee who already has a primatime account (with their own organization) but is currently signed out: they accept the invite, log in, and are welcomed into the inviter's organization.

Preconditions

  • The invitee already has an account belonging to their own organization (created and onboarded in the test setup).
  • The invitee is currently signed out (the session has been reset).
  • The inviter's invitation email is in the invitee's inbox; the invite link is valid and unused.

Steps

  1. 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.
  3. Click "Log in" on the invite page. Expected: the login form appears while the invite context (inviting organization's name) remains displayed.
  4. Enter the invitee's email and password and submit. Expected: the "welcome to the organization" confirmation is shown for the inviting organization.
  • Spec: playwright/tests/integration/invite.spec.ts (line 226)