Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
6 tasks done
snoozbuster opened this issue Oct 6, 2023 · 0 comments
Open
6 tasks done

Comments

@snoozbuster
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant