chromaui / chromatic-e2e

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

Cypress: Manual snapshots #70

Closed skitterm closed 6 months ago

skitterm commented 6 months ago

Issue: #AP-4059

What Changed

Manual snapshots in Cypress are now done with cy.takeSnapshot() to be consistent with changes to the manual snapshot API for Playwright (formerly it was cy.takeChromaticArchive().

Also added the ability to supply a name for the manual snapshot (cy.takeSnapshot({ name: 'some-great-name' })), which gives Cypress feature parity with Playwright in terms of manual snapshots.

Added a visual test for manual snapshots for both Playwright and Cypress.

How to test

skitterm commented 6 months ago

@tevanoff I reverted back to the string-as-argument approach, ready for your review!