You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(components,e2e): stop long titles overhanging their card, de-flake the themed axe scan
Three cards overhung with real content while the demo fixtures fit. The angel
number hero put its text column beside the numeral as a flex item with
min-width auto, so the live title for 1111, Spiritual Awakening, Manifestation,
and Alignment, pushed the hero 5px past the card on a phone. It surfaced on a
WordPress page, not here, because the captured fixture title is shorter.
Choghadiya was the same class one level down: a bare 1fr track keeps a
min-content floor, so a long muhurta name widened the tile and dragged the
header and the grid out with it. minmax(0, 1fr) plus a wrapping name column
fixes the cause; the header was only where it showed.
The layout gate now also runs with the title-ish fields inflated, because
fixtures are whatever a sample call happened to return and a field that is
short in the capture can be long in production. That is what caught the
choghadiya case.
The themed axe scan was failing about one run in three on WebKit and passing on
retry, which read as noise and was not. data-theme is set synchronously but the
token cascade reaches the shadow trees a frame later, so axe sampled dark text
on a still-light tile and reported contrast 1.04. setTheme now polls the exact
invariant axe is about to measure, on the element it measures it on. 78 e2e
green across chromium, firefox and webkit with no retries.
* The same overflow check, but against LONG content rather than the demo fixtures.
102
+
*
103
+
* @remarks
104
+
* The fixtures are whatever a sample call happened to return, so a field can be short in the capture and long in production. `roxy-angel-number-card` shipped a hero that overhung its card by 5px for number 1111, whose live title is "Spiritual Awakening, Manifestation, and Alignment", while the shorter captured title fit and the gate stayed green. It only surfaced on a real WordPress page.
105
+
*
106
+
* Rewriting every fixture is not the fix. Inflating the title-ish fields in place covers the whole library in one pass and keeps the fixtures honest about what the API actually returned.
107
+
*/
108
+
test('no section overflows when its text fields are long',async({ page })=>{
0 commit comments