Skip to content

Commit 84dc866

Browse files
committed
test(gui): update client inventory assertions and zh-TW allowlist for mcode
MiniMax Code (#1664) legitimately added a ninth integration client; the inventory tests and locale parity allowlist now reflect it (product proper noun kept in English, matching Kimi Code precedent).
1 parent 9b6c9f1 commit 84dc866

4 files changed

Lines changed: 8 additions & 4 deletions

File tree

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,10 @@ function rowButton(container: HTMLElement, name: string, label: string): HTMLBut
170170
.find(el => el.textContent?.trim() === label)!;
171171
}
172172

173-
test("the API download surface includes DSH as the eighth client", () => {
174-
expect(CLIENTS).toEqual(["opencode", "pi", "omp", "hermes", "openclaw", "kimi", "gajae", "dsh"]);
173+
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"]);
175175
expect(CLIENT_LABEL_KEYS.dsh).toBe("api.clientConfig.clientDsh");
176+
expect(CLIENT_LABEL_KEYS.mcode).toBe("api.clientConfig.clientMcode");
176177
});
177178

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

‎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",
21+
"opencode", "pi", "omp", "hermes", "openclaw", "kimi", "gajae", "dsh", "mcode",
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,8 +178,9 @@ 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(12);
181+
expect(built.rows).toHaveLength(13);
182182
expect(rowById(built, "omp").state).toBe("unknown");
183+
expect(rowById(built, "mcode").state).toBe("unknown");
183184
expect(rowById(built, "kimi").state).toBe("unknown");
184185
expect(rowById(built, "dsh")).toMatchObject({
185186
hash: "integrations/dsh",

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,8 @@ const ZH_TW_KEEP_ENGLISH: ReadonlySet<string> = new Set([
108108
"integrations.tab.kimi",
109109
"integrations.tab.gajae",
110110
"integrations.tab.dsh",
111+
"integrations.tab.mcode",
112+
"api.clientConfig.clientMcode",
111113
"integrations.codex.title",
112114
// Provider proper nouns kept in English
113115
"provider.name.commandCodeAuth",

0 commit comments

Comments
 (0)