fix(webui): keep automation creation intent in runtime context
This commit is contained in:
1 parent
037438e7d1
commit
458b925f86
21 files changed
+149
-20
No files matched your search
@@ -490,9 +490,9 @@ describe("Automation task list and detail sheet", () => {
|
||||
await user.click(screen.getByRole("button", { name: "Send message" }));
|
||||
|
||||
expect(onStartChat).toHaveBeenCalledWith(
|
||||
"Create an automation for this request:\n\nEvery weekday at 9, summarize my open pull requests",
|
||||
undefined,
|
||||
"Every weekday at 9, summarize my open pull requests",
|
||||
undefined,
|
||||
{ intent: "create_automation" },
|
||||
"fast",
|
||||
);
|
||||
await waitFor(() => expect(composer).toHaveValue(""));
|
||||
@@ -512,9 +512,9 @@ describe("Automation task list and detail sheet", () => {
|
||||
await user.type(composer, "Run a deep weekly review");
|
||||
await user.click(screen.getByRole("button", { name: "Send message" }));
|
||||
expect(onStartChat).toHaveBeenCalledWith(
|
||||
"Create an automation for this request:\n\nRun a deep weekly review",
|
||||
undefined,
|
||||
"Run a deep weekly review",
|
||||
undefined,
|
||||
{ intent: "create_automation" },
|
||||
"deep",
|
||||
);
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user