Skip to content

Commit e2dc3cd

Browse files
committed
test(reports): also scan raw page text including script-rendered links (Refs #6)
1 parent 07163b9 commit e2dc3cd

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎scripts/ci/check-own-results.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,10 @@ def test_rejected_catalogue_links_and_claims_are_absent(self):
7373
text = (ROOT / "reports" / slug / "index.html").read_text(encoding="utf-8")
7474
self.assertNotIn("pages.hyperide.ai", text.casefold())
7575
visible = VisibleText(text).text
76+
raw = " ".join(text.split()).casefold()
7677
for phrase in REJECTED_CLAIMS:
7778
self.assertNotIn(phrase, visible)
79+
self.assertNotIn(phrase, raw)
7880

7981
def test_conloca_keeps_tested_preview_attribution_and_images(self):
8082
text = (ROOT / "reports/conloca-2026-10/index.html").read_text(encoding="utf-8")

0 commit comments

Comments
 (0)