Commit bda5d0d
authored
test: fix flaky localization tests with race conditions (#15777)
### What
Fixed two flaky localization tests that were consistently timing out in
CI.
<img width="1257" height="575" alt="Screenshot 2026-02-26 at 3 36 09 PM"
src="https://github.com/user-attachments/assets/50ab01d4-72b9-4022-a056-b0f6ae91b5f8"
/>
### Why
Tests were failing on slow networks (CI with CPU throttling) because
elements weren't fully ready for interaction after navigation or dynamic
rendering. Interactions were attempted before elements were hydrated,
causing timeouts.
### How
- Added `waitFor({ state: 'visible' })` before filling blocks field in
duplicate test
- Added `waitFor({ state: 'visible' })` after navigation in copy locale
overwrite test
- Removed unnecessary final `changeLocale` call that served no testing
purpose1 parent d5706ee commit bda5d0d
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
338 | 338 | | |
339 | 339 | | |
340 | 340 | | |
341 | | - | |
| 341 | + | |
| 342 | + | |
342 | 343 | | |
343 | 344 | | |
344 | 345 | | |
| |||
496 | 497 | | |
497 | 498 | | |
498 | 499 | | |
| 500 | + | |
499 | 501 | | |
500 | | - | |
501 | 502 | | |
502 | 503 | | |
503 | 504 | | |
| |||
0 commit comments