jaredpalmer / cypress-image-snapshot

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

Blackout detect wrong location #221

Open thaibm opened 2 years ago

thaibm commented 2 years ago

The selector is correct but it detects and fills the wrong position.

cy.matchImageSnapshot('trade-package-list', {
    blackout: ['.tp-list', 'app-horizontal-options .number-badge'],
});

image image

fayeez-tnl commented 2 years ago

I think this is a known issue inside Cypress' screenshot API : https://github.com/cypress-io/cypress/issues/5842