diff options
| author | Adam Soltys <[email protected]> | 2026-09-30 18:03:33 +0000 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-09-30 18:03:33 +0000 |
| commit | 0570f48910ddc4ea10d27fb8ab7992fbd013a0b7 (patch) | |
| tree | dbc1e5ece94bc71fcd8bb7e89f61043933c1992c /tools/compose-preview-test.js | |
| parent | 95eaf11d116260b101c81346ba41810aacf49a7d (diff) | |
| parent | cfeacb1a7a10766565ed3eaab13154096478c837 (diff) | |
| download | coinosv3-0570f48910ddc4ea10d27fb8ab7992fbd013a0b7.tar.gz coinosv3-0570f48910ddc4ea10d27fb8ab7992fbd013a0b7.zip | |
Merge remote-tracking branch 'cs/prod'
Diffstat (limited to 'tools/compose-preview-test.js')
| -rw-r--r-- | tools/compose-preview-test.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/compose-preview-test.js b/tools/compose-preview-test.js index c2f35e6..2138ea6 100644 --- a/tools/compose-preview-test.js +++ b/tools/compose-preview-test.js @@ -66,9 +66,9 @@ try { await page.evaluate(() => { const e = [...document.querySelectorAll('.item')].find((n) => /feed/i.test(n.textContent)); if (e) e.click(); }); await sleep(2500); const opened = await page.evaluate(() => { const b = [...document.querySelectorAll('button')].find((n) => (n.getAttribute('aria-label') || n.textContent).trim().toLowerCase() === 'new post'); if (b) { b.click(); return true; } return false; }); - check('the composer opens', opened && !!(await page.$('textarea'))); + check('the composer opens', opened && !!(await page.$('coinos-text'))); - await type('textarea', DRAFT); + await type('coinos-text', DRAFT); await sleep(400); check('no preview until it is asked for', !(await page.$('.draft-preview'))); @@ -92,7 +92,7 @@ try { shown ? JSON.stringify(shown.text.slice(0, 60)) : ''); // live: keep typing and the preview follows - await type('textarea', DRAFT + ' plus a word'); + await type('coinos-text', DRAFT + ' plus a word'); await sleep(900); check('it follows the draft as you type', /plus a word/.test(await page.evaluate(() => (document.querySelector('.draft-preview') || {}).innerText || ''))); |
