mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-01-31 06:42:03 +00:00
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:
@@ -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 });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user