Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blackout parameter not working when combined with filename #262

Open
davidg1975 opened this issue Dec 2, 2022 · 0 comments
Open

Blackout parameter not working when combined with filename #262

davidg1975 opened this issue Dec 2, 2022 · 0 comments

Comments

@davidg1975
Copy link

I am using @simonsmith/cypress-image-snapshot v5.0.5 with Cypress 11.2.0 to test an angular application.

When I use the command:
cy.root().matchImageSnapshot( {blackout: ['.last-synced','.line-2-inner-container'] })

I get the snapshot as below, note the 2 blacked-out areas:
Clean install initial Visual Tests -- Compare clean Dashboard page snap

However, if I add a file name to the command:
cy.root().matchImageSnapshot('myCustomFileName', {blackout: ['.last-synced','.line-2-inner-container'] })

I get an image called (correctly) myCustomFileName.snap.png, but which is missing the blacked out areas:
myCustomFileName snap

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

No branches or pull requests

1 participant