From e9f7d5e77b0e62d682a5e1fb7c4c231bd0c0b81f Mon Sep 17 00:00:00 2001 From: Maurice Date: Fri, 23 Oct 2026 19:13:33 +0200 Subject: [PATCH] test(i18n): the plural test loads its locale itself instead of queueing behind every other FE-COMP-I18NCTX-011a starts all 27 locale chunks at once and does not wait for them, so the Russian chunk of FE-COMP-I18NCTX-018 queued behind the rest and the test failed in the whole file (and on CI), though it passed alone. --- client/tests/unit/i18n/TranslationContext.test.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/client/tests/unit/i18n/TranslationContext.test.tsx b/client/tests/unit/i18n/TranslationContext.test.tsx index 1bd7c9249..ea29af85b 100644 --- a/client/tests/unit/i18n/TranslationContext.test.tsx +++ b/client/tests/unit/i18n/TranslationContext.test.tsx @@ -147,6 +147,11 @@ describe('TranslationProvider', () => { }); it('FE-COMP-I18NCTX-018: plural forms follow the language of the strings on screen, not the one still loading', async () => { + // The chunk is loaded here first: FE-COMP-I18NCTX-011a starts every locale at + // once without waiting, and the Russian one could otherwise queue behind the + // others past any timeout. The provider still switches asynchronously, so the + // first render below is English all the same. + await import('@trek/shared/i18n/ru'); withLanguage('ru'); render();