Visual regression testing with a screenshot API and pixel diffs in Python
Build a small visual regression check in Python. Capture full-page screenshots with an API, diff them against baselines with Pillow, ignore dynamic regions and fail on real layout changes. Tested, with the threshold mistake we hit and fixed.