Skip to content

Commit 941ebce

Browse files
committed
fix(test): fix E2E test selectors and cross-browser reliability
- Change points picker option selector from /^8$/ to /^8 points/ to match the actual aria-label - Replace waitForResponse with DOM element visibility check for more reliable cross-browser behavior in Firefox
1 parent 8d067ed commit 941ebce

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tests/integration/kanban-flow.spec.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,9 @@ test.describe('Kanban Flow', () => {
298298

299299
await page.getByPlaceholder('e.g., [kanban] or bug-triage').fill('kanban')
300300
await page.getByRole('button', { name: 'Apply Filters' }).click()
301-
await page.waitForResponse('**/api/bugzilla/**')
301+
302+
// Wait for bugs to load by checking for a bug card (more reliable than waitForResponse)
303+
await expect(page.getByRole('article').first()).toBeVisible({ timeout: 15000 })
302304

303305
// Drag and attempt to apply
304306
const backlogColumn = page.getByRole('region', { name: 'Backlog section' })
@@ -395,8 +397,8 @@ test.describe('Kanban Flow', () => {
395397
const pointsPicker = page.getByRole('listbox', { name: 'Select story points' })
396398
await expect(pointsPicker).toBeVisible({ timeout: 5000 })
397399

398-
// Click option
399-
const option = pointsPicker.getByRole('option', { name: /^8$/ })
400+
// Click option (aria-label is "8 points")
401+
const option = pointsPicker.getByRole('option', { name: /^8 points/ })
400402
await option.click()
401403

402404
// Wait for picker to close

0 commit comments

Comments
 (0)