Skip to content

Commit ffa6d0e

Browse files
committed
test(gui): register zcode in the client-list and locale-allowlist suites
The gui/tests sweep runs in CI but not in the backend tests/ suite, so the tenth client tripped five list/count/allowlist assertions there: FILE_ INTEGRATION_CLIENTS shape, CLIENTS download surface, overview unknown-row count, and the fr/zh-TW product-name allowlists (ZCode is a product name, same class as the mcode entries).
1 parent 11f9c6b commit ffa6d0e

5 files changed

Lines changed: 9 additions & 3 deletions

File tree

‎gui/tests/client-config-panel.test.tsx‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,9 +171,10 @@ function rowButton(container: HTMLElement, name: string, label: string): HTMLBut
171171
}
172172

173173
test("the API download surface includes DSH and MiniMax Code as clients", () => {
174-
expect(CLIENTS).toEqual(["opencode", "pi", "omp", "hermes", "openclaw", "kimi", "gajae", "dsh", "mcode"]);
174+
expect(CLIENTS).toEqual(["opencode", "pi", "omp", "hermes", "openclaw", "kimi", "gajae", "dsh", "mcode", "zcode"]);
175175
expect(CLIENT_LABEL_KEYS.dsh).toBe("api.clientConfig.clientDsh");
176176
expect(CLIENT_LABEL_KEYS.mcode).toBe("api.clientConfig.clientMcode");
177+
expect(CLIENT_LABEL_KEYS.zcode).toBe("api.clientConfig.clientZcode");
177178
});
178179

179180
test("each row fetches its own client and its dialog renders that client's exact bytes", async () => {

‎gui/tests/fr-localization.test.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ const INTENTIONAL_ENGLISH = new Set<TKey>([
7575
"integrations.tab.gajae",
7676
"integrations.tab.dsh",
7777
"integrations.tab.mcode",
78+
"integrations.tab.zcode",
7879
"integrations.codex.title",
7980
"codexAuth.addIdPlaceholder",
8081
"api.clientConfig.clientOpencode",
@@ -86,6 +87,7 @@ const INTENTIONAL_ENGLISH = new Set<TKey>([
8687
"api.clientConfig.clientGajae",
8788
"api.clientConfig.clientDsh",
8889
"api.clientConfig.clientMcode",
90+
"api.clientConfig.clientZcode",
8991
"models.reasoningEffort.minimal",
9092
"models.reasoningEffort.max",
9193
"pws.pacingRpmUnit",

‎gui/tests/integrations-api.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const originalFetch = globalThis.fetch;
1818

1919
test("DSH is a file integration client", () => {
2020
expect(FILE_INTEGRATION_CLIENTS).toEqual([
21-
"opencode", "pi", "omp", "hermes", "openclaw", "kimi", "gajae", "dsh", "mcode",
21+
"opencode", "pi", "omp", "hermes", "openclaw", "kimi", "gajae", "dsh", "mcode", "zcode",
2222
]);
2323
});
2424

‎gui/tests/integrations-overview-rows.test.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,9 +178,10 @@ test("every client counts toward the summary, not just the file clients", () =>
178178

179179
test("an unsettled file list renders unknown rows instead of dropping them", () => {
180180
const built = buildOverviewRows(sources({ clients: [], clientsSettled: false }));
181-
expect(built.rows).toHaveLength(13);
181+
expect(built.rows).toHaveLength(14);
182182
expect(rowById(built, "omp").state).toBe("unknown");
183183
expect(rowById(built, "mcode").state).toBe("unknown");
184+
expect(rowById(built, "zcode").state).toBe("unknown");
184185
expect(rowById(built, "kimi").state).toBe("unknown");
185186
expect(rowById(built, "dsh")).toMatchObject({
186187
hash: "integrations/dsh",

‎gui/tests/locale-parity.test.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,9 @@ const ZH_TW_KEEP_ENGLISH: ReadonlySet<string> = new Set([
109109
"integrations.tab.gajae",
110110
"integrations.tab.dsh",
111111
"integrations.tab.mcode",
112+
"integrations.tab.zcode",
112113
"api.clientConfig.clientMcode",
114+
"api.clientConfig.clientZcode",
113115
"integrations.codex.title",
114116
// Provider proper nouns kept in English
115117
"provider.name.commandCodeAuth",

0 commit comments

Comments
 (0)