Staging Test: Portfolio & Referrals
Test Area: Portfolio Viewing & Referral SystemEstimated Time: 15-20 minutes
Difficulty: Easy
Prerequisites: Complete 01-authentication first
Overview
This guide tests the portfolio viewing and referral system pages that weren’t covered in previous guides.Before You Start
URLs
| Page | URL |
|---|---|
| Login | https://zestamc.savibm.com/login |
| Investor Portfolio | https://zestamc.savibm.com/investor/portfolio |
| Investor Referrals | https://zestamc.savibm.com/investor/referrals |
| Investor Profile | https://zestamc.savibm.com/investor/profile |
Test Accounts
| Referral Code | Referred By | |
|---|---|---|
testinvestor@zestamc.com | ZESTTEST | None (top level) |
test@zestamc.com | TEST1234 | testinvestor |
l2investor@zestamc.com | L2INVEST | test |
l3investor@zestamc.com | L3INVEST | l2investor |
Part A: Portfolio Testing
Test A1: View Portfolio Page
Goal: Verify investor can see their portfolio summary Steps:- Log in as
testinvestor@zestamc.com - Click “Portfolio” in the left sidebar
- View the portfolio page
| Element | What You Should See |
|---|---|
| Active tranches | List of your investments |
| Principal amounts | $10,000 for testinvestor |
| Available profit | $500 (seeded amount) |
| Lock-in status | Shows when lock-in ends |
| Fund info | Zest Growth Fund details |
Test A2: View Tranche Details
Goal: Verify investor can see detailed tranche information Steps:- On the Portfolio page
- Click on a tranche card/row to view details
- Review the information
| Element | What You Should See |
|---|---|
| Principal breakdown | Deposit vs reinvestment sources |
| Profit history | Past distributions (if any) |
| Lock-in countdown | Days/months remaining |
| Actions | Withdraw, Reinvest buttons |
Test A3: Portfolio Summary Cards
Goal: Verify summary statistics are correct Steps:- Look at the summary cards on Portfolio page
| Card | Expected Value |
|---|---|
| Total Invested | $10,000 |
| Current Value | ~$10,500 (principal + profit) |
| Available Profit | $500 |
| Total Return | ~5% or $500 |
| Metric (Code) | Formula | Description |
|---|---|---|
| A - Invested | Sum of approved deposits | True money-in, excludes reinvestments |
| B - Portfolio Value | A + G + F | Total current value |
| C - Total PnL | Sum of profit_distributions | All profits credited over time |
| D - PnL % | (C / A) × 100 | Return percentage relative to invested |
| E - Withdrawn | Sum of completed withdrawals | All money taken out |
| F - Reinvested | Sum of reinvestment principal | Profit/bonus converted to new investments |
| G - Available | Sum of tranches.available_profit | Currently withdrawable profit |
See 04-core-mechanics.md for full formula documentation.Pass Criteria: ✅ Summary matches expected calculations
Part B: Referrals Testing
Test B1: View Referrals Page
Goal: Verify investor can see their referral information Steps:- Log in as
testinvestor@zestamc.com - Click “Referrals” in the left sidebar
- View the referrals page
| Element | What You Should See |
|---|---|
| Your referral code | ZESTTEST |
| Copy button | Can copy referral code/link |
| Referral stats | Total referrals, earnings |
Test B2: View Referral Tree (Downline)
Goal: Verify investor can see who they referred Steps:- On the Referrals page
- Look for “Your Referrals” or “Referral Tree” section
| Level | Who |
|---|---|
| L1 (Direct) | test@zestamc.com |
| L2 | l2investor@zestamc.com |
| L3 | l3investor@zestamc.com |
Test B3: View Referrer (Who Referred You)
Goal: Verify investor can see who referred them Steps:- Log in as
test@zestamc.com - Go to “Referrals” page
- Look for “Referred By” section
| Element | What You Should See |
|---|---|
| Referred by | testinvestor@zestamc.com |
| Your code | TEST1234 |
Test B4: Copy Referral Link
Goal: Verify referral link copy works Steps:- On Referrals page
- Click “Copy Link” or “Copy Code”
- Paste somewhere to verify
| Result | What You Should See |
|---|---|
| Toast | ”Copied!” or similar |
| Clipboard | Contains referral code or link |
Test B5: Referral Earnings Summary
Goal: Verify investor can see their referral earnings Steps:- Log in as
testinvestor@zestamc.com - On Referrals page, look for earnings section
| Element | What You Should See |
|---|---|
| Total earnings | Sum of all referral bonuses |
| Bonus balance | $50 (current bonus wallet) |
| By level | L1, L2, L3 breakdown (if shown) |
Part C: Profile Testing
Test C1: View Profile Page
Goal: Verify investor can view their profile Steps:- Log in as
testinvestor@zestamc.com - Click “Profile” in the left sidebar
- View profile information
| Element | What You Should See |
|---|---|
| testinvestor@zestamc.com | |
| Name | Test Investor |
| User type | Individual |
| KYC status | Approved |
Test C2: View Account Settings
Goal: Verify investor can see account settings Steps:- On Profile page
- Look for settings/preferences section
| Element | What You Should See |
|---|---|
| Notification preferences | (if applicable) |
| Security settings | (if applicable) |
| Account status | Active |
Test Results Summary
| Test | Status | Notes |
|---|---|---|
| A1: View Portfolio | ⬜ Pass / ⬜ Fail | |
| A2: Tranche Details | ⬜ Pass / ⬜ Fail | |
| A3: Summary Cards | ⬜ Pass / ⬜ Fail | |
| B1: View Referrals | ⬜ Pass / ⬜ Fail | |
| B2: Referral Tree | ⬜ Pass / ⬜ Fail | |
| B3: View Referrer | ⬜ Pass / ⬜ Fail | |
| B4: Copy Link | ⬜ Pass / ⬜ Fail | |
| B5: Earnings Summary | ⬜ Pass / ⬜ Fail | |
| C1: View Profile | ⬜ Pass / ⬜ Fail | |
| C2: Account Settings | ⬜ Pass / ⬜ Fail |
Referral Chain Reference
- L1 bonus (15%) → l2investor
- L2 bonus (10%) → test
- L3 bonus (5%) → testinvestor