test: select localized welcome copy

This commit is contained in:
Shakker
2026-05-12 16:47:04 +01:00
parent 80c615daee
commit 0aed7c5090

View File

@@ -928,9 +928,12 @@ describe("chat welcome", () => {
await i18n.setLocale("zh-CN");
const container = renderWelcome({ assistantAvatar: "VC", assistantAvatarUrl: null });
expect(container.textContent).toContain(t("chat.welcome.ready"));
expect(container.textContent).toContain(t("chat.welcome.suggestions.whatCanYouDo"));
expect(container.textContent).not.toContain("Ready to chat");
expect(container.querySelector(".agent-chat__badge")?.textContent?.trim()).toBe(
t("chat.welcome.ready"),
);
expect(container.querySelector(".agent-chat__suggestion")?.textContent?.trim()).toBe(
t("chat.welcome.suggestions.whatCanYouDo"),
);
});
});