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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user