fix(webui): improve automation edit message field

This commit is contained in:
chengyongru
2026-06-15 15:22:01 +08:00
parent 140c4fb49f
commit 04496e9e28
2 changed files with 12 additions and 8 deletions
+7
View File
@@ -501,6 +501,13 @@ describe("App layout", () => {
expect(await screen.findByText("Past one-shot")).toBeInTheDocument();
fireEvent.click(screen.getByRole("button", { name: "Edit" }));
expect(screen.queryByText("Run time must be in the future.")).not.toBeInTheDocument();
expect(
screen.queryByText("Update the prompt and schedule. The linked chat stays unchanged."),
).not.toBeInTheDocument();
expect(screen.getByDisplayValue("Old one-shot message")).toHaveClass(
"min-h-[160px]",
"resize-none",
);
fireEvent.change(screen.getByDisplayValue("Old one-shot message"), {
target: { value: "Updated one-shot message" },