DEPLOYMENT TESTING GUIDE

🚀 Deployment & Testing Guide - Version 2.2.0

Platform: BarbrickDesign / Gem Bot Universe Release Date: October 16, 2025 Version: 2.2.0 Status: ✅ PRODUCTION READY

---

📋 PRE-DEPLOYMENT CHECKLIST

1. Files Verification

` Platform: Desktop Chrome Action: 1. Open /index.html 2. Click "Connect Wallet" 3. Approve in MetaMask

Expected: ✅ Wallet connects successfully ✅ Address displayed in header ✅ Session saved to localStorage ✅ No console errors

Status: [ ] PASS [ ] FAIL Notes: _________________ `

#### Test 1.2: Session Persistence ` Platform: Any browser Action: 1. Connect wallet on index.html 2. Navigate to /ember-terminal/app.html 3. Check if still connected 4. Navigate to /mandem.os/workspace/index.html 5. Check if still connected

Expected: ✅ Wallet stays connected across pages ✅ No re-authentication needed ✅ Session data persists

Status: [ ] PASS [ ] FAIL Notes: _________________ `

#### Test 1.3: System Architect Access ` Platform: Desktop Action: 1. Connect System Architect wallet (any of 3) 2. Visit /mandem.os/workspace/admin.html 3. Try accessing protected features

Expected: ✅ Instant access granted ✅ No "Access Denied" message ✅ Admin features visible ✅ isSystemArchitect() returns true

Status: [ ] PASS [ ] FAIL Notes: _________________ `

#### Test 1.4: Regular User Restriction ` Platform: Desktop Action: 1. Connect non-System Architect wallet 2. Visit /mandem.os/workspace/admin.html 3. Observe response

Expected: ✅ "Access Denied" alert shown ✅ Redirected to index.html ✅ Admin features hidden

Status: [ ] PASS [ ] FAIL Notes: _________________ `

#### Test 1.5: Auto-Logout ` Platform: Desktop Action: 1. Connect wallet 2. Wait 31 minutes without activity 3. Try to navigate

Expected: ✅ Session expired ✅ Redirected to login ✅ Must reconnect wallet

Status: [ ] PASS [ ] FAIL Notes: _________________ `

---

TEST SUITE 2: MANDEM Token (ENERGY)

#### Test 2.1: Mandem.OS Header Display ` Platform: Desktop Action: 1. Open /mandem.os/workspace/index.html 2. Connect wallet 3. Check header area

Expected: ✅ "MGC Balance: 0 | 🔥 ENERGY: [balance]" displayed ✅ ENERGY balance updates automatically ✅ Format: "1,234.56" with comma separators

Status: [ ] PASS [ ] FAIL Balance Shown: _________________ `

#### Test 2.2: Mandem.OS Token Widget ` Platform: Desktop Action: 1. Scroll down on Mandem.OS index 2. Locate token widget (below header) 3. Verify all elements present

Expected: ✅ 🔥 MANDEM logo visible ✅ Balance displayed ✅ Price in USD shown ✅ 24h change shown (color-coded) ✅ "Trade on Pump.fun" button works

Status: [ ] PASS [ ] FAIL Widget Loaded: [ ] YES [ ] NO `

#### Test 2.3: Ember Terminal Status Bar ` Platform: Desktop Action: 1. Open /ember-terminal/app.html 2. Connect wallet 3. Check top status bar

Expected: ✅ "ENERGY 🔥 [progress bar] 1,234.56" displayed ✅ Progress bar fills based on balance ✅ Orange/gold gradient colors ✅ Updates automatically on connection

Status: [ ] PASS [ ] FAIL Progress Bar: [ ] Visible [ ] Not Visible Balance: _________________ `

#### Test 2.4: Ember Terminal Widget ` Platform: Desktop Action: 1. On Ember Terminal 2. Scroll to navigation footer area 3. Check above nav buttons

Expected: ✅ Full token widget displayed ✅ Same as Mandem.OS widget ✅ Trade button functional

Status: [ ] PASS [ ] FAIL `

#### Test 2.5: Balance Auto-Update ` Platform: Desktop Action: 1. Start with wallet disconnected 2. Observe ENERGY displays (should show 0) 3. Connect wallet 4. Watch for automatic update

Expected: ✅ Shows 0 when disconnected ✅ Updates within 2 seconds of connection ✅ No manual refresh needed ✅ Console logs update message

Status: [ ] PASS [ ] FAIL Update Time: ______ seconds `

#### Test 2.6: Pump.fun Trade Button ` Platform: Desktop Action: 1. Click "Trade on Pump.fun" button 2. Verify redirect

Expected: ✅ Opens in new tab ✅ URL: https://pump.fun/coin/FwHB1xfXJWRz4ogkEdrt3LX7j9tQYkVwmN8Wi7eupump ✅ Page loads correctly

Status: [ ] PASS [ ] FAIL `

---

TEST SUITE 3: Mobile Responsiveness

#### Test 3.1: Mobile Navigation (Ember Terminal) ` Platform: Mobile (375px viewport) Action: 1. Open Ember Terminal on mobile 2. Scroll to footer navigation 3. Test horizontal scrolling

Expected: ✅ Footer scrolls horizontally ✅ Buttons don't squish ✅ Touch scrolling smooth ✅ All buttons accessible

Status: [ ] PASS [ ] FAIL Device: _________________ `

#### Test 3.2: Mobile Token Display ` Platform: Mobile Action: 1. Open Mandem.OS on mobile 2. Check header area 3. Check token widget

Expected: ✅ Header readable (no overflow) ✅ Token widget responsive ✅ Touch targets large enough (44px min) ✅ Text doesn't wrap awkwardly

Status: [ ] PASS [ ] FAIL `

#### Test 3.3: Mobile Wallet Connection ` Platform: MetaMask Mobile Browser Action: 1. Open platform in MetaMask app 2. Connect wallet 3. Navigate between pages

Expected: ✅ Wallet connects in-app ✅ Session persists ✅ ENERGY balance shows correctly

Status: [ ] PASS [ ] FAIL `

---

TEST SUITE 4: Service Worker & Offline

#### Test 4.1: Service Worker Registration ` Platform: Desktop Chrome Action: 1. Open DevTools (F12) 2. Go to Application tab 3. Check Service Workers section

Expected: ✅ Service worker registered ✅ Status: Activated and running ✅ Scope: / ✅ Cache version: barbrickdesign-v5

Status: [ ] PASS [ ] FAIL `

#### Test 4.2: Cache Verification ` Platform: Desktop Action: 1. In DevTools > Application > Cache Storage 2. Open barbrickdesign-v5 3. Verify files cached

Expected: ✅ pumpfun-token-config.js present ✅ universal-wallet-auth.js present ✅ All pages cached ✅ No 404 errors

Status: [ ] PASS [ ] FAIL Files Cached: ______ total `

#### Test 4.3: Offline Mode ` Platform: Desktop Action: 1. Load any page fully 2. Toggle offline mode in DevTools 3. Refresh page 4. Navigate to another page

Expected: ✅ Page loads from cache ✅ Core functionality works ✅ Shows "offline" indicator if implemented ✅ Navigation between cached pages works

Status: [ ] PASS [ ] FAIL `

---

TEST SUITE 5: Cross-Browser Compatibility

#### Test 5.1: Chrome/Edge ` Platform: Chrome/Edge Action: Run all tests above

Expected: ✅ All features work ✅ No console errors ✅ Wallet connects properly

Status: [ ] PASS [ ] FAIL Version: _________________ `

#### Test 5.2: Firefox ` Platform: Firefox Action: Run all tests above

Expected: ✅ All features work ✅ MetaMask extension works ✅ No compatibility issues

Status: [ ] PASS [ ] FAIL Version: _________________ `

#### Test 5.3: Safari ` Platform: Safari (Mac/iOS) Action: Run all tests above

Expected: ✅ Wallet connects (if extension available) ✅ Responsive design works ✅ No webkit-specific issues

Status: [ ] PASS [ ] FAIL Version: _________________ `

---

TEST SUITE 6: Security & Performance

#### Test 6.1: Session Security ` Platform: Desktop Action: 1. Connect wallet 2. Inspect localStorage 3. Check session data

Expected: ✅ Session token present ✅ Wallet address stored ✅ Expiry timestamp set ✅ No private keys stored (NEVER)

Status: [ ] PASS [ ] FAIL `

#### Test 6.2: Wallet Change Detection ` Platform: Desktop Action: 1. Connect wallet 2. Switch account in MetaMask 3. Observe platform response

Expected: ✅ Auto-logout triggered ✅ User notified ✅ Must reconnect with new wallet

Status: [ ] PASS [ ] FAIL `

#### Test 6.3: Page Load Performance ` Platform: Desktop Action: 1. Open DevTools > Network tab 2. Hard refresh page (Ctrl+Shift+R) 3. Check load times

Expected: ✅ DOMContentLoaded < 2s ✅ Full page load < 5s ✅ Token widget loads < 1s after auth ✅ No render-blocking resources

Status: [ ] PASS [ ] FAIL Load Time: ______ ms `

---

🐛 KNOWN ISSUES & WORKAROUNDS

Issue 1: Old Service Worker

` Problem: Old cache version conflicts with new features Solution: Clear cache and hard refresh Command: Ctrl + Shift + F5 (Windows) or Cmd + Shift + R (Mac) `

Issue 2: Wallet Not Detected

` Problem: MetaMask/Phantom not recognized Solution: 1. Check extension installed and unlocked 2. Refresh page 3. Check console for errors 4. Try different browser `

Issue 3: ENERGY Shows 0

` Problem: Balance always shows 0 Status: Expected - Using mock data currently Solution: Phase 2 will connect to live API Workaround: Mock balance displays for testing UI `

Issue 4: Session Expires Too Fast

` Problem: Logged out unexpectedly Cause: 30-minute inactivity timeout Solution: Move mouse or interact with page Note: This is intentional security feature `

---

📊 PERFORMANCE BENCHMARKS

Target Metrics:

` [ ] Desktop Chrome: ______ ms average [ ] Mobile Chrome: ______ ms average [ ] Firefox: ______ ms average [ ] Safari: ______ ms average `

---

🚀 DEPLOYMENT STEPS

Step 1: Pre-Deployment

`bash

Verify all files are committed

git status

Check for any uncommitted changes

git diff

Verify service worker version

grep "CACHE_NAME" service-worker.js

Should show: barbrickdesign-v5

`

Step 2: Clear Old Cache

` On production server: 1. Navigate to site in browser 2. Open DevTools (F12) 3. Application > Clear Storage 4. Check all boxes 5. Click "Clear site data" 6. Close browser `

Step 3: Deploy Files

`bash

Standard GitHub Pages deployment

git add . git commit -m "Deploy v2.2.0 - ENERGY token integration" git push origin main

Wait for GitHub Actions to complete

Usually takes 1-3 minutes

`

Step 4: Verify Deployment

` Visit: https://barbrickdesign.github.io/ Check: ✅ Service worker updates to v5 ✅ ENERGY token displays work ✅ Wallet authentication functions ✅ All pages load correctly `

Step 5: Test on Live Site

` Run full test suite on: `

---

📱 MOBILE DEPLOYMENT TESTING

iOS Testing:

` Devices: iPhone 12+, iPad Browsers: Safari, MetaMask in-app Action: Run Test Suites 1-3

Status: [ ] PASS [ ] FAIL `

Android Testing:

` Devices: Android 10+ Browsers: Chrome, MetaMask in-app Action: Run Test Suites 1-3

Status: [ ] PASS [ ] FAIL `

---

✅ DEPLOYMENT SIGN-OFF

Checklist:

` Tested By: _________________ Date: _____________________ Browser Versions: __________ Mobile Devices: ____________ Issues Found: ______________ Resolution: ________________

Deployment Status: [ ] APPROVED [ ] NEEDS FIXES

Approver: _________________ Date: _____________________ `

---

🔧 ROLLBACK PROCEDURE

If Critical Issues Found:

`bash

Step 1: Revert to previous version

git log # Find previous commit hash git revert [commit-hash] git push origin main

Step 2: Clear client caches

Send notification to users:

"Please clear your browser cache (Ctrl+Shift+Delete)"

Step 3: Document issues

Create issue report with:

`

---

📞 SUPPORT & ESCALATION

If Tests Fail:

1. Check browser console for errors 2. Verify all files deployed correctly 3. Clear cache and retry 4. Test in incognito/private mode 5. Check service worker status 6. Review documentation

Common Commands:

`javascript // Check authentication status window.universalWalletAuth.isAuthenticated()

// Check wallet address window.universalWalletAuth.getAddress()

// Check System Architect status window.universalWalletAuth.isSystemArchitect()

// Check ENERGY balance window.getTokenBalance(address)

// Reinitialize token await window.initPumpfunToken() `

---

📚 DOCUMENTATION REFERENCE

For Deployment:

Version: 2.2.0 Status: ✅ READY FOR PRODUCTION Last Updated: October 16, 2025

Good luck with deployment! 🚀


← Back to Home

🤖 AUL-enabled