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

@@ -58,16 +58,11 @@ test.describe('fallback branches smoke tests', () => {
})
try {
// Navigate to the procedural flow
// Navigate to the procedural flow — session auto-starts, no Start button
await page.goto(`/flows/${tree.id}/navigate`)
await expect(page.getByText(tree.name)).toBeVisible({ timeout: 10000 })
// Start the session (no intake form on this flow)
const startButton = page.getByRole('button', { name: /Start/ })
await startButton.click()
// Should see the first step
await expect(page.getByText('Clear the DNS cache')).toBeVisible({ timeout: 5000 })
// Should see the first step immediately (auto-started)
await expect(page.getByRole('heading', { name: 'Clear the DNS cache' })).toBeVisible({ timeout: 15000 })
// Should see "Didn't work?" toggle since step has fallback_steps
const didntWorkToggle = page.getByText("Didn't work?")