Skip to content

Commit e02152d

Browse files
committed
fix(tests): increase wait timeout after interacting with search bar in tests to account for debounce
1 parent 4dc6a3d commit e02152d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

e2e/tests/tag_filtering.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,13 +339,13 @@ test.describe('Tag filtering', () => {
339339
// 2. Type a search query.
340340
const searchInput = page.getByRole('searchbox', { name: 'Search' });
341341
await searchInput.fill(alphaName);
342-
await page.waitForTimeout(200); // debounce
342+
await page.waitForTimeout(400); // debounce (SEARCH_DEBOUNCE_MS is 300ms)
343343
expect(page.url()).toContain(`q=${encodeURIComponent(alphaName)}`);
344344

345345
// 3. Apply both filters - then click "Clear filters" from filtered empty state.
346346
// First make the search hide everything by searching for a non-existent term.
347347
await searchInput.fill('zzz-no-match');
348-
await page.waitForTimeout(200);
348+
await page.waitForTimeout(400); // debounce (SEARCH_DEBOUNCE_MS is 300ms)
349349
expect(page.url()).toContain('q=zzz-no-match');
350350
expect(page.url()).toContain('tags=alpha');
351351

0 commit comments

Comments
 (0)