diff --git a/cypress/e2e/matchImageSnapshot.cy.ts b/cypress/e2e/matchImageSnapshot.cy.ts index 0d52a0b..6cf913b 100644 --- a/cypress/e2e/matchImageSnapshot.cy.ts +++ b/cypress/e2e/matchImageSnapshot.cy.ts @@ -7,6 +7,12 @@ it('no arguments', () => { cy.matchImageSnapshot() }) +it('works without element but with options passed', () => { + cy.matchImageSnapshot('without-element', { + blackout: ['.card-v14'], + }) +}) + it('name and selector', () => { cy.get('body').matchImageSnapshot('with custom name') }) diff --git a/cypress/snapshots/matchImageSnapshot.cy.ts/without-element.snap.png b/cypress/snapshots/matchImageSnapshot.cy.ts/without-element.snap.png new file mode 100644 index 0000000..0b8f337 Binary files /dev/null and b/cypress/snapshots/matchImageSnapshot.cy.ts/without-element.snap.png differ