aboutsummaryrefslogtreecommitdiffstats
path: root/tools/compose-preview-test.js
diff options
context:
space:
mode:
Diffstat (limited to 'tools/compose-preview-test.js')
-rw-r--r--tools/compose-preview-test.js5
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);