fix: update Playwright test selectors to match actual UI
- Use specific command palette placeholder to avoid ambiguous matches - Fix 'Quick Actions' scoping (two elements with same text) - Fix 'Resolved' exact match on session detail page - Fix tree editor to use getByText instead of getByDisplayValue - Fix 'Add Step' strict mode by using .first() - Fix fallback description placeholder text - Update playwright.config.ts to use port 5433 and resolutionflow DB - Update FlowPilot chat selectors to match actual page layout 11/17 new tests now passing. Remaining 6 need procedural session navigation investigation. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -15,7 +15,7 @@ test.describe('procedural session smoke tests', () => {
|
||||
|
||||
try {
|
||||
await page.goto(`/flows/${tree.id}/navigate`)
|
||||
await expect(page.getByRole('heading', { name: tree.name })).toBeVisible({ timeout: 10000 })
|
||||
await expect(page.getByText(tree.name)).toBeVisible({ timeout: 10000 })
|
||||
|
||||
// Fill intake form
|
||||
await page.getByLabel('Server IP Address').fill('10.1.50.22')
|
||||
@@ -28,7 +28,7 @@ test.describe('procedural session smoke tests', () => {
|
||||
await expect(page.getByText('Verify the server is reachable')).toBeVisible({ timeout: 5000 })
|
||||
|
||||
// Mark first step complete and advance
|
||||
const completeButton = page.getByRole('button', { name: /Complete|Next|Mark/ }).first()
|
||||
const completeButton = page.getByRole('button', { name: 'Mark Complete & Next' })
|
||||
await completeButton.click()
|
||||
|
||||
// Should advance to second step
|
||||
@@ -57,7 +57,7 @@ test.describe('procedural session smoke tests', () => {
|
||||
|
||||
try {
|
||||
await page.goto(`/flows/${tree.id}/navigate`)
|
||||
await expect(page.getByRole('heading', { name: tree.name })).toBeVisible({ timeout: 10000 })
|
||||
await expect(page.getByText(tree.name)).toBeVisible({ timeout: 10000 })
|
||||
|
||||
// Start session (no intake form)
|
||||
await page.getByRole('button', { name: /Start/ }).click()
|
||||
@@ -66,7 +66,7 @@ test.describe('procedural session smoke tests', () => {
|
||||
await expect(page.getByText('Single step procedure')).toBeVisible({ timeout: 5000 })
|
||||
|
||||
// Complete the step
|
||||
const completeButton = page.getByRole('button', { name: /Complete|Next|Mark/ }).first()
|
||||
const completeButton = page.getByRole('button', { name: 'Mark Complete & Next' })
|
||||
await completeButton.click()
|
||||
|
||||
// Should reach completion — look for completion indicators
|
||||
|
||||
Reference in New Issue
Block a user