simonsmith/cypress-image-snapshot

How to blackout 2 different elements on page?

Closed this issue · 1 comments

I want to do something like this

  cy.matchImageSnapshot('MainPage',{
      blackout: ['.home-background-slice'],
      blackout: ['.chat'],
      blackout: ['.ads'],
    });

Thank you

You can do this by using more than one selector

https://docs.cypress.io/api/cypress-api/screenshot-api