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): clean workflow window after session journey

Rahman528abaf0d697
diff --git a/scripts/e2e/mcp-sessions.mjs b/scripts/e2e/mcp-sessions.mjs
index ada75347..31a60450 100644
--- a/scripts/e2e/mcp-sessions.mjs
+++ b/scripts/e2e/mcp-sessions.mjs
@@ -78,7 +78,13 @@ export async function mcpSessionsJourney(page, fixture) {
await closeWindow.click();
}
await expect.poll(async () => await terminalTabs.count()).toBeLessThanOrEqual(terminalCountBefore);
- // Mobile/full-screen terminal navigation changes the active route; restore Settings so the caller can continue its recovery journey.
+ // Teardown only: close the Workflow window opened by this journey so it cannot cover Settings later.
+ const workflowWindow = page.locator('[data-window="true"][data-app="workflows"]').last();
+ if (await workflowWindow.count()) {
+ const closeWorkflow = workflowWindow.getByRole("button", { name: "Close window", exact: true });
+ if (await closeWorkflow.count()) await closeWorkflow.click({ force: true });
+ }
+ // Mobile/full-screen navigation changes the active route; restore Settings so the caller can continue its recovery journey.
await page.goto(fixture.base + "/settings");
console.log("PASS session labels, Workflow graph handoff, terminal context, redaction, handover, keyboard and accessibility");
}