question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:14 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
sandy-farnsworthcommented, Jun 20, 2022

Thank you @jordanhennell !

2reactions
jordanhennellcommented, Jun 17, 2022

Indeed it does look to have been introduced when adding cross origin support. Got a small repro here, where it’s attempting to blackout the English label.

cy.visit("https://www.wikipedia.org/")
    .get('.central-featured') // centered (margin: 0 auto) globe with languages around it
    .screenshot({
        blackout: ['[lang=en]']
    });

Wikipedia English Label Blackout

Read more comments on GitHub >

github_iconTop Results From Across the Web

Changelog - Cypress Documentation
Fixed an issue with Angular Component Testing where urls within SASS/SCSS files were not being correctly resolved which could result in incomplete styling....
Read more >
Upgrade from ONTAP 9.3 directly to 9.7 - NetApp Community
I need to upgrade a FAS2554 (with 2 node HA cluster switchless), that is running 9.3P21 to 9.7, since I buy a new...
Read more >
MLB blackout restrictions, explained: Map shows why you can ...
Here's what to know about MLB's blackout restrictions in 2022, including the map of regional broadcasts.
Read more >
9.5P4 upgrade to 9.7P10 - Last upgrade before support expires
Hello all. Running a FAS8200 with two controllers. Both are currently running 9.5P4. Our original 3 year support with netapp is going to ......
Read more >
cypress: Versions - Openbase
Previously the command would incorrectly fail with a syntax error. ... Upgraded the Chromium browser version used during cypress run and when selecting ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found