https://cypress.io logo
Cypress test if element is covered
# i-need-help
f
Hello! I have a React Native app with expo and I am trying to write a test for my app. I want to check if a text behind a drawer is being hidden by the drawer. I could not find any properties that would change when the drawer appears using the web version of the app, except a translation css property. However, I could see that when I try to click the text behind the drawer, it throws an error saying that the text is being covered. What I want is an assertion of this covered element. How can it be done?
c
try is visible assertion on the element