fix(webui): show per-run automation replies and simplify details
This commit is contained in:
1 parent
e7da868574
commit
037438e7d1
28 files changed
+985
-183
No files matched your search
@@ -13,6 +13,7 @@ import {
|
||||
fetchFilePreview,
|
||||
fetchFilePreviewAvailability,
|
||||
fetchAutomations,
|
||||
fetchAutomationRunResult,
|
||||
fetchApiService,
|
||||
fetchCliApps,
|
||||
fetchInstalledCliApps,
|
||||
@@ -238,6 +239,15 @@ describe("webui API helpers", () => {
|
||||
);
|
||||
});
|
||||
|
||||
it("fetches the selected run response with authentication and an encoded identity", async () => {
|
||||
const controller = new AbortController();
|
||||
await fetchAutomationRunResult("tok", "task/id", 1234, "cron", controller.signal);
|
||||
expect(fetch).toHaveBeenCalledWith(
|
||||
"/api/webui/automations/result?id=task%2Fid&run_at_ms=1234&kind=cron",
|
||||
expect.objectContaining({ headers: { Authorization: "Bearer tok" }, signal: expect.any(AbortSignal) }),
|
||||
);
|
||||
});
|
||||
|
||||
it("validates channel settings with form values", async () => {
|
||||
await validateChannel(
|
||||
mutationTransport,
|
||||
|
||||
Reference in new issue
Block a user