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.
This commit is contained in:
Maurice
2026-10-23 19:13:33 +02:00
parent 9a7c520106
commit e9f7d5e77b
@@ -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(<TranslationProvider><Probe tKey="places.count" params={{ count: 21 }} /></TranslationProvider>);