587 — should invite user and check his avatar¶
Description¶
Verifies that after a freshly invited employee sets their first and last name on their own account, the Users grid in the admin's view immediately reflects the new full name and still shows a default-initials avatar (no profile picture uploaded yet).
Preconditions¶
- Signed-in admin on a freshly seeded organization.
- The Users page is open.
- A MailSlurp inbox is available for the invitee.
Steps¶
- Invite a new employee by email (quick add), wait for their invite email, register, and verify them. Expected: the invitee appears in the grid as "Invited" and then activates successfully.
- Log in as the invitee via the API to obtain an access token. Expected: an access token is returned.
- Using that token, patch the invitee's own account to set a randomly generated first name and last name (for example "John Doe"). Expected: the account update succeeds.
- Reload the admin's Users page. Expected: the invitee's row in the grid now displays the new full name and shows a default-initials avatar for that name.
- Double-click the invitee's row using the new full name. Expected: the detail page opens for the correct email, the avatar is the default-initials avatar (no image), and the status reads "Activated".
Related¶
- Spec:
playwright/tests/integration/user.spec.ts(line 407)