mirror of
https://github.com/getpaseo/paseo.git
synced 2026-11-03 23:23:21 +00:00
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:
@@ -474,7 +474,7 @@ describe("formatStatusText", () => {
|
||||
formatVersion,
|
||||
formatLastCheckedAt,
|
||||
}),
|
||||
).toBe("正在检查 app 更新...");
|
||||
).toBe("正在检查应用更新...");
|
||||
expect(
|
||||
formatStatusText({
|
||||
status: "available",
|
||||
|
||||
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user