From 9a084abb7275c5d934092af3d00a83a318dc75d3 Mon Sep 17 00:00:00 2001 From: DEls Date: Sat, 10 Oct 2026 00:15:05 +0200 Subject: [PATCH] test(workforce): spell out the non-breaking space the tiles contain Intl renders en-ZA currency and numbers with U+00A0, so the tile helpers normalise it before asserting. Written as a literal that byte is invisible in the source and easy to "fix" into a plain space by accident. An explicit escape says what it means. Co-Authored-By: Claude Opus 5.5 --- src/app/dashboard/workforce/page.test.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/dashboard/workforce/page.test.tsx b/src/app/dashboard/workforce/page.test.tsx index aaede11..bee5306 100644 --- a/src/app/dashboard/workforce/page.test.tsx +++ b/src/app/dashboard/workforce/page.test.tsx @@ -25,13 +25,13 @@ const events = [ /** Tile value text for a KPI label, with Intl's non-breaking spaces normalised. */ function tileValue(html: string, label: string): string { const match = html.match(new RegExp(`${label}[\\s\\S]*?
([^<]*)

`)); - return (match?.[1] ?? "").replace(/ /g, " "); + return (match?.[1] ?? "").replace(/\u00a0/g, " "); } const ada = {