cypress-io/cypress-documentation

within() documentation contains an example for "temporarily escape" which does not work

snoozbuster opened this issue · 0 comments

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

  1. Go to the page
  2. Use the code example
  3. 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.