Staging Test: Reinvestment & Smart Tranche
Test Area: Reinvestment & Smart Tranche SystemEstimated Time: 15-20 minutes
Difficulty: Medium
Prerequisites: Must have available profit or bonus balance to reinvest. Run a profit distribution cycle first (see 06-profit-distribution).
Overview
This guide tests the reinvestment system. Investors can reinvest:- Available Profit from their tranches
- Referral Bonuses from their bonus wallet
How Reinvestment Works
Smart Tranche Aggregation
Multiple reinvestments during the same cycle are combined into a single tranche when the cycle starts. This keeps portfolios clean.Before You Start
URLs
| Page | URL |
|---|---|
| Login | https://zestamc.savibm.com/login |
| Investor Dashboard | https://zestamc.savibm.com/investor/dashboard |
| Investor Portfolio | https://zestamc.savibm.com/investor/portfolio |
Test Accounts
| Role | OTP | |
|---|---|---|
| Investor | testinvestor@zestamc.com | Check email |
| Investor | test@zestamc.com | Check email |
Requirements
Before testing reinvestment, you need:- Available profit in a tranche, OR
- Balance in bonus wallet
Test Cases
Test 1: View Available Reinvestment Sources
Goal: Verify investor can see what’s available to reinvest Steps:- Log in as
testinvestor@zestamc.com - Go to “Portfolio” page
- Look for reinvestment options or click “Reinvest”
| Element | What You Should See |
|---|---|
| Available profit | Amount per tranche (if any) |
| Bonus wallet | Referral bonus balance |
| Reinvest button | Option to reinvest |
Test 2: Reinvest Profit from Tranche
Goal: Verify investor can reinvest available profit Preparation: Requires available_profit > 0 in a tranche Steps:- Log in as
testinvestor@zestamc.com - Go to “Dashboard” or “Portfolio”
- Click “Reinvest” button
- In the reinvestment dialog:
- Select profit source (tranche with available profit)
- Enter amount to reinvest
- Click “Reinvest” or “Submit”
- Enter OTP from email
- Confirm
| Step | What You Should See |
|---|---|
| Source selection | Can select tranche with profit |
| Amount field | Can enter amount up to available |
| After OTP | Success message “Reinvestment submitted” |
| Tranche created | New PENDING tranche created |
Test 3: Reinvest Referral Bonus
Goal: Verify investor can reinvest from bonus wallet Preparation: Requires bonus_balance > 0 Steps:- Log in as
testinvestor@zestamc.com - Click “Reinvest”
- Select source: “Bonus Wallet” or “Referral Bonus”
- Enter amount
- Submit with OTP from email
| Step | What You Should See |
|---|---|
| Bonus option | Bonus wallet shown as source |
| Amount limit | Cannot exceed bonus balance |
| After submit | Success message |
| Balance update | Bonus wallet balance decreases |
Test 4: View Pending Reinvestment
Goal: Verify investor can see their pending reinvestment tranche Steps:- After completing Test 2 or 3
- Go to “Portfolio” page
- Look for the new pending tranche
| Element | What You Should See |
|---|---|
| Pending tranche | Shows with “PENDING” status |
| Amount | Shows the reinvested amount |
| Visual indicator | May show dashed/dotted border |
| Info message | ”Will be activated at cycle start” |
Test 5: Mixed Source Reinvestment
Goal: Verify investor can reinvest from multiple sources at once Preparation: Requires both available profit AND bonus balance Steps:- Log in as an investor with both profit and bonus
- Start reinvestment
- Select multiple sources:
- Profit from tranche(s)
- Bonus wallet
- Enter total amount
- Submit with OTP
| Step | What You Should See |
|---|---|
| Multiple sources | Can select more than one source |
| Total amount | Shows combined total |
| After submit | Single pending tranche created |
| Sources tracked | Principal sources tracked separately |
Test 6: Reinvestment Amount Validation
Goal: Verify system validates reinvestment amounts Steps:- Try to reinvest more than available
- Try to reinvest a very small amount (if minimum exists)
| Test | What You Should See |
|---|---|
| Exceeds available | Error: “Insufficient balance” |
| Below minimum | Error about minimum amount (if applicable) |
Test 7: Cancel Reinvestment Dialog
Goal: Verify user can cancel without submitting Steps:- Open reinvestment dialog
- Fill in some values
- Click “Cancel” or close the dialog
| Result | What You Should See |
|---|---|
| Dialog closes | No changes made |
| Balances unchanged | Profit and bonus unchanged |
Test Results Summary
| Test | Status | Notes |
|---|---|---|
| Test 1: View Sources | ⬜ Pass / ⬜ Fail | |
| Test 2: Reinvest Profit | ⬜ Pass / ⬜ Fail | |
| Test 3: Reinvest Bonus | ⬜ Pass / ⬜ Fail | |
| Test 4: View Pending | ⬜ Pass / ⬜ Fail | |
| Test 5: Mixed Sources | ⬜ Pass / ⬜ Fail | |
| Test 6: Validation | ⬜ Pass / ⬜ Fail | |
| Test 7: Cancel | ⬜ Pass / ⬜ Fail |
Understanding Smart Tranche Aggregation
What Happens at Cycle Start
- All PENDING tranches for a user/fund are collected
- They’re combined into a single PENDING tranche
- The combined tranche is activated (→ ACTIVE)
Example
Troubleshooting
No reinvest option
Available profit and bonus balance may both be $0. Run a profit distribution cycle first.”Insufficient balance” error
You’re trying to reinvest more than available. Check:- Available profit in selected tranche(s)
- Bonus wallet balance
Pending tranche not appearing
- Refresh the Portfolio page
- Look for a “PENDING” status badge
- May be shown in a separate section
OTP verification failing
Enter the OTP from your email. Wait for the dialog to fully load before entering.Next Steps
After completing reinvestment testing, proceed to:- 06-profit-distribution.md - Test profit distribution cycles (required for withdrawal/reinvestment testing)