Skip to content

586 — should invite user

Description

Verifies the end-to-end "quick invite" flow: an admin invites an employee by email only, the invitee receives a real invite email, registers with the invite code, and after activation appears in the Users grid with status "Activated" and a default-initials avatar.

Preconditions

  • Signed-in admin on a freshly seeded organization.
  • The Users page is open.
  • A MailSlurp inbox has been created to receive the invite email.

Steps

  1. Click "Add user" (quick view), enter the invitee's MailSlurp email address, and click Create. Expected: a "user created" popup appears, the new row shows Access "Standard" and Status "Invited".
  2. Read the invite email from the MailSlurp inbox and extract the invite code. Expected: an invite code is present in the email body.
  3. Register the invitee on the platform using their email and the extracted invite code, then verify the registration. Expected: the registration and verification API calls both succeed.
  4. Reload the Users page. Expected: the invitee's row still shows Access "Standard", the Status has changed to "Activated", and the avatar cell shows a default-initials avatar for that email.
  5. Double-click the invitee's row to open their detail page. Expected: the detail page shows the invited email, a default-initials avatar (no image), and the status badge "Activated".
  • Spec: playwright/tests/integration/user.spec.ts (line 393)