Commit 9185685
committed
test(showcase-smoke): poll the chart box against a bounded deadline instead of a fixed 1500 ms wait (#7569)
The harness half of #7569, on the PM ruling that extended this claim's file
surface to the spec file after the premise check found the fixed wait was
never under `docs/qa/platform-checklist/`.
`page.waitForTimeout(1500)` followed by a single `boundingBox()` read
measured the recharts `ResponsiveContainer` initial-layout window, not the
product: across 3 fresh loads each drawing 5 real charts, polling every
400 ms returned null ONLY at t = 1.5 s — exactly where the suite measured —
and non-null on all 19 later samples; the same surfaces in isolation were
4/4 green. Both go, per the #7472 / #7409 shape: loop the predicate against
a deadline derived from the case's own budget, never sleep-then-read-once.
A bigger fixed number is not the fix.
Three properties kept deliberately:
- the last non-null box is retained, so a chart that IS laid out but
collapsed still fails on its width (#2616 D) instead of being reported as
"no chart SVG" — those are different defects and now read differently;
- `pollUntil` returns its last sample rather than throwing, so a timeout
fails as the assertion it belongs to, naming the surface;
- the `pageErrors` / placeholder / main-content assertions moved after the
waits, so the error-collection window is as long as the render actually
took rather than a fixed slice of it.
`nav-surfaces-render` is reconciled in the same commit: its knownGaps entry
recording this harness gap is removed now that the gap is closed, and its
revision-3 history entry covers both halves.1 parent 7c6ccaa commit 9185685
2 files changed
Lines changed: 83 additions & 17 deletions
File tree
- docs/qa/platform-checklist/areas
- examples/app-showcase/e2e
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
223 | | - | |
224 | | - | |
| 223 | + | |
225 | 224 | | |
226 | 225 | | |
227 | 226 | | |
228 | 227 | | |
229 | 228 | | |
230 | 229 | | |
231 | 230 | | |
232 | | - | |
| 231 | + | |
233 | 232 | | |
234 | 233 | | |
235 | 234 | | |
236 | 235 | | |
237 | 236 | | |
238 | 237 | | |
239 | 238 | | |
240 | | - | |
241 | | - | |
| 239 | + | |
| 240 | + | |
242 | 241 | | |
243 | 242 | | |
244 | 243 | | |
| |||
262 | 261 | | |
263 | 262 | | |
264 | 263 | | |
265 | | - | |
| 264 | + | |
266 | 265 | | |
267 | 266 | | |
268 | 267 | | |
| |||
275 | 274 | | |
276 | 275 | | |
277 | 276 | | |
278 | | - | |
| 277 | + | |
279 | 278 | | |
280 | 279 | | |
281 | 280 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
46 | 86 | | |
47 | 87 | | |
48 | 88 | | |
49 | 89 | | |
50 | 90 | | |
| 91 | + | |
51 | 92 | | |
52 | | - | |
53 | | - | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
54 | 102 | | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
55 | 123 | | |
56 | 124 | | |
57 | 125 | | |
58 | 126 | | |
59 | 127 | | |
60 | | - | |
61 | | - | |
| 128 | + | |
62 | 129 | | |
63 | 130 | | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
68 | 135 | | |
69 | 136 | | |
70 | | - | |
71 | | - | |
| 137 | + | |
| 138 | + | |
72 | 139 | | |
73 | 140 | | |
74 | 141 | | |
0 commit comments