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(lock): wait for the privacy curtain keyboard listener before unlocking

rahmanef13dbc6c82bef
diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md
index 2712c98d..5a04afb2 100644
--- a/docs/CHANGELOG.md
+++ b/docs/CHANGELOG.md
@@ -27,6 +27,10 @@ this is the *what*, and it is what Settings → Account → About shows as “Wh
- `security` require authenticated workflow webhooks
- `security` block delegated writes to control plane
+**Tests**
+
+- `lock` wait for the privacy curtain keyboard listener before unlocking
+
## 2026-10-07
**Fixed**
diff --git a/scripts/e2e/ios-lock.mjs b/scripts/e2e/ios-lock.mjs
index ef39955a..0effa69b 100644
--- a/scripts/e2e/ios-lock.mjs
+++ b/scripts/e2e/ios-lock.mjs
@@ -138,6 +138,8 @@ try {
await page.keyboard.press("Enter");
await expect(page.getByText("Click to unlock", { exact: true })).toBeVisible();
await expect(page.locator('[data-slot="ios-lock"]')).toHaveCount(0);
+ // LockCurtain attaches after one frame so the palette Enter cannot unlock it.
+ await page.evaluate(() => new Promise(resolve => requestAnimationFrame(() => requestAnimationFrame(resolve))));
await page.keyboard.press("Space");
await expect(page.getByText("Click to unlock", { exact: true })).toHaveCount(0);
expect(errors).toEqual([]);