Skip to content

Visual Testing of Examples - Request for JSON API Endpoint #17

@lucasavila00

Description

@lucasavila00

Visual Snapshot Tests are a great feature to use when working with storybooks.

I feel surface catalogue could work really well with that.

One great way to accomplish that is using the awesome jest-image-snapshot

I created a sample MR of what it would take to have something like that working with Catalogue: surface-ui/surface_bootstrap#9

If the approach of using jest-image-snapshot + puppeteer was taken, surface_catalogue should expose a JSON endpoint with all available examples, and their metadata, I think, and the jest script could handle all else.


If catalogue were to recommend some form of CI tests using the snapshots, I believe it should recommend using a docker image with puppetter and chrome (like the ones provided by browserless), to control system fonts and browser version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions