aboutsummaryrefslogtreecommitdiffstats
path: root/tools/feed-wallet-back-test.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-09-28 21:27:32 -0700
committerAdam Soltys <[email protected]>2026-09-28 21:27:32 -0700
commit292d5527cf36c119d74486061db3a44a608f5138 (patch)
tree303da1796aad613a43798a6784bcb69c5c0796cb /tools/feed-wallet-back-test.js
parent356920e8aa7d27dd5e7eff070246ae9ed41498c7 (diff)
downloadcoinosv3-292d5527cf36c119d74486061db3a44a608f5138.tar.gz
coinosv3-292d5527cf36c119d74486061db3a44a608f5138.zip
The bottom nav rides every page: Feed, Messages, Notifications, Wallet.
It now shows across the signed-in app and a visitor's public pages (never over sign-in, onboarding or the lock prompt), marks the current page, and carries the unread dot. Home is renamed Feed, and the Messages button leaves the header. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'tools/feed-wallet-back-test.js')
-rw-r--r--tools/feed-wallet-back-test.js11
1 files changed, 6 insertions, 5 deletions
diff --git a/tools/feed-wallet-back-test.js b/tools/feed-wallet-back-test.js
index cd61184..1b0abe7 100644
--- a/tools/feed-wallet-back-test.js
+++ b/tools/feed-wallet-back-test.js
@@ -13,12 +13,13 @@ try {
await page.setRequestInterception(true);
page.on('request', r => r.url().startsWith(server.url.origin) ? r.continue() : r.abort());
await page.goto(server.url.origin + '/feed', { waitUntil: 'domcontentloaded' });
- await page.waitForSelector('.feed-bottom-nav', { visible: true });
- await page.tap('.feed-nav-button:nth-child(4)');
- await page.waitForFunction(() => !document.querySelector('.feed-bottom-nav'));
+ await page.waitForSelector('.app-bottom-nav', { visible: true });
+ await page.tap('.app-nav-button:nth-child(4)');
+ await page.waitForFunction(() => !document.querySelector('.app-bottom-nav'));
+ assert(!(await page.$('.app-bottom-nav')), 'no nav over the welcome screen');
await page.goBack({ waitUntil: 'domcontentloaded' });
- await page.waitForSelector('.feed-bottom-nav', { visible: true, timeout: 5000 });
- assert(await page.$eval('.feed-bottom-nav', e => !e.hidden && e.getBoundingClientRect().height > 0));
+ await page.waitForSelector('.app-bottom-nav', { visible: true, timeout: 5000 });
+ assert(await page.$eval('.app-bottom-nav', e => !e.hidden && e.getBoundingClientRect().height > 0));
assert.equal(await page.evaluate(() => scrollY), 0, 'visible on return without scrolling');
console.log('✓ Real browser Back restores the public feed and visible navigation after Wallet');
} finally { await browser.close(); server.stop(true); }