Repository navigation
test(app): raise DashboardFiltersModal test timeout to 15s - #3841
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
🔵 Tier 2 — Low RiskSmall, isolated change with no API route or data model modifications. Why this tier:
Review process: AI review + quick human skim (target: 5–15 min). Reviewer validates AI assessment and checks for domain-specific concerns. Stats
|
Duplicate code analysisNo new duplicate code introduced by this PR. jscpd compared this branch against |
PR Review✅ No issues found. |
Deep Review✅ No critical issues found. This is a one-line, test-only change: a module-scope No P2 recommendations. Reviewers (4): correctness, testing, maintainability, project-standards. Testing gaps: The file-wide timeout raises the fail-fast ceiling for every test in the file, not just the slow first render — a future hang or perf regression in any later test now takes up to 15s to surface instead of 5s. Acceptable and consistent with the established convention; worth keeping in mind if more tests are added to this file. |
E2E Test Results✅ All tests passed • 484 passed • 1 skipped • 1090s
Tests ran across 4 shards in parallel. |
Summary
The first
DashboardFiltersModalunit test intermittently hit Jest's 5s timeout on busy CI runners. It renders the Mantine modal and Combobox for the first time and types a name character by character, so the suite pays a one-time setup cost the other tests don't. No assertion or logic was failing.Raise the file's timeout to 15s with
jest.setTimeout(15_000), matching the pattern used by other slow UI test files. No test logic changed.Test plan
yarn ci:unit src/components/DashboardFiltersModal/__tests__/DashboardFiltersModal.test.tsx— 26 tests pass. Running one file with--coveragestill reports the expected repo-wide coverage threshold failures;--coverage=falseexits clean.yarn lint:fix— passes.No changeset: test-only change.
Note
Low Risk
Test-only timeout tweak with no production or assertion changes.
Overview
Raises this file's Jest timeout from the 5s default to 15s via
jest.setTimeout(15_000), with a short comment noting that the first test's Mantine modal/Combobox bootstrap and per-character typing can blow past 5s on sluggish CI.No test logic or assertions change — this only addresses intermittent timeout flakes, consistent with other slow UI suites in
packages/app(e.g.useOffsetPaginatedQuery,DBEditTimeChartFormtests).Reviewed by Cursor Bugbot for commit f81c9d3. Bugbot is set up for automated code reviews on this repo. Configure here.