feat(webui): surface composer shortcut hints (#6567)
This commit is contained in:
1 parent
955b1edd99
commit
0c92d5bb03
14 files changed
+15
-34
No files matched your search
@@ -508,7 +508,7 @@ describe("webui i18n", () => {
|
||||
);
|
||||
|
||||
expect(
|
||||
screen.getByPlaceholderText("Type your message…"),
|
||||
screen.getByPlaceholderText("Type / for commands, @ for chats or apps, $ for skills"),
|
||||
).toBeInTheDocument();
|
||||
expect(document.documentElement.lang).toBe("en");
|
||||
|
||||
@@ -519,7 +519,7 @@ describe("webui i18n", () => {
|
||||
expect(document.documentElement.lang).toBe("zh-CN");
|
||||
});
|
||||
expect(localStorage.getItem("nanobot.locale")).toBe("zh-CN");
|
||||
expect(screen.getByPlaceholderText("输入消息…")).toBeInTheDocument();
|
||||
expect(screen.getByPlaceholderText("输入 / 查看命令,@ 引用会话或应用,$ 选择技能")).toBeInTheDocument();
|
||||
});
|
||||
|
||||
it("updates the composer aria label when the language changes", async () => {
|
||||
|
||||
@@ -2458,7 +2458,7 @@ describe("ThreadShell", () => {
|
||||
expect(screen.getByRole("textbox")).toBeInTheDocument(),
|
||||
);
|
||||
const input = screen.getByRole("textbox");
|
||||
expect(input).toHaveAttribute("placeholder", "Describe what you’d like to do");
|
||||
expect(input).toHaveAttribute("placeholder", "Type / for commands, @ for chats or apps, $ for skills");
|
||||
expect(input.className).toContain("min-h-[78px]");
|
||||
expect(screen.queryByText("old answer")).not.toBeInTheDocument();
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user