重构会话标题编辑和删除确认逻辑;重构历史会话时间记录
This commit is contained in:
@@ -33,7 +33,7 @@ describe("AgentHeader", () => {
|
||||
fireEvent.change(screen.getByPlaceholderText("请输入对话标题"), {
|
||||
target: { value: "更新后的标题" },
|
||||
});
|
||||
fireEvent.click(screen.getByLabelText("确认修改对话标题"));
|
||||
fireEvent.click(screen.getByLabelText("确认"));
|
||||
|
||||
expect(onRenameSessionTitle).toHaveBeenCalledWith("更新后的标题");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user