fix: stabilize workspace e2e routing and cli helper export

This commit is contained in:
Mohamed Boudra
2026-04-14 17:01:38 +07:00
parent 0f0efa1707
commit d55209b81e
5 changed files with 37 additions and 22 deletions
+2 -5
View File
@@ -95,15 +95,12 @@ test.describe("Workspace cwd correctness", () => {
if (!workspaceResult.workspace) {
throw new Error(workspaceResult.error ?? `Failed to open project ${worktreePath}`);
}
const workspaceName = workspaceResult.workspace.name;
const workspaceId = String(workspaceResult.workspace.id);
// Use sidebar navigation to avoid Expo Router hydration issues
// with direct URL navigation to the 2nd+ workspace.
await openHomeWithProject(page, repo.path);
const sidebarWorkspace = page.getByRole("button", { name: workspaceName });
await expect(sidebarWorkspace).toBeVisible({ timeout: 30_000 });
await sidebarWorkspace.click();
await waitForTabBar(page);
await navigateToWorkspaceViaSidebar(page, workspaceId);
await clickTerminal(page);