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
fix: .contains() selects proper elements when inside a <form> #25038
Conversation
Thanks for taking the time to open a PR!
|
I tested this in conjunction with #25035 before pulling it into its own branch / PR, so they definitely work cleanly together. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are there issues with scoping form inputs to the withinsubject and then running commands within that?
…lement to findAllShadowRoots
Scoping .contains() to a I tend not to like writing multiple tests where there are multiple ways a user could encounter the same regression. |
User facing changelog
In 12.0.0, we had a regression around
.contains()
where if the subject was a<form>
element, it would only consider the first<input>
element in the form, rather than every child. This PR fixes the regression.Additional details
In addition to the added driver test, this test demonstrates the issue "in the wild":
Steps to test
How has the user experience changed?
PR Tasks
cypress-documentation
?type definitions
?