Skip to main content

Testing: Authentication

Test the full auth flow: register, verify email, login, logout.

Demo Credentials

RoleEmailPasswordTenant
Admindaniel.harris@example.comDemo1234!demo-association
Memberdemo@gmail.comDemo1234!demo-association

Test 1: Login

  1. Go to https://ams.14.jugaar.ai/login
  2. Enter daniel.harris@example.com as email
  3. Enter Demo1234! as password
  4. Enter demo-association as tenant
  5. Click Sign In
  6. ✅ You should see the Dashboard

Test 2: Register (New User)

  1. Click Get Started on the landing page
  2. Fill in:
    • First Name: Test
    • Last Name: User
    • Email: testuser@example.com
    • Tenant ID: demo-association
    • Password: MySecure123!
    • Confirm Password: MySecure123!
  3. Click Create Account
  4. ✅ You should see "Check Your Email" screen
  5. Check your inbox for a verification email
  6. Click the verification link
  7. ✅ Email verified — go to login

Test 3: Get Current User

After login, your name and role appear in the top bar. No action needed — this is automatic.


Test 4: Email Verification Errors

  1. Try to login with an unverified account
  2. ✅ You should see an error: "Please verify your email before logging in"
  3. ✅ A "Resend verification email" button appears
  4. Click it to resend

Test 5: Logout

  1. Click Logout in the sidebar
  2. ✅ You're back on the landing page
  3. ✅ The navbar shows "Sign In" instead of "Dashboard"

Test 6: Protected Routes

  1. Log out
  2. Try to go directly to https://ams.14.jugaar.ai/dashboard
  3. ✅ You should be redirected to the login page

Test 7: Password Validation

  1. Go to Register
  2. Try a weak password like 123
  3. ✅ You should see a clear error message about password requirements

Summary

TestEasy ResultAPI Result
LoginDashboard appears200 + token
Register"Check Your Email" screen201 + user_id
Get UserName in top bar200 + profile
Verify ErrorsError + resend button403
LogoutBack to landing pageN/A
Protected RoutesRedirect to login401
Password ValidationClear error message422