diff options
| author | Adam Soltys <[email protected]> | 2026-09-26 07:50:39 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-09-26 07:50:39 -0700 |
| commit | a4f13b845b9dfb364bdac0932916d99c381db20e (patch) | |
| tree | 16a06b0f3b19153056f329ef156d813e02eb2abf /tools/compose-preview-test.js | |
| parent | acac2431b592600be2c37878851cf8e16b6ceba3 (diff) | |
| download | coinosv3-a4f13b845b9dfb364bdac0932916d99c381db20e.tar.gz coinosv3-a4f13b845b9dfb364bdac0932916d99c381db20e.zip | |
Thread: the reply box appears on Reply, full width, with its tools on a row beneath.
A thread opened to read came with an empty field under its first post.
The box now appears under the note whose Reply was tapped (or while a
draft is pending), folds away once the reply is sent or Cancel is tapped,
and takes Amethyst's shape: the field across the full width, attach and
preview on a row beneath it with Cancel and Reply at the right.
Tests: thread-reply's helper follows the new shape and expects the box to
fold after sending; compose-preview and feed-list tap Reply before
expecting a box (the thread card carries .thread-card as the marker).
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01VhUKyXKtsJ67QAFfb7QR9D
Diffstat (limited to 'tools/compose-preview-test.js')
| -rw-r--r-- | tools/compose-preview-test.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/compose-preview-test.js b/tools/compose-preview-test.js index 08a94e3..d33dcdc 100644 --- a/tools/compose-preview-test.js +++ b/tools/compose-preview-test.js @@ -117,8 +117,11 @@ try { console.log(' — no post in the feed to reply to, skipping the reply half'); } else { await sleep(2500); + check('a thread opened to read has no reply box yet', !(await page.$('.thread-reply-input'))); + await page.evaluate(() => { const b = [...document.querySelectorAll('.note-act')].find((x) => x.getAttribute('aria-label') === 'Reply'); if (b) b.click(); }); + await sleep(400); const box = await page.$('.thread-reply-input'); - check('a thread has a reply box', !!box); + check('Reply opens the box', !!box); if (box) { await type('.thread-reply-input', 'my answer https://coinos.io/punks/3.webp'); await sleep(300); |
