feat: add multi-session desktop workspace
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import assert from "node:assert/strict";
|
||||
import { readFile } from "node:fs/promises";
|
||||
import { access, readFile } from "node:fs/promises";
|
||||
import test from "node:test";
|
||||
|
||||
test("ships a v5 Noctalia compatibility launcher instead of a primary panel", async () => {
|
||||
test("ships a v5 Noctalia aggregate launcher instead of a primary panel", async () => {
|
||||
const [manifest, bridge] = await Promise.all([
|
||||
readFile("noctalia-v5-plugin/pi-status-bridge/plugin.toml", "utf8"),
|
||||
readFile("noctalia-v5-plugin/pi-status-bridge/bridge.luau", "utf8"),
|
||||
@@ -19,10 +19,21 @@ test("ships a v5 Noctalia compatibility launcher instead of a primary panel", as
|
||||
assert.doesNotMatch(bridge, /--show/);
|
||||
assert.match(bridge, /pi-status-ui\.log/);
|
||||
assert.doesNotMatch(bridge, /togglePanel/);
|
||||
assert.match(bridge, /get_workspace_summary/);
|
||||
assert.match(bridge, /openCount/);
|
||||
assert.match(bridge, /workingCount/);
|
||||
assert.match(bridge, /attentionCount/);
|
||||
assert.match(bridge, /recoveringCount/);
|
||||
assert.match(bridge, /errorCount/);
|
||||
assert.match(bridge, /Pi reconnecting/);
|
||||
assert.match(bridge, /discover_home_agent\(socket\)/);
|
||||
assert.doesNotMatch(bridge, /discover_home_agent/);
|
||||
assert.doesNotMatch(bridge, /get_state/);
|
||||
assert.match(bridge, /systemctl --user start pi-status-bridge\.service/);
|
||||
assert.match(bridge, /bridge_start_in_flight/);
|
||||
assert.match(bridge, /pending_ui_open/);
|
||||
assert.match(bridge, /Bridge is starting/);
|
||||
await assert.rejects(
|
||||
access("noctalia-v5-plugin/pi-status-bridge/picker.luau"),
|
||||
{ code: "ENOENT" },
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user