There's a hidden div on my web page that is controlled by an ng-if directive. I'm looking to create a test that confirms the presence of the element only when it should be visible. If the condition set by ng-if is not met, the element is completely removed from the DOM.
I attempted to use an if statement in Protractor that checks the same condition as ng-if and then expects a value only if the condition is true. However, it seems like Protractor doesn't recognize non-DOM elements, which is understandable but has left me unsure about how to proceed. Any suggestions?