test: align automation integration coverage with current behavior

This commit is contained in:
chengyongru authored and chengyongru committed 2026-09-13 05:43:05 +08:00
1 parent 458b925f86
commit bfb4f021ed
4 files changed
+42 -16

No files matched your search

+2 -2
View File
@@ -266,9 +266,9 @@ describe("Settings system domains", () => {
fireEvent.change(input, { target: { value: "Summarize updates every weekday at 9" } });
fireEvent.click(screen.getByRole("button", { name: "Send message" }));
await waitFor(() => expect(onStartAutomationChat).toHaveBeenCalledWith(
"Create an automation for this request:\n\nSummarize updates every weekday at 9",
undefined,
"Summarize updates every weekday at 9",
undefined,
{ intent: "create_automation" },
"primary",
));
fireEvent.click(screen.getByRole("button", { name: "Back to chat" }));