Commit c6a61f7
fix(test): Fix flaky SpansSearchBar onSearch test
Consolidate multiple separate userEvent calls into a single
userEvent.type call with inline {enter} sequences. The separate calls
caused flaky timeouts because each convenience API call created a new
user-event session, losing focus context between the filter key entry
and value entry steps. Using a single type call keeps the interaction
in one session, matching the pattern used in the SearchQueryBuilder's
own test suite.
Co-Authored-By: Claude Sonnet 4 <noreply@anthropic.com>
Made-with: Cursor1 parent d7f2bcd commit c6a61f7
File tree
1 file changed
+5
-2
lines changed- static/app/views/dashboards/widgetBuilder/buildSteps/filterResultsStep
1 file changed
+5
-2
lines changedLines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | 10 | | |
13 | 11 | | |
14 | 12 | | |
| |||
134 | 132 | | |
135 | 133 | | |
136 | 134 | | |
| 135 | + | |
137 | 136 | | |
138 | 137 | | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
139 | 142 | | |
140 | 143 | | |
141 | 144 | | |
| |||
0 commit comments