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
Go to UI Tests for the Cypress package
For the "Multiple snapshots" tests, verify that one (manual snapshot) has a custom name (accordion collapsed), one (manual snapshot) has autogenerated name (snapshot #2), and the last (automatic) snapshot has an autogenerated name (snapshot #3).
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 wascy.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
Go to UI Tests for the Cypress package
For the "Multiple snapshots" tests, verify that one (manual snapshot) has a custom name (
accordion collapsed
), one (manual snapshot) has autogenerated name (snapshot #2
), and the last (automatic) snapshot has an autogenerated name (snapshot #3
).[x] Author QA