within() documentation contains an example for "temporarily escape" which does not work
snoozbuster opened this issue · 0 comments
snoozbuster commented
Description
When I follow the instructions on https://docs.cypress.io/api/commands/within#Temporarily-escape, I expect them to work. They don't.
URL of Issue(s)
https://docs.cypress.io/api/commands/within#Temporarily-escape
Steps to replicate
- Go to the page
- Use the code example
- It doesn't work
Browser
any
Device
- PC
- Mac
- iPhone
- iPad
- Android Phone
- Android Tablet
Additional Information
The cy.root()
documentation explicitly states the opposite of this section. StackOverflow suggests variations on cy.document().its('body')
instead, which does work to escape the scope.