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(e2e): wait for deferred lock keyboard listener

Rahman94788bc873b3
diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md
index 2065c18f..502b53ff 100644
--- a/docs/CHANGELOG.md
+++ b/docs/CHANGELOG.md
@@ -16,6 +16,10 @@ this is the *what*, and it is what Settings → Account → About shows as “Wh
- `deps` update source-map-js to patched 1.2.2
- `agent` preserve overlapping standby wakeups
+**Tests**
+
+- `e2e` wait for deferred lock keyboard listener
+
**Docs**
- reconcile reviewed 9Router app-host proposal
diff --git a/scripts/e2e/ios-lock.mjs b/scripts/e2e/ios-lock.mjs
index ef39955a..6bddf713 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 defers its keyboard listener to avoid consuming the palette Enter.
+ 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([]);