Staging Test: Authentication & Login
Test Area: Authentication & SecurityEstimated Time: 10-15 minutes
Difficulty: Easy
Overview
This guide walks you through testing the login and authentication flows in the staging environment. You’ll verify that users can log in, stay logged in, and log out correctly.Before You Start
Staging URLs
| Environment | URL |
|---|---|
| Frontend | https://zestamc.savibm.com |
| Login Page | https://zestamc.savibm.com/login |
Test Accounts
All test accounts use OTP-based login. You’ll receive a 6-digit code via email.| Account Type | Purpose | |
|---|---|---|
| Admin | admin@zestamc.com | Full admin access |
| Investor | testinvestor@zestamc.com | Primary test investor with portfolio |
| Investor | test@zestamc.com | Secondary investor |
| Investor | l2investor@zestamc.com | L2 referral chain investor |
| Investor | l3investor@zestamc.com | L3 referral chain investor |
| Institution | institution@zestamc.com | Institutional investor (70/30 split) |
| Support Agent | supportagent@zestamc.com | Support agent for ticket management |
Test Cases
Test 1: Basic Login Flow
Goal: Verify that a user can log in with email and OTP Steps:- Open your browser and go to the login page
- Enter email:
testinvestor@zestamc.com - Click “Send OTP” (or similar button)
- You should see a message confirming OTP was sent
- Enter OTP from email
- Click “Verify” or “Login”
| Step | What You Should See |
|---|---|
| After entering email | ”OTP sent to your email” message |
| After entering OTP | Redirect to investor dashboard |
| Dashboard | Welcome message with your name |
Test 2: Invalid OTP
Goal: Verify that wrong OTP codes are rejected Steps:- Go to the login page
- Enter email:
testinvestor@zestamc.com - Click “Send OTP”
- Enter wrong OTP:
123456 - Click “Verify”
| Result | What You Should See |
|---|---|
| Error message | ”Invalid OTP” or similar error |
| Status | Remain on the login page |
| Retry | Able to enter OTP again |
Test 3: Admin Login
Goal: Verify admin account can log in and access admin features Steps:- Go to the login page
- Enter email:
admin@zestamc.com - Click “Send OTP”
- Enter OTP from email
- Click “Verify”
| Step | What You Should See |
|---|---|
| After login | Redirect to admin dashboard |
| Navigation | Admin menu options visible |
| Admin sections | Access to Deposits, Wallets, Cycles, Clients |
Test 4: Session Persistence
Goal: Verify that login session persists when refreshing the page Steps:- Log in as
testinvestor@zestamc.comusing steps from Test 1 - After reaching the dashboard, press F5 or click the browser refresh button
- Wait for the page to reload
| Result | What You Should See |
|---|---|
| After refresh | Remain on the dashboard (still logged in) |
| User info | Your name/email still displayed |
Test 5: Logout
Goal: Verify that users can log out successfully Steps:- Log in as any test user
- Find the logout button (usually in the top-right menu or profile dropdown)
- Click “Logout” or “Sign Out”
| Result | What You Should See |
|---|---|
| After logout | Redirect to login page |
| Session | No longer logged in |
| Dashboard access | Cannot access dashboard without logging in again |
Test 6: Protected Pages (Without Login)
Goal: Verify that protected pages require login Steps:- Log out (or open a new private/incognito browser window)
- Try to directly access:
https://zestamc.savibm.com/investor/dashboard - Observe what happens
| Result | What You Should See |
|---|---|
| Redirect | Automatically sent to login page |
| Message | ”Please log in” or similar prompt (optional) |
Test 7: Admin-Only Pages (As Investor)
Goal: Verify that investors cannot access admin pages Steps:- Log in as
testinvestor@zestamc.com - Try to directly access:
https://zestamc.savibm.com/admin/dashboard - Observe what happens
| Result | What You Should See |
|---|---|
| Access denied | Error message or redirect |
| Status | Cannot view admin pages |
Test Results Summary
After completing all tests, fill in this summary:| Test | Status | Notes |
|---|---|---|
| Test 1: Basic Login | ⬜ Pass / ⬜ Fail | |
| Test 2: Invalid OTP | ⬜ Pass / ⬜ Fail | |
| Test 3: Admin Login | ⬜ Pass / ⬜ Fail | |
| Test 4: Session Persistence | ⬜ Pass / ⬜ Fail | |
| Test 5: Logout | ⬜ Pass / ⬜ Fail | |
| Test 6: Protected Pages | ⬜ Pass / ⬜ Fail | |
| Test 7: Admin-Only Access | ⬜ Pass / ⬜ Fail |
Troubleshooting
”OTP expired” error
OTPs are valid for 30 minutes. If you see this error:- Request a new OTP by clicking “Resend OTP”
- Enter the new code within 30 minutes
”Too many OTP requests” error
OTP requests are rate-limited (3 per 5 minutes). If you hit this limit:- Wait 5 minutes before trying again
- Or use a different test email
Page shows “Loading…” forever
- Check your internet connection
- Try refreshing the page
- Clear browser cache and try again
- Try a different browser
Cannot access any pages
- Make sure you’re using the correct staging URL
- Check if the staging environment is online
- Try opening the login page in an incognito/private window
Next Steps
After completing authentication testing, proceed to:- 02-wallet-management.md - Test wallet address management
- 03-deposit-flow.md - Test deposit requests
Feedback
If you find any issues during testing, please note:- Which test failed
- What you expected to happen
- What happened instead
- Screenshot (if possible)