We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
For a11y reasons some elements have the following css class:
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
Those are not visible in the browser. Still cypress result true if I check for should('be.visible').
true
should('be.visible')
I want to be able to use cypress to check if a text is really visible.
Add the mentioned css class to any element and check for it's visibility. It is not visible, but will be found as visible.
3.1.5, Windows 10, Chrome
The text was updated successfully, but these errors were encountered:
I believe this is a duplicate of #1178
Sorry, something went wrong.
No branches or pull requests
Current behavior:
For a11y reasons some elements have the following css class:
Those are not visible in the browser.
Still cypress result
true
if I check forshould('be.visible')
.Desired behavior:
I want to be able to use cypress to check if a text is really visible.
Steps to reproduce: (app code and test code)
Add the mentioned css class to any element and check for it's visibility.
It is not visible, but will be found as visible.
Versions
3.1.5, Windows 10, Chrome
The text was updated successfully, but these errors were encountered: