fix(web): resolve flaky CI test failures (#433)

Co-authored-by: Jason Woltje <[email protected]>
Co-committed-by: Jason Woltje <[email protected]>
This commit is contained in:
2026-02-21 21:12:00 +00:00
committed by jason.woltje
parent 1425893318
commit 25ae14aba1
@@ -46,8 +46,8 @@ describe("FilterBar", (): void => {
it("should debounce search input", async (): Promise<void> => {
const user = userEvent.setup();
// Use a very short debounce to test the behavior without flaky timing
render(<FilterBar onFilterChange={mockOnFilterChange} debounceMs={100} />);
// Use a debounce long enough that CI environments don't fire it between keystrokes
render(<FilterBar onFilterChange={mockOnFilterChange} debounceMs={500} />);
const searchInput = screen.getByPlaceholderText(/search/i);
mockOnFilterChange.mockClear();
@@ -71,7 +71,7 @@ describe("FilterBar", (): void => {
expect.objectContaining({ search: "test" })
);
},
{ timeout: 200 }
{ timeout: 1000 }
);
// Verify it was only called once (debounced)