jaredpalmer / cypress-image-snapshot

Catch visual regressions in Cypress
MIT License
887 stars 160 forks source link

blackout: is not working for matchImageSnapshot #199

Open patryksniegucki opened 3 years ago

patryksniegucki commented 3 years ago

Hello, I can't use blackout for cypress-image-snapshot. For cy.screenshot is working, but for cypress-image-snapshot is not working.

cy.document().matchImageSnapshot('Dark theme first', { blackout: ['h2'] }); -is not working cy.document().screenshot('Dark theme first', { blackout: ['h2'] }); -is working

Do you know, why It doesn't want to work?

fayeez-tnl commented 2 years ago

I am also seeing the same thing. It works on some elements, but not others. It's quite strange.

fayeez-tnl commented 2 years ago

Having researched inside Cypress, it might be related: https://github.com/cypress-io/cypress/issues/5842