cypress
cypress copied to clipboard
Update remaining queries to use _addQuery()
What would you like?
Following on from https://github.com/cypress-io/cypress/issues/23550 and https://github.com/cypress-io/cypress/issues/23804, we need to migrate the remaining commands that will be queries to use the new API. The remaining list is:
.children()
.closest()
.debug()
.document()
.eq()
.filter()
.first()
.focused()
.getCookie()
.getCookies()
.hash()
.invoke()
.its()
.last()
.location()
.next()
.nextAll()
.nextUntil()
.not()
.parent()
.parents()
.parentsUntil()
.pause()
.prev()
.prevAll()
.prevUntil()
.siblings()
.title()
.url()
.window()
While this looks like quite a huge list, the process is quite quick for most command -> query migrations, and in particular many of these are simply aliases - .last(), .first(), .next() etc are all defined in the same file and use the same logic underneath the hood.
Why is this needed?
No response
Other
No response