Commit 02a2b71
fix(test): Fix flaky EventsSearchBar has: dropdown test
The test timed out at 5000ms on slow CI machines because the
SearchQueryBuilder component's debounce timers (300ms) and complex
rendering combined to push execution time past the threshold.
Add missing mock for /organizations/org-slug/tags/ endpoint, use
jest.useFakeTimers() with userEvent.setup({advanceTimers}) to
eliminate real timer delays, and use findByRole for the edit button
to properly await its appearance after paste.
Co-Authored-By: Claude Sonnet 4 <noreply@anthropic.com>
Made-with: Cursor1 parent d4ad198 commit 02a2b71
File tree
1 file changed
+27
-1
lines changed- static/app/views/dashboards/widgetBuilder/buildSteps/filterResultsStep
1 file changed
+27
-1
lines changedLines changed: 27 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
5 | 11 | | |
6 | 12 | | |
7 | 13 | | |
| 14 | + | |
8 | 15 | | |
9 | 16 | | |
10 | 17 | | |
| |||
25 | 32 | | |
26 | 33 | | |
27 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
28 | 42 | | |
29 | 43 | | |
30 | 44 | | |
| |||
64 | 78 | | |
65 | 79 | | |
66 | 80 | | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
67 | 85 | | |
68 | 86 | | |
69 | 87 | | |
| |||
97 | 115 | | |
98 | 116 | | |
99 | 117 | | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
100 | 122 | | |
101 | 123 | | |
102 | 124 | | |
| |||
133 | 155 | | |
134 | 156 | | |
135 | 157 | | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
136 | 162 | | |
137 | 163 | | |
0 commit comments