Staging Test: Theme & Settings
Test Area: Theme Toggle & User SettingsEstimated Time: 5-10 minutes
Difficulty: Easy
Prerequisites: Complete 01-authentication first
Overview
This guide tests the theme toggle and basic user settings:| Feature | What It Does |
|---|---|
| Theme Toggle | Switch between light and dark mode |
| Theme Persistence | Your preference is saved |
Before You Start
URLs
| Page | URL |
|---|---|
| Login | https://zestamc.savibm.com/login |
| Dashboard | https://zestamc.savibm.com/investor/dashboard |
Test Accounts
| Role | OTP | |
|---|---|---|
| Investor | testinvestor@zestamc.com | Check email |
| Admin | admin@zestamc.com | Check email |
Test Cases
Test 1: Find Theme Toggle
Goal: Locate the theme toggle button Steps:- Log in as
testinvestor@zestamc.com - Look in the header/navigation area
- Find the theme toggle (usually a sun/moon icon)
| Element | What You Should See |
|---|---|
| Location | Header or sidebar |
| Icon | Sun (light mode) or Moon (dark mode) |
| Tooltip | ”Toggle theme” on hover (if available) |
Test 2: Switch to Dark Mode
Goal: Toggle from light to dark mode Steps:- If currently in light mode, click the theme toggle
- Observe the page
| Element | What You Should See |
|---|---|
| Background | Changes to dark colors |
| Text | Changes to light colors |
| Icon | Changes to moon icon |
| Transition | Smooth color transition |
Test 3: Switch to Light Mode
Goal: Toggle from dark to light mode Steps:- If currently in dark mode, click the theme toggle
- Observe the page
| Element | What You Should See |
|---|---|
| Background | Changes to light colors |
| Text | Changes to dark colors |
| Icon | Changes to sun icon |
Test 4: Theme Persists After Refresh
Goal: Verify theme preference is saved Steps:- Set theme to dark mode
- Refresh the page (F5)
- Observe the theme
| Check | What You Should See |
|---|---|
| After refresh | Still in dark mode |
| No flash | No brief flash of wrong theme |
Test 5: Theme Persists After Logout/Login
Goal: Verify theme preference survives session Steps:- Set theme to dark mode
- Log out
- Log back in as the same user
- Observe the theme
| Check | What You Should See |
|---|---|
| After login | Still in dark mode |
Test 6: Theme Works on All Pages
Goal: Verify theme applies consistently Steps:- Set a theme preference
- Navigate to different pages:
- Dashboard
- Deposits
- Withdrawals
- Wallets
- Support
| Check | What You Should See |
|---|---|
| All pages | Same theme applied |
| No inconsistency | No pages in wrong theme |
Test 7: Admin Theme Toggle
Goal: Verify theme works for admin users Steps:- Log in as
admin@zestamc.com - Find and click the theme toggle
- Navigate through admin pages
| Check | What You Should See |
|---|---|
| Toggle works | Theme changes |
| Admin pages | Theme applies to admin dashboard |
| Consistency | All admin pages use same theme |
Test Results Summary
| Test | Description | Status | Notes |
|---|---|---|---|
| Test 1 | Find Toggle | ⬜ Pass / ⬜ Fail | |
| Test 2 | Dark Mode | ⬜ Pass / ⬜ Fail | |
| Test 3 | Light Mode | ⬜ Pass / ⬜ Fail | |
| Test 4 | Persist Refresh | ⬜ Pass / ⬜ Fail | |
| Test 5 | Persist Login | ⬜ Pass / ⬜ Fail | |
| Test 6 | All Pages | ⬜ Pass / ⬜ Fail | |
| Test 7 | Admin Theme | ⬜ Pass / ⬜ Fail |
Troubleshooting
Theme toggle not visible
- Check the header area near your profile/avatar
- Try different screen sizes (may be in a menu on mobile)
Theme not persisting
- Check if cookies are enabled
- Clear browser cache and try again
- Theme may be stored in localStorage
Flash of wrong theme on load
- This is a known issue with some browsers
- Should be brief (< 1 second)
Next Steps
After completing theme testing, proceed to:- 13-admin-investor-detail.md - Test admin investor detail modal