From 095b5601c0b02d05f40ae7f435f9630988bd212b Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Sun, 27 Sep 2026 00:07:07 -0700 Subject: 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 Claude-Session: https://claude.ai/code/session_01VhUKyXKtsJ67QAFfb7QR9D --- tools/moderation-test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') 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); -- cgit v1.2.3