-
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
Cypress is referencing to the wrong aliased element #17470
Comments
@jennifer-shehane, would you mind looking into it, please? |
I believe this may be a duplicate of #7413 where there's a situation where the Can you try writing |
Yup, I've used And it does seem to be a duplicate of the issue you mentioned. Feel free to close this one. Thanks! |
Fore more details, see: cypress-io/cypress#17470 (comment) 889163781
By the way, I'll read about |
Fore more details, see: cypress-io/cypress#17470 (comment) 889163781
Current behavior
I have a test that has three aliases for three different elements. They are:
As you can see, every alias refers to a different element.
The last assertion of my test is:
And this exact step fails with the following error:
Desired behavior
Cypress should refer to the correct element through its alias, and the tests should pass.
Test code to reproduce
Here's a draft PR that changes a sample app and updates its test, which fails with a failure that seems to be a Cypress issue: wlsf82/live-tat-code-cov#3.
And here's the failing test result from GitHub Actions https://github.com/wlsf82/live-tat-code-cov/pull/3/checks?check_run_id=3148179864.
Cypress Version
I tried on versions 8.0.0 and 7.7.0, and the issue happens on both of them.
Other
I'm using a macOS Big Sur Version 11.5
The text was updated successfully, but these errors were encountered: