You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Retrying the .eq() call makes no sense because the DOM selection set is already set and fixed. You can retry .eq() until the sun goes down and the result never changes.
I can think of a couple ways to change to API allow for this. Maybe we could extend the options parameter to get() to include filters or something, so you could have code like:
But really, for these DOM filtering operations like last() and eq(), why would anybody not want the retry to happen on the get() call? Can we at least leave a bug open for tracking this issue.
Current behavior:
Chained query selectors only retry the last one before the assertion, as discussed in #1210 this is desired behavior. But this makes
.eq()
useless.Desired behavior:
We'd have a way to group together chained commands, where the commands all deal with DOM querying, into an atomic retry chain.
This code fails:
While this code succeeds:
Retrying the
.eq()
call makes no sense because the DOM selection set is already set and fixed. You can retry.eq()
until the sun goes down and the result never changes.I can think of a couple ways to change to API allow for this. Maybe we could extend the options parameter to
get()
to includefilters
or something, so you could have code like:Or a new "connector" command that explicitly says to retry at the start of the group, something like:
But really, for these DOM filtering operations like
last()
andeq()
, why would anybody not want the retry to happen on theget()
call? Can we at least leave a bug open for tracking this issue.Test code to reproduce
See above.
vs
Versions
Cypress 3.8.1, MacOS
The text was updated successfully, but these errors were encountered: