cypress-documentation
cypress-documentation copied to clipboard
within() documentation contains an example for "temporarily escape" which does not work
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
- [X] PC
- [X] Mac
- [X] iPhone
- [X] iPad
- [X] Android Phone
- [X] 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.