From acc358f071bf64730eadc1704956f8686a9d7359 Mon Sep 17 00:00:00 2001 From: yetone Date: Tue, 17 Nov 2026 07:55:10 +0800 Subject: [PATCH] gui tests: codex-async-compact's zh and zh-TW notes say Codex CLI as translated (#6658) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 35aaaa4b9 (11-13) translated "Codex CLI" as "Codex 命令行" / "Codex 命令列" for the Codex client setting. codexHeld in context.js passes the same word through t(), so the held-share note in zh and zh-TW changed too, and codex-async-compact's expected strings still had "Codex CLI": 4 of 20 cases red (chromium and webkit, zh and zh-TW) since then. The app is right; the test now expects the translated word. Run at this head on mote (macOS 27, Playwright 1.62.0): node --test internal/gui/tests/codex-async-compact.test.cjs: pass 20, fail 0. Broken by hand: zh's expectation put back to "Codex CLI", chromium zh and webkit zh red (18/2), restored. Not run: the rest of the GUI suite (only this test file changes). --- internal/gui/tests/codex-async-compact.test.cjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/gui/tests/codex-async-compact.test.cjs b/internal/gui/tests/codex-async-compact.test.cjs index 476c00a92..a82e1db46 100644 --- a/internal/gui/tests/codex-async-compact.test.cjs +++ b/internal/gui/tests/codex-async-compact.test.cjs @@ -65,8 +65,8 @@ const words = { // one too old for the feature beside the app of no known version, or the app alone const held = { en: { old: "Codex CLI 0.162.1, Codex app: the share needs Codex 0.163 or later; until it's updated magpie writes only async_compaction = true, at 65%", unknown: "Codex app: the share needs Codex 0.163 or later; until it's updated magpie writes only async_compaction = true, at 65%" }, - zh: { old: "Codex CLI 0.162.1, Codex 应用:阈值需要 Codex 0.163 或更新;更新之前 magpie 只写 async_compaction = true,按 65%", unknown: "Codex 应用:阈值需要 Codex 0.163 或更新;更新之前 magpie 只写 async_compaction = true,按 65%" }, - "zh-TW": { old: "Codex CLI 0.162.1, Codex 應用程式:閾值需要 Codex 0.163 或更新;更新之前 magpie 只寫 async_compaction = true,按 65%", unknown: "Codex 應用程式:閾值需要 Codex 0.163 或更新;更新之前 magpie 只寫 async_compaction = true,按 65%" }, + zh: { old: "Codex 命令行 0.162.1, Codex 应用:阈值需要 Codex 0.163 或更新;更新之前 magpie 只写 async_compaction = true,按 65%", unknown: "Codex 应用:阈值需要 Codex 0.163 或更新;更新之前 magpie 只写 async_compaction = true,按 65%" }, + "zh-TW": { old: "Codex 命令列 0.162.1, Codex 應用程式:閾值需要 Codex 0.163 或更新;更新之前 magpie 只寫 async_compaction = true,按 65%", unknown: "Codex 應用程式:閾值需要 Codex 0.163 或更新;更新之前 magpie 只寫 async_compaction = true,按 65%" }, ja: { old: "Codex CLI 0.162.1, Codex アプリ:しきい値には Codex 0.163 以降が必要です。更新するまで magpie は async_compaction = true だけを書き、65% で圧縮します", unknown: "Codex アプリ:しきい値には Codex 0.163 以降が必要です。更新するまで magpie は async_compaction = true だけを書き、65% で圧縮します" }, de: { old: "Codex CLI 0.162.1, Codex-App: Die Schwelle braucht Codex 0.163 oder neuer; bis zum Update schreibt magpie nur async_compaction = true, bei 65 %", unknown: "Codex-App: Die Schwelle braucht Codex 0.163 oder neuer; bis zum Update schreibt magpie nur async_compaction = true, bei 65 %" }, };