-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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 area is offset from where it should be when upgrading to 9.7.0 from 9.5.4 #22173
Comments
Hey @sandy-farnsworth. Thank you for creating an issue! Would you be able to provide a reproduction to demonstrate the issue you are running into? I created a reproduction repository here that you are more than welcome to use. I was not able to reproduce it. It looks like you are using something similar to Google Drive, where I tried to create something similar. Here is the screenshot I received: |
@AtofStryker I will do that. Did you try with multiple elements? |
I did not, but what I will do right now is add a few other docs to the folder to help with your test case. |
@sandy-farnsworth I added two more docs to the list. Hopefully this helps! |
Thank you. |
I am still investigating the issue. I found that when I run my visual tests in the cypress test runner, that blackout is working properly. When I run my tests through CI, which uses the Cypress docker container for 9.7.0, the blackout area is offset. I am trying to track down what is causing that difference. |
I have noticed the same issue after upgrading. It appears to due to using jQuery's The current workaround in my project is to set |
@jordanhennell I wonder if some of this got introduced in |
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.
|
@jordanhennell I got the same results from your test case. Thank you for providing that! Definitely a regression/bug. |
reproduction is up to date here |
Thank you @jordanhennell ! |
The code for this is done in cypress-io/cypress#22756, but has yet to be released. |
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
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:
I am attempting to upgrade to 9.7.0, and the wrong area is being blacked out. The tests haven't changed.
Desired behavior
Blackout the specified area.
Test code to reproduce
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.
The text was updated successfully, but these errors were encountered: