aboutsummaryrefslogtreecommitdiffstats
path: root/tools/profile-feed-test.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-10-07 08:10:17 -0700
committerAdam Soltys <[email protected]>2026-10-07 08:10:17 -0700
commit9a49107afe8cf7104ea7da1638e680518fa55bb8 (patch)
tree06496c82058d751eedfaa2d3d182a1aa417dcd40 /tools/profile-feed-test.js
parent78cf670939133fc4f656f0f42b21a59431a53842 (diff)
downloadcoinosv3-9a49107afe8cf7104ea7da1638e680518fa55bb8.tar.gz
coinosv3-9a49107afe8cf7104ea7da1638e680518fa55bb8.zip
Profile tests: reach the feed and chats through the bottom nav, start on Following, follow today's onboarding
- avatar-profile, profile-open: a new wallet opens the feed on Popular, so seed this wallet's last feed as Following; profile-open opens Feed from the nav - profile-feed: a mainnet import offers a username first (Not now), Messages is a bottom-nav button - profile-draft, profile-recovery: the import button reads 'Have an existing seed or entropy to import?'; profile batches stream through queryStreamOn, so the recovery test answers that too Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'tools/profile-feed-test.js')
-rw-r--r--tools/profile-feed-test.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/profile-feed-test.js b/tools/profile-feed-test.js
index 9c743ae..266e3f8 100644
--- a/tools/profile-feed-test.js
+++ b/tools/profile-feed-test.js
@@ -32,12 +32,12 @@ try {
await page.waitForSelector('textarea');
await page.type('textarea', generateMnemonic(wordlist));
await click('button', 'Open wallet');
+ // a mainnet wallet offers a username first (the spending-account step)
+ if (await waitText('claim a username', 8000)) await click('button', 'Not now');
check('wallet opens', await waitText('receive', 20000));
- // .header-msgs is the shared header-button class — settings, lock and
- // search wear it too, and the first one is no longer this. Ask for the
- // messages button by name.
- await page.evaluate(() => [...document.querySelectorAll('button')]
+ // Messages is a button in the bottom nav; ask for it by name.
+ await page.evaluate(() => [...document.querySelectorAll('.app-nav-button')]
.find((b) => /message/i.test(b.getAttribute('aria-label') || ''))?.click());
await sleep(800);
check('chat home opens', await waitText('coinos', 10000));