From 3b2ce7c3cf6fbce7941e65ab8c38bdfc75591832 Mon Sep 17 00:00:00 2001 From: Paulo Carinhena <63272749+paulocarinhena@users.noreply.github.com> Date: Fri, 6 Nov 2026 12:19:25 -0300 Subject: [PATCH] Teste de colaboradores fixa o idioma em pt-BR MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A store escolhe o idioma pelo sistema (navigator.languages) e as asserções estão em português, então a suíte só passava em máquina configurada em português. No CI, em inglês, 8 testes falhavam e barravam o Auto Release. Co-Authored-By: Claude Opus 5.5 --- GitWeb/test/collaboratorStore.test.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/GitWeb/test/collaboratorStore.test.ts b/GitWeb/test/collaboratorStore.test.ts index 0ad4d0a..477c9d4 100644 --- a/GitWeb/test/collaboratorStore.test.ts +++ b/GitWeb/test/collaboratorStore.test.ts @@ -9,6 +9,9 @@ const github = { cancelRepositoryInvitation: vi.fn() } vi.stubGlobal('window', { api: { github } }) +// The store picks its language from the OS, and the assertions below are in +// pt-BR: without this the suite only passes on a machine set to Portuguese. +vi.stubGlobal('navigator', { languages: ['pt-BR'] }) const { usePullRequestStore } = await import('../src/renderer/src/store/pullRequestStore') const { sessionKeyOf, useCollaboratorStore } = await import('../src/renderer/src/store/collaboratorStore')