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 mobile session windows

Rahman32250d6c028f
diff --git a/scripts/e2e/mcp-sessions.mjs b/scripts/e2e/mcp-sessions.mjs
index 31a60450..f69e5fbd 100644
--- a/scripts/e2e/mcp-sessions.mjs
+++ b/scripts/e2e/mcp-sessions.mjs
@@ -71,6 +71,14 @@ export async function mcpSessionsJourney(page, fixture) {
const backHome = page.getByRole("button", { name: "Back to Home", exact: true });
if (await backHome.isVisible().catch(() => false)) {
await backHome.click();
+ const homeIndicator = page.getByRole("button", { name: /^Home — swipe up for home/ });
+ if (await homeIndicator.isVisible().catch(() => false)) {
+ await homeIndicator.click();
+ const closeNewTerminal = page.getByRole("button", { name: "Close Terminal", exact: true }).first();
+ if (await closeNewTerminal.isVisible().catch(() => false)) await closeNewTerminal.click();
+ const closeMobileWorkflow = page.getByRole("button", { name: "Close Workflows", exact: true }).first();
+ if (await closeMobileWorkflow.isVisible().catch(() => false)) await closeMobileWorkflow.click();
+ }
} else {
const terminalWindow = page.locator('[data-window="true"][data-app="os-terminal"]').last();
const closeWindow = terminalWindow.getByRole("button", { name: "Close window", exact: true });