test(app): keep script menu e2e focused on launch

This commit is contained in:
Mohamed Boudra
2026-05-01 13:25:36 +07:00
parent ed70827f39
commit 67707f2716

View File

@@ -1,7 +1,6 @@
import { test, expect } from "./fixtures";
import { createTempGitRepo } from "./helpers/workspace";
import { waitForWorkspaceTabsVisible } from "./helpers/workspace-tabs";
import { waitForTerminalContent } from "./helpers/terminal-perf";
import {
connectWorkspaceSetupClient,
createWorkspaceThroughDaemon,
@@ -300,9 +299,7 @@ test.describe("Workspace setup streaming", () => {
await terminalSurface.click();
// Verify the terminal output contains "listening on" via xterm buffer API.
// The .xterm-rows CSS selector is fragile; reading the buffer directly is reliable.
await waitForTerminalContent(page, (text) => text.includes("listening on"), 60_000);
await expect(terminalTab).toContainText("web");
} finally {
await client.close();
await repo.cleanup();