Skip to content

Commit

Permalink
test: add test to validate no subject and options
Browse files Browse the repository at this point in the history
  • Loading branch information
simonsmith committed Dec 29, 2023
1 parent f2472ed commit 5f91c1f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cypress/e2e/matchImageSnapshot.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')
})
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 5f91c1f

Please sign in to comment.