Files
openclaw/extensions/workboard/index.test.ts
Peter Steinberger b5b17c654b fix: keep Workboard visible in the sidebar (#125473)
* fix(ui): keep workboard in sidebar navigation

* test(ui): align workboard navigation ownership

* fix(ui): preserve saved workboard sidebar slots

* test(ui): shrink assertion safety baseline

* fix(plugins): bind native routes to bundled owners

* refactor(plugins): isolate native route policy
2026-08-17 18:44:39 -07:00

29 lines
802 B
TypeScript

import { capturePluginRegistration } from "openclaw/plugin-sdk/plugin-test-runtime";
import { describe, expect, it, vi } from "vitest";
vi.mock("./src/store.js", () => ({
WorkboardStore: { openSqlite: () => ({}) },
}));
import plugin from "./index.js";
describe("Workboard plugin registration", () => {
it("advertises its native route only while the plugin runtime is active", () => {
const captured = capturePluginRegistration({
id: "workboard",
name: "Workboard",
register: plugin.register,
});
expect(captured.controlUiDescriptors).toContainEqual({
surface: "tab",
id: "workboard",
label: "Workboard",
placement: "route:workboard",
icon: "kanban",
group: "control",
requiredScopes: ["operator.read"],
});
});
});