aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-09-27 00:07:07 -0700
committerAdam Soltys <[email protected]>2026-09-27 00:07:07 -0700
commit095b5601c0b02d05f40ae7f435f9630988bd212b (patch)
tree66112f34a8e776f258f796c4ddbd8141d411c7e1 /tools
parent0b45f6a8e8ea3fcb59aef01baea52ffce0dec2a3 (diff)
downloadcoinosv3-095b5601c0b02d05f40ae7f435f9630988bd212b.tar.gz
coinosv3-095b5601c0b02d05f40ae7f435f9630988bd212b.zip
moderation test: the mis-flagged person's post is unfolded (check the fold row, not the revealed text)
Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01VhUKyXKtsJ67QAFfb7QR9D
Diffstat (limited to 'tools')
-rw-r--r--tools/moderation-test.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/moderation-test.js b/tools/moderation-test.js
index 0e93633..1f4deb8 100644
--- a/tools/moderation-test.js
+++ b/tools/moderation-test.js
@@ -140,7 +140,7 @@ try {
check('the flagged post is folded, naming who', await waitText('reported by', 12000) && !(await has('reported post here')), (await text()).match(/Reported by[^\n]*/)?.[0]);
await page.evaluate(() => { const b = [...document.querySelectorAll('.note-folded button')].find((x) => /show/i.test(x.textContent)); b.click(); }); await sleep(400);
check('Show unfolds it', await has('reported post here'));
- check('a person flagged by only one friend is not folded', await has('a fine post by someone one friend mis-flagged') && (await text()).split('Reported by').length === 2);
+ check('a person flagged by only one friend is not folded', await has('a fine post by someone one friend mis-flagged') && !(await page.$('.note-folded')));
console.log('\n[thread replies go through the same door; Report… hides and publishes]');
await page.evaluate(() => { const r = [...document.querySelectorAll('[data-zap-post]')].find((n) => /a post to open/.test(n.textContent)); r.click(); }); await sleep(1500);