Commit 9ca5cda
authored
test: fix flaky lexical e2e navigation timeouts and drawer clicks (#15694)
### What
Fixed flaky lexical e2e tests that were timing out on navigation in CI:
**test/lexical/collections/Lexical/e2e/main/e2e.spec.ts:**
- `ensure lexical fields in blocks have correct value when moving
blocks`
- `select decoratorNodes`
- `ensure newly created upload node has fields, saves them, and loads
them correctly`
- `Preserve indent and text-align when converting Lexical <-> HTML`
**test/lexical/collections/RichText/e2e.spec.ts:**
- `should only list RTE enabled collections in link drawer`
- `should only list non-upload collections in relationship drawer`
- `should populate relationship link`
- `should open upload document drawer from read-only field`
- `should populate new links`
**test/lexical/collections/Lexical/e2e/blocks/e2e.spec.ts:**
- `ensure individual inline blocks in lexical editor within a block have
initial state on initial load`
- `nested lexical fields display label and description`
- `ensure inline blocks restore their state after undoing a removal`
<img width="1444" height="582" alt="Screenshot 2026-02-19 at 2 02 07 PM"
src="https://github.com/user-attachments/assets/0009c55a-1dd9-4e54-82ca-2f989ef78e70"
/>
<img width="1316" height="310" alt="Screenshot 2026-02-19 at 2 37 35 PM"
src="https://github.com/user-attachments/assets/3828afce-3828-4894-bc6e-9899e7caaa3e"
/>
<img width="1807" height="586" alt="Screenshot 2026-02-19 at 3 42 29 PM"
src="https://github.com/user-attachments/assets/fd30ee9d-d484-4190-ad6a-553e3cb103b8"
/>
### Why
List view link clicks were timing out in CI after 30 seconds. Clicks
weren't reliably triggering navigation in slow environments. The upload
node test also tried clicking drawer togglers before they were visible,
causing page crashes.
### How
- Replaced link clicks with `goToFirstCell` helper in
`navigateToLexicalFields` and affected tests
- Added `waitForFormReady` to ensure forms are hydrated before
interaction
- Added explicit `waitFor({ state: 'visible' })` for drawer toggler
buttons before clicking1 parent 4af5a85 commit 9ca5cda
File tree
4 files changed
+110
-30
lines changed- test/lexical
- collections
- Lexical/e2e
- blocks
- main
- RichText
4 files changed
+110
-30
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| 28 | + | |
27 | 29 | | |
28 | 30 | | |
29 | | - | |
30 | | - | |
31 | 31 | | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| |||
1274 | 1275 | | |
1275 | 1276 | | |
1276 | 1277 | | |
1277 | | - | |
1278 | | - | |
| 1278 | + | |
| 1279 | + | |
| 1280 | + | |
| 1281 | + | |
| 1282 | + | |
| 1283 | + | |
1279 | 1284 | | |
1280 | 1285 | | |
1281 | 1286 | | |
| |||
1293 | 1298 | | |
1294 | 1299 | | |
1295 | 1300 | | |
| 1301 | + | |
| 1302 | + | |
| 1303 | + | |
1296 | 1304 | | |
1297 | 1305 | | |
1298 | 1306 | | |
1299 | 1307 | | |
1300 | | - | |
1301 | | - | |
| 1308 | + | |
| 1309 | + | |
1302 | 1310 | | |
1303 | 1311 | | |
1304 | 1312 | | |
| |||
1452 | 1460 | | |
1453 | 1461 | | |
1454 | 1462 | | |
1455 | | - | |
1456 | | - | |
| 1463 | + | |
| 1464 | + | |
| 1465 | + | |
| 1466 | + | |
| 1467 | + | |
1457 | 1468 | | |
1458 | 1469 | | |
1459 | 1470 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | | - | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| |||
54 | 55 | | |
55 | 56 | | |
56 | 57 | | |
57 | | - | |
58 | | - | |
59 | | - | |
| 58 | + | |
| 59 | + | |
60 | 60 | | |
61 | | - | |
62 | | - | |
63 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| |||
607 | 607 | | |
608 | 608 | | |
609 | 609 | | |
610 | | - | |
| 610 | + | |
611 | 611 | | |
612 | 612 | | |
613 | | - | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
614 | 616 | | |
615 | 617 | | |
616 | 618 | | |
| |||
649 | 651 | | |
650 | 652 | | |
651 | 653 | | |
652 | | - | |
| 654 | + | |
653 | 655 | | |
654 | 656 | | |
655 | | - | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
656 | 660 | | |
657 | 661 | | |
658 | 662 | | |
| |||
1409 | 1413 | | |
1410 | 1414 | | |
1411 | 1415 | | |
1412 | | - | |
| 1416 | + | |
| 1417 | + | |
| 1418 | + | |
| 1419 | + | |
| 1420 | + | |
| 1421 | + | |
| 1422 | + | |
| 1423 | + | |
1413 | 1424 | | |
1414 | 1425 | | |
1415 | 1426 | | |
| |||
1438 | 1449 | | |
1439 | 1450 | | |
1440 | 1451 | | |
1441 | | - | |
1442 | | - | |
| 1452 | + | |
| 1453 | + | |
| 1454 | + | |
| 1455 | + | |
| 1456 | + | |
| 1457 | + | |
1443 | 1458 | | |
1444 | 1459 | | |
1445 | 1460 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
| 14 | + | |
13 | 15 | | |
14 | | - | |
15 | 16 | | |
| 17 | + | |
16 | 18 | | |
17 | 19 | | |
18 | 20 | | |
| |||
53 | 55 | | |
54 | 56 | | |
55 | 57 | | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
| 58 | + | |
| 59 | + | |
61 | 60 | | |
62 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| 87 | + | |
87 | 88 | | |
88 | 89 | | |
89 | 90 | | |
| |||
111 | 112 | | |
112 | 113 | | |
113 | 114 | | |
| 115 | + | |
114 | 116 | | |
115 | 117 | | |
116 | 118 | | |
| |||
194 | 196 | | |
195 | 197 | | |
196 | 198 | | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
197 | 230 | | |
198 | 231 | | |
199 | 232 | | |
| |||
1049 | 1082 | | |
1050 | 1083 | | |
1051 | 1084 | | |
| 1085 | + | |
| 1086 | + | |
| 1087 | + | |
| 1088 | + | |
1052 | 1089 | | |
1053 | 1090 | | |
1054 | 1091 | | |
| |||
1176 | 1213 | | |
1177 | 1214 | | |
1178 | 1215 | | |
| 1216 | + | |
| 1217 | + | |
| 1218 | + | |
| 1219 | + | |
| 1220 | + | |
| 1221 | + | |
| 1222 | + | |
| 1223 | + | |
| 1224 | + | |
| 1225 | + | |
| 1226 | + | |
| 1227 | + | |
| 1228 | + | |
| 1229 | + | |
| 1230 | + | |
| 1231 | + | |
1179 | 1232 | | |
1180 | 1233 | | |
1181 | 1234 | | |
| |||
0 commit comments