aboutsummaryrefslogtreecommitdiffstats
path: root/tools/image-tap-test.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-10-07 08:27:40 -0700
committerAdam Soltys <[email protected]>2026-10-07 08:27:40 -0700
commitdfb017c1b10cb52c24f4f0bcf745c6abea11b98f (patch)
treeb8150ed4805f206947e2475fe433be953c46fb70 /tools/image-tap-test.js
parentb70e169bb5b5beccb89fd59427726e32d414b4a5 (diff)
downloadcoinosv3-dfb017c1b10cb52c24f4f0bcf745c6abea11b98f.tar.gz
coinosv3-dfb017c1b10cb52c24f4f0bcf745c6abea11b98f.zip
Feed, composer and zap tests follow today's app
- feed tests reach the Feed from the bottom nav (the chat-home row is gone) and seed this wallet's last feed as Following (new wallets open on Popular, c89050e) plus the author's profile (readiness gate) - post-actions: its picture is made locally (it read another session's scratchpad), the post's own ⋯ (not the feed header's), a real tap on the DM picture (a tap beside a fitted picture is a tap on the post) - composer-media / video-compress: intercept every public media host (ditto is first now; the tests were uploading for real) - compose-preview: Preview is one toggle button (aria-pressed) - thread-reply: harness has a wallet (else visitor: Reply asks to sign in), registers <coinos-text>, holds the root's id-only query; atomic send tap - video-unmute: stubs what videoNode reaches outside its slice; preload none means the in-view clip is told to load - zap-deep-profile: zap button scrolled to mid-screen (the bottom nav covered it) Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'tools/image-tap-test.js')
-rw-r--r--tools/image-tap-test.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/image-tap-test.js b/tools/image-tap-test.js
index c531bba..5ed182e 100644
--- a/tools/image-tap-test.js
+++ b/tools/image-tap-test.js
@@ -38,10 +38,11 @@ try {
localStorage.setItem(k + ':follows', JSON.stringify({ tags: [['p', a]], c: '', at: now }));
localStorage.setItem(k + ':feedNotes', JSON.stringify([{ id: 'c'.repeat(64), pubkey: a, kind: 1, created_at: now, content: 'a tall one http://localhost:5281/tall.png', tags: [] }]));
localStorage.setItem(k + ':profiles', JSON.stringify({ [a]: { name: 'Poster', t: Date.now() } }));
+ localStorage.setItem('btc-wallet-feed:' + k, 'following'); // new wallets open on Popular
}, [base, A]);
await page.reload({ waitUntil: 'domcontentloaded' });
await waitText('receive', 20000);
- await page.evaluate(() => document.querySelector('.app-bottom-nav .app-nav-button').click());
+ await page.evaluate(() => document.querySelector('.app-nav-button[aria-label="Feed"]').click());
check('the picture is in the post', await waitFor(() => { const i = document.querySelector('.notes-feed img.note-img'); return i && i.complete && i.naturalWidth > 0; }, 20000));
// on the phone the box spans the column and the picture sits in its middle
// (object-fit: contain); desktop Chrome sizes the box to the picture, so