From dfb017c1b10cb52c24f4f0bcf745c6abea11b98f Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Wed, 7 Oct 2026 08:27:40 -0700 Subject: Feed, composer and zap tests follow today's app MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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 , 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 --- tools/video-compress-test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools/video-compress-test.js') diff --git a/tools/video-compress-test.js b/tools/video-compress-test.js index ce1a936..c1175f8 100644 --- a/tools/video-compress-test.js +++ b/tools/video-compress-test.js @@ -40,7 +40,7 @@ await page.evaluateOnNewDocument(() => { const open = XMLHttpRequest.prototype.open, send = XMLHttpRequest.prototype.send; XMLHttpRequest.prototype.open = function (m, url) { this.__m = m; this.__url = String(url); return open.apply(this, arguments); }; XMLHttpRequest.prototype.send = function (body) { - if (this.__m === 'PUT' && /nostr\.build|nostr\.download/.test(this.__url) && body instanceof Blob) { + if (this.__m === 'PUT' && /blossom\.ditto\.pub|blossom\.primal\.net|nostr\.build|nostr\.download/.test(this.__url) && body instanceof Blob) { body.arrayBuffer().then((buf) => { window.__put = { size: body.size, type: body.type, buf }; }); } return send.apply(this, arguments); @@ -56,7 +56,7 @@ await page.evaluateOnNewDocument(() => { await page.setRequestInterception(true); page.on('request', (req) => { const u = req.url(); - if (!/nostr\.build|nostr\.download/.test(u)) return req.continue(); + if (!/blossom\.ditto\.pub|blossom\.primal\.net|nostr\.build|nostr\.download/.test(u)) return req.continue(); const cors = { 'access-control-allow-origin': '*', 'access-control-allow-methods': 'PUT, HEAD, GET', 'access-control-allow-headers': '*' }; if (req.method() === 'OPTIONS') return req.respond({ status: 204, headers: cors }); if (req.method() === 'HEAD') return req.respond({ status: 200, headers: cors }); -- cgit v1.2.3