Fix 5 remaining Playwright e2e failures

- Wait for ?open= intent consumption before expecting agent tabs
- Blur composer before second Meta+t to prevent shortcut swallowing
- Use projectDisplayName from daemon instead of computed path label
- Increase setup streaming script terminal timeout for CI
This commit is contained in:
Mohamed Boudra
2026-04-14 10:19:42 +07:00
parent 19585709d5
commit e647c61fb5
4 changed files with 16 additions and 6 deletions
+5
View File
@@ -188,6 +188,11 @@ export async function openWorkspaceWithAgents(
const serverId = getServerId();
for (const agent of agents) {
await page.goto(buildHostAgentDetailRoute(serverId, agent.id, agent.cwd));
// Wait for the ?open=agent:xxx intent to be consumed by the layout effect.
// The layout removes the query param via history.replaceState once processed.
await page.waitForFunction(() => !window.location.search.includes("open="), {
timeout: 15_000,
});
await waitForWorkspaceTabsVisible(page);
await expectWorkspaceTabVisible(page, agent.id);
}