Skip to content

Commit

Permalink
Test shows manual snapshots both with and without custom names
Browse files Browse the repository at this point in the history
  • Loading branch information
skitterm committed Jan 18, 2024
1 parent 7723cdb commit 0909035
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/cypress/tests/cypress/e2e/manual-snapshots.cy.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
it('Manual Snapshots / multiple snapshots are taken', () => {
cy.visit('/manual-snapshots');
// manual snapshot with name
cy.takeSnapshot('accordion collapsed');
cy.contains("I'm an accordion, click me!").click();
cy.contains('I am hiding inside!').should('be.visible');
// manual snapshot without name
cy.takeSnapshot();
cy.contains("I'm an accordion, click me!").click();
cy.get('details').should('not.have.attr', 'open');
});

0 comments on commit 0909035

Please sign in to comment.