mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-08 12:32:43 +00:00
The Pixel-5 tick-density spec waited on `.recharts-xAxis` to be visible but Playwright kept resolving the SVG axis as `hidden`. On a 393×851 viewport the dashboard ships several stacked tiles above the first chart card, so the bottom-positioned axis sits below the initial fold when the test starts probing. Locate the first chart card by its range-tab data-slot, scroll it into view so Recharts' ResponsiveContainer measures a non-zero parent, then wait for an axis tick label (not the wrapper `<g>`) to be visible before counting ticks. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>