Add bot schedules (routines), open Activity, add Help and a Desktop computer view
Bots create, list, update and delete schedules (cron_jobs, Bun.cron in UTC); a per-minute cron queues due runs as tasks. Routines, Activity (super admins) and Help get their own rail aside. Help covers familiar problems, starting with signing in to Google through Cookie-Editor over the new Desktop (noVNC) view. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
import { describe, expect, test } from "bun:test";
|
||||
import computerViewUrl from "./computer-view-url";
|
||||
|
||||
describe("computerViewUrl", () => {
|
||||
test("serves a mode under the computer's address", () => {
|
||||
expect(computerViewUrl({ computer_id: 3, mode: "terminal" })).toBe("/computers/3/terminal");
|
||||
});
|
||||
|
||||
test("points the desktop's VNC socket back through the same address", () => {
|
||||
expect(computerViewUrl({ computer_id: 3, mode: "desktop" })).toBe(
|
||||
"/computers/3/vnc/vnc.html?autoconnect=true&resize=scale&reconnect=true&path=computers/3/websockify",
|
||||
);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user