Commit 309800d
committed
fix: wait for debounced focus effect to settle in ChatView test
The 'does not grab focus when follow-up question presented' test was
flaky on Windows due to timing issues with the 50ms debounced focus
effect. On Windows, the test could clear mockFocus before the initial
debounced effect fired, causing the effect to fire with stale state
after the clear.
Added explicit wait (100ms) after initial render to ensure the
debounced focus effect has completed before clearing mocks.1 parent 77a0232 commit 309800d
1 file changed
+5
-0
lines changedLines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
490 | 490 | | |
491 | 491 | | |
492 | 492 | | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
493 | 498 | | |
494 | 499 | | |
495 | 500 | | |
| |||
0 commit comments