Skip to content

Commit 02ed48d

Browse files
committed
test: reorder for less flakiness
1 parent c747559 commit 02ed48d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tests/interactions.spec.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,11 @@ test.describe('Search Pages', () => {
1818
await expect(page).toHaveURL(/\/vue/)
1919

2020
await page.goBack()
21+
// Wait for search page to be ready
22+
await expect(page).toHaveURL(/\/search/)
23+
await expect(page.locator('text=/found \\d+/i')).toBeVisible()
2124
// Search input is autofocused on mount
2225
await expect(searchInput).toBeFocused()
23-
await expect(page.locator('text=/found \\d+/i')).toBeVisible()
2426

2527
// ArrowDown changes visual selection but keeps focus in input
2628
await page.keyboard.press('ArrowDown')

0 commit comments

Comments
 (0)