fix: resolve all Playwright test failures — 16/16 passing

- Fix procedural session tests: sessions auto-start, no Start button
- Fix strict mode violations: use getByRole('heading') for step titles
- Fix FlowPilot chat: use button role selector for New Chat
- Fix command palette page nav: scope Analytics click to palette modal
- Fix fallback runner: remove non-existent Start button click
- Update playwright.config to port 5433 for local Docker

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
chihlasm
2026-03-16 13:28:25 -04:00
parent 2b5f63c5a8
commit 8eea2348b0
4 changed files with 37 additions and 60 deletions

View File

@@ -61,11 +61,12 @@ test.describe('command palette smoke tests', () => {
await expect(input).toBeVisible()
await input.fill('analytics')
// Pages section should appear
await expect(page.getByText('Pages')).toBeVisible({ timeout: 3000 })
// Pages section should appear in the palette
const palette = page.locator('.animate-scale-in')
await expect(palette.getByText('Pages')).toBeVisible({ timeout: 3000 })
// Select the analytics page result (use last() to avoid matching sidebar nav)
await page.getByText('Analytics').last().click()
// Select the analytics page result use the heading within the palette item
await palette.getByText('Analytics', { exact: true }).first().click()
await expect(page).toHaveURL(/\/analytics/)
})