Commit 00913cf
committed
Measure the overflow the long tags add, not the page's absolute overflow
The first version of this spec asserted zero horizontal overflow outright. In CI
it failed with 35px — the same figure `hidden-books.spec.ts:252` reports, on a
different spec and a different navigation, with the tag row stubbed to a known
state. The CI fixture's detail page carries ~35px of overflow from a cause that
has nothing to do with tags (notes/e2e-mobile-overflow-ci-triage.md).
An absolute assertion there is permanently red for an unrelated reason and says
nothing about the pills. Measure the delta instead: render the page with its own
tags, measure, swap in the pathological ones, measure again, and require the
long tags to add nothing. Pre-fix that delta is 323px (324 on mobile); post-fix
it is 0, on any baseline.
`pageOverflow` splits out of `assertNoHorizontalOverflow` so a spec can compare
two renders instead of asserting a global property.1 parent 7fdd6b6 commit 00913cf
2 files changed
Lines changed: 32 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
195 | | - | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
196 | 202 | | |
197 | 203 | | |
198 | 204 | | |
| |||
207 | 213 | | |
208 | 214 | | |
209 | 215 | | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
210 | 220 | | |
| 221 | + | |
211 | 222 | | |
212 | 223 | | |
213 | 224 | | |
214 | 225 | | |
215 | | - | |
| 226 | + | |
216 | 227 | | |
217 | 228 | | |
218 | 229 | | |
219 | 230 | | |
220 | 231 | | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
225 | 240 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
30 | 39 | | |
31 | 40 | | |
32 | 41 | | |
33 | | - | |
34 | 42 | | |
0 commit comments