Skip to content

Conversation

@AMS777
Copy link

@AMS777 AMS777 commented Feb 11, 2021

Screenshot settings for toMatchImageSnapshot must be inside the screenshotConfig property:

cy.get('.element')
  .toMatchImageSnapshot({
    screenshotConfig: {
      clip: { x: 0, y: 0, width: 100, height: 100 },
    },
  });

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants