Step-by-Step Guide — Follow each step exactly as written. Every value you need to type is spelled out. Do not improvise.
TC-MEM-005: Member Registration — Self-Service (Detailed)
No login required — uses the public registration page. Admin (for config + verification): admin@rcme.membervu.com / Admin123!.
URLs: Registration
https://stg-rcme.membervu.com/register · MailHog https://stg-webmail.membervu.com
Important: the registration form has no password fields. The applicant submits profile info and clicks "Create account"; the password is set later via the emailed verification/set-up link.
TC-REG-01: Successful Self-Registration
| Step | Action | Expected Result | Test Value |
|---|---|---|---|
| 1 | In an incognito window, open /register. | Fields: First Name*, Last Name*, Email*, Phone (international, optional), Address, LinkedIn, Other socials (+ any tenant "Additional information" fields). No password. | - |
| 2 | First Tester, Last Newmember, Email qa-newmember-reg@test.membervu.com, Phone +63 917 555 1234. | Values accepted. | qa-newmember-reg@test.membervu.com |
| 3 | Click "Create account". | Success state: "Check your email — we've sent a verification link to …". Not logged in yet. Phone persisted (#182). | - |
PASS if: registration submits and shows the "check your email" confirmation.
TC-REG-02: Email Verification + Set Password
| Step | Action | Expected Result | Test Value |
|---|---|---|---|
| 1 | Open MailHog https://stg-webmail.membervu.com; find the verification / set-up-password email to qa-newmember-reg@test.membervu.com. | Email present with a link. | - |
| 2 | Click the link; set a password (e.g. Newmember123!) if prompted. | Email verified / password set; redirected to login (or logged in). | Newmember123! |
| 3 | Log in with the new credentials. | Login succeeds (assuming approved, or approval not required). | - |
Note: if the tenant routes new registrants through approval, the account stays
PENDING_APPROVAL until an admin approves (see TC-MEM-004), regardless of email verification.PASS if: verification link works and the account can log in after setting a password.
TC-REG-03: Tenant-Configurable Fields (#185)
| Step | Action | Expected Result | Test Value |
|---|---|---|---|
| 1 | As admin, Member Settings → Fields (/admin/members/settings?tab=fields). Toggle a native field (company/profession) or a custom field "Show at registration" (+ optionally "Required at registration"). Save. | Config saved. | - |
| 2 | Reload /register. | An "Additional information" section renders the configured field(s); required ones block submit until filled. | - |
PASS if: configured fields appear on the registration form.
TC-REG-04: Duplicate Email Rejected
| Step | Action | Expected Result | Test Value |
|---|---|---|---|
| 1 | At /register, use Email testmember@rcme.membervu.com (already exists) → Create account. | Rejected: "an account with this email already exists" (or the existing record is updated via the conversion path — see TC-MEM-005 summary TC-GST-01). | testmember@rcme.membervu.com |
PASS if: an existing email does not create a duplicate account.
TC-REG-05: Invalid Email Rejected
| Step | Action | Expected Result | Test Value |
|---|---|---|---|
| 1 | At /register, Email not-an-email → Create account. | Validation error near the Email field; not submitted. | not-an-email |
PASS if: an invalid email is rejected.
CLEANUP
The test account
qa-newmember-reg@test.membervu.com (and any registration-field config changes) are cleared by a reseed: docker exec membervu-backend npm run seed:rcme. They don't block other tests.