-
-
Notifications
You must be signed in to change notification settings - Fork 68
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
Tests failing locally in open/headed mode #236
Comments
Yes, I do think there is not a problem, especially for this plugin which is trying to take the value through the cypress UI that renders the app in iframe. I actually don't know how to make it more stable, so using closeTo is a way to go. If you have any idea please provide a PR :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Many tests in are failing in
click.spec.ts
,hover.spec.ts
, andmouse.spec.ts
when I run them locally in the Cypress Test Runner using theyarn run cypress open
command. Please see the screenshots below.All tests pass in headless mode.
The reason for the headed failures are that the top offset of the element is expected to be an integer but the actual value has a decimal of usually 0.1875.
Is this issue reproducible? Is it a serious issue?
The fix seems quite easy and works well for me locally. We can just change the Cypress comparison to allow for the small deviation. It seems like a relatively safe change.
The text was updated successfully, but these errors were encountered: