Skip to content

Blackout area is offset from where it should be when upgrading to 9.7.0 from 9.5.4 #22173

@sandy-farnsworth

Description

@sandy-farnsworth

Current behavior

Blackout is not blacking out the specified area in 9.7.0. It seems to be trying, but the blacked out area is offset from where it should be.

This is my blackout area in Cypress 9.5.4:
blackout_9 5 4

I am attempting to upgrade to 9.7.0, and the wrong area is being blacked out. The tests haven't changed.
blackout_9 7 0

Desired behavior

Blackout the specified area.

Test code to reproduce

     cy.findByAutomationID(`drive`)
        .should(`be.visible`)
        .matchImageSnapshot({ blackout: [`[data-automation-id="drive-item-modified-date"]`] })

Cypress Version

9.7.0

Other

I also tried one or two Cypress 9.6 versions and saw the same behavior there. I am unable to upgrade past 9.5.4 since it breaks my visual tests that use blackout. It seems like blackout is still functioning, it's just blacking out the wrong area on the page. These tests have been working properly with all versions of Cypress since July, 2021.
The tests work great in Cypress 9.5.4.

Metadata

Metadata

Assignees

Labels

ReproducibleCan be reproducedtopic: cy.originProblems or enhancements related to cy.origin commandtype: bugtype: regressionA bug that didn't appear until a specific Cy version release

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions