fix: update e2e test navigation to use direct routes

The index route (/) now shows WelcomeView instead of auto-redirecting
to board view. Updated test utilities to navigate directly to the
correct routes:

- navigateToBoard -> /board
- navigateToContext -> /context
- navigateToSpec -> /spec
- navigateToAgent -> /agent
- navigateToSettings -> /settings
- waitForBoardView -> navigates to /board first

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Kacper
2025-12-17 22:08:05 +01:00
parent ea1b10fea6
commit 2c9f77356f
2 changed files with 22 additions and 58 deletions

View File

@@ -458,8 +458,15 @@ export async function setupProjectWithStaleWorktree(page: Page, projectPath: str
/**
* Wait for the board view to load
* Navigates to /board first since the index route shows WelcomeView
*/
export async function waitForBoardView(page: Page): Promise<void> {
// Navigate directly to /board route (index route shows welcome view)
const currentUrl = page.url();
if (!currentUrl.includes('/board')) {
await page.goto('/board');
await page.waitForLoadState('networkidle');
}
await page.waitForSelector('[data-testid="board-view"]', { timeout: TIMEOUTS.long });
}