Skip to content

docs overview visual baseline breaks whenever /docs changes length #1204

Done

Description

@athvin

tests/functional/marketing-docs.spec.ts › developer docs opening visual baseline @visual screenshots #overview, which is taller than the mobile viewport. Playwright stitches the element across scroll positions, and the sticky marketing header is painted into the image at an offset that depends on the page's total length. So any change to the generated reference (openapi.public.json schemas or operations) fails the mobile baselines, though the overview itself never changed. Seen on #1202, which only added response schemas.

Fix: hide or unstick the header for that screenshot (toHaveScreenshot({ style }), or position: static under a test attribute), or clip to the viewport, and then re-baseline once.

Activity

  1. added
    followup
    on Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    followup

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions