Skip to content
This repository was archived by the owner on Nov 3, 2019. It is now read-only.
This repository was archived by the owner on Nov 3, 2019. It is now read-only.

Unexpected Screenshots - Incorrectly Clipped or Only Partially Loaded #17

Description

@chrismohr

I'm seeing sporadically broken screenshots. Often they are clipped too small vertically, but other times the target component is only partially loaded.

It seems like a timing issue, because I'm able to mitigate the issue using puppeteer's slowMo config option. (20ms worked well for me, YMMV.)

I suspected that it could be related to our styleguide using an intersection observer to defer loading of components, but eliminating that did not help.

Versions:
"react-styleguidist": "7.0.14",
"react-styleguidist-visual": "0.5.0",

Clipped too short example:
Actual:
image

Expected:
image

Partially Loaded example:
Actual:
image

Expected:
image

Styleguidist Elements Visible
Actual
image

Expected
image

Activity

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions