From 82fcdcd0fc5a4726bb5c2d479324726a0a294de5 Mon Sep 17 00:00:00 2001 From: Maurice Date: Sun, 8 Nov 2026 00:38:51 +0000 Subject: [PATCH] test(rtl): read rtl.css selectors with their white space folded Prettier breaks the arrow rule's long selector over lines, so the literal look-up found no rule and FE-RTL-CSS-003 failed after the file was formatted. --- client/src/styles/rtlCss.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/src/styles/rtlCss.test.ts b/client/src/styles/rtlCss.test.ts index 56e0c9799..8952d5b83 100644 --- a/client/src/styles/rtlCss.test.ts +++ b/client/src/styles/rtlCss.test.ts @@ -15,7 +15,8 @@ function ruleBody(...parts: string[]): string { for (const chunk of css.split('}')) { const open = chunk.indexOf('{'); if (open < 0) continue; - const head = chunk.slice(0, open); + // Prettier breaks a long selector over lines; compared with its white space folded. + const head = chunk.slice(0, open).replace(/\s+/g, ' '); if (parts.every((part) => head.includes(part))) return chunk.slice(open + 1); } return '';