chromaui / chromatic-e2e

Archive end-to-end tests to be replayed in Storybook and Chromatic
MIT License
13 stars 3 forks source link

Add support for viewports #105

Closed tevanoff closed 4 months ago

tevanoff commented 4 months ago

Issue: #

What Changed

Adds support for Playwright and Cypress viewports.

This works as follows:

The post-processing of the stories files has to happen after the pw/cy test run because tests run in isolation, and even possibly in separate sharded containers, so we only know which viewports a given test ran in after all is said and done.

How to test