Skip to content

armgit / mso

Public Imported from GitHub
0

Browser-based graphical shell and control plane for a Linux server you own — real terminal, file manager, live metrics and BYOK AI in one mobile-first workspace. Next.js 16 · React 19 · node-pty · Tailwind v4 · shadcn/ui. Public alpha, self-hosted.

test(mcp): close session terminal across shells

Rahman9f6be738fa4c
diff --git a/scripts/e2e/mcp-sessions.mjs b/scripts/e2e/mcp-sessions.mjs
index 34f5b4af..892ed63f 100644
--- a/scripts/e2e/mcp-sessions.mjs
+++ b/scripts/e2e/mcp-sessions.mjs
@@ -66,10 +66,15 @@ export async function mcpSessionsJourney(page, fixture) {
expect(await page.locator('[data-slot="workflows-feature"]').innerText()).not.toMatch(/\b\d{8}_\d{6}_[a-f0-9]{8}\b/);
await terminalToolNode.click();
await expect(page.getByRole("tablist", { name: "Terminal sessions" }).last()).toBeVisible();
- const terminalWindow = page.locator('[data-window="true"][data-app="os-terminal"]').last();
- const closeWindow = terminalWindow.getByRole("button", { name: "Close window", exact: true });
- await expect(closeWindow).toBeVisible();
- await closeWindow.click();
- await expect(terminalWindow).toHaveCount(0);
+ const backHome = page.getByRole("button", { name: "Back to Home", exact: true });
+ if (await backHome.isVisible().catch(() => false)) {
+ await backHome.click();
+ } else {
+ const terminalWindow = page.locator('[data-window="true"][data-app="os-terminal"]').last();
+ const closeWindow = terminalWindow.getByRole("button", { name: "Close window", exact: true });
+ await expect(closeWindow).toBeVisible();
+ await closeWindow.click();
+ }
+ await expect(page.getByRole("tablist", { name: "Terminal sessions" })).toHaveCount(0);
console.log("PASS session labels, Workflow graph handoff, terminal context, redaction, handover, keyboard and accessibility");
}