UI test: build the dash pattern from char codes so the file passes the dash check
CI / Test (jest) (push) Successful in 27s
CI / Lint (eslint) (push) Successful in 28s
CI / Security (npm audit) (push) Successful in 11s
CI / Integration (api) (push) Successful in 1m13s
CI / Scan (secrets, workflows, shell) (push) Successful in 1m30s
CI / Lint (eslint) (pull_request) Successful in 16s
CI / Test (jest) (pull_request) Successful in 21s
CI / Security (npm audit) (pull_request) Successful in 8s
CI / UI (playwright) (push) Successful in 1m57s
CI / Deploy (push) Skipped
CI / Deploy worker (push) Skipped
CI / Notify (push) Skipped
CI / Integration (api) (pull_request) Successful in 1m14s
CI / Scan (secrets, workflows, shell) (pull_request) Successful in 1m41s
CI / UI (playwright) (pull_request) Successful in 1m42s
CI / Deploy (pull_request) Skipped
CI / Deploy worker (pull_request) Skipped
CI / Notify (pull_request) Skipped

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
jaredandClaude Opus 5.5 committed 2026-11-22 19:33:28 -05:00
1 parent 599a62f010
commit 16a127a6fd
1 file changed
+3 -1
+3 -1
View File
@@ -49,7 +49,9 @@ test('no page shows an em or en dash (house style)', async ({ page }) => {
await page.goto(p.path);
await page.waitForLoadState('networkidle');
const text = await page.evaluate(() => document.title + '\n' + document.body.innerText);
const hits = text.split('\n').filter(l => /[–—]/.test(l));
// En and em dash, built from char codes so this file itself stays dash-free.
const dash = new RegExp('[' + String.fromCharCode(0x2013, 0x2014) + ']');
const hits = text.split('\n').filter(l => dash.test(l));
expect(hits, `${p.path} shows dashes`).toEqual([]);
}
});