aboutsummaryrefslogtreecommitdiffstats
path: root/tools/video-tile-poster-test.js
diff options
context:
space:
mode:
Diffstat (limited to 'tools/video-tile-poster-test.js')
-rw-r--r--tools/video-tile-poster-test.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/video-tile-poster-test.js b/tools/video-tile-poster-test.js
index 48385fe..ed672c2 100644
--- a/tools/video-tile-poster-test.js
+++ b/tools/video-tile-poster-test.js
@@ -4,7 +4,7 @@
// picture for falls back to the frame grab, and one the browser can't load
// either (deleted, its 404 without CORS headers) leaves the grid.
// Run: bun tools/video-tile-poster-test.js
-import puppeteer from './puppeteer.js';
+import puppeteer, { seedWords, skipSeedCheck } from './puppeteer.js';
import { cacheKeyFor } from '../src/wallet.js';
import { generateSecretKey, getPublicKey, finalizeEvent } from 'nostr-tools/pure';
import { buildHtml } from '../build.js';
@@ -75,9 +75,9 @@ try {
await page.reload({ waitUntil: 'domcontentloaded' });
await sleep(400);
await click('create a new wallet'); await sleep(600);
- await page.waitForSelector('.words .w .t');
+ await seedWords(page);
const mn = (await page.$$eval('.words .w .t', (l) => l.map((e) => e.textContent.trim()))).join(' ');
- await click('skip verification');
+ await skipSeedCheck(page);
await waitText('receive', 20000);
const base = cacheKeyFor(mn + '\n');
await page.evaluate(([k, pk, ns]) => {