test(app): expect the completed Simplified Chinese labels

Four app tests that check the active language still expected the mixed
English and Chinese strings that #6118 replaced.

Co-authored-by: Dillon <dillonzq@outlook.com>
This commit is contained in:
paseo-bot[bot]
2026-10-07 11:00:29 +02:00
co-authored by Dillon
parent e4375f4c6d
commit 3926fdeb07
4 changed files with 10 additions and 10 deletions
@@ -474,7 +474,7 @@ describe("formatStatusText", () => {
formatVersion,
formatLastCheckedAt,
}),
).toBe("正在检查 app 更新...");
).toBe("正在检查应用更新...");
expect(
formatStatusText({
status: "available",
+4 -4
View File
@@ -755,13 +755,13 @@ describe("git-actions-policy", () => {
expect(actions.primary).toMatchObject({
id: "pull",
label: "Pull",
pendingLabel: "正在 pull...",
successLabel: "已 pull",
label: "拉取",
pendingLabel: "正在拉取...",
successLabel: "已拉取",
});
expect(actions.secondary.find((entry) => entry.id === "pr")).toMatchObject({
label: "创建 PR",
unavailableMessage: "无法创建 PR,因为此分支还没有新的 commit",
unavailableMessage: "无法创建 PR,因为此分支还没有新的提交",
});
});
@@ -56,12 +56,12 @@ describe("buildDraftPanelDescriptor", () => {
});
expect(idleDescriptor).toMatchObject({
label: "新建 Agent",
subtitle: "新建 Agent",
label: "新建智能体",
subtitle: "新建智能体",
});
expect(creatingDescriptor).toMatchObject({
label: "新建 Agent",
subtitle: "正在创建 Agent",
label: "新建智能体",
subtitle: "正在创建智能体",
});
await i18n.changeLanguage("en");
});
@@ -427,7 +427,7 @@ describe("combined model selector data", () => {
workspaceDirectory: "/repo",
hasClient: true,
}),
).toEqual({ ok: false, reason: "初始 prompt 必填" });
).toEqual({ ok: false, reason: "初始提示词必填" });
} finally {
await i18n.changeLanguage("en");
}