aboutsummaryrefslogtreecommitdiffstats
path: root/tools/post-actions-test.js
diff options
context:
space:
mode:
Diffstat (limited to 'tools/post-actions-test.js')
-rw-r--r--tools/post-actions-test.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/post-actions-test.js b/tools/post-actions-test.js
index a33079e..766cfa3 100644
--- a/tools/post-actions-test.js
+++ b/tools/post-actions-test.js
@@ -93,10 +93,11 @@ try {
const reply = await page.evaluate(() => {
const box = document.querySelector('.thread-reply-input');
if (!box) return { box: false };
- const row = box.parentElement;
+ const row = box.closest('.thread-reply');
return {
box: true,
- attach: !!row.querySelector('.attach-btn'),
+ // in the field's corner now, beside the GIF button
+ attach: !!row.querySelector('.compose-box .compose-tool:not(.gif-btn)'),
file: !!row.querySelector('#reply-file'),
accepts: (row.querySelector('#reply-file') || {}).accept,
};