-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
changes of visibility in documentation #5867
base: main
Are you sure you want to change the base?
changes of visibility in documentation #5867
Conversation
👷 Deploy request for cypress-docs pending review.Visit the deploys page to approve it
|
|
### Visibility | ||
|
||
:::tip | ||
|
||
Most of the time you should check if element is not hidden. Some elements might be visible but not clickable or interactable. | ||
|
||
Cypress check visibility like browsers [checkVisibility](https://developer.mozilla.org/en-US/docs/Web/API/Element/checkVisibility). | ||
There are some exceptions from browser checks: | ||
- in `option` inside `select` visibility is determined by visibility of parent `select` element | ||
- if element is offscreen it is consided invisible | ||
- if parent cover element it is consided invisible | ||
In old browsers that not support [checkVisibility] check is hidden is performed. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are some grammatical and spelling errors in this section.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't comment in more detail because this PR is still in draft state.
Co-authored-by: Mike McCready <[email protected]>
Co-authored-by: Mike McCready <[email protected]>
Changes in cypress-io/cypress#29741 now updated in documentation.
This is still early so it should be done after this pull request date and version will be finally known.