jeudi 21 novembre 2019

How to test for the content of tooltip or whether tooltip is getting generated or not?

This entire code is written in angular js and we are using jasmine for the unit testing. I need to write a unit test to check the content of the tooltip(includes in SomeMessage) if possible or whether the tooltip got generated/triggered or not. Thanks in advance.

<div class="outer_div">
        <span ng-if="SomeBooleanFlag">
            <span id="SpanId" class="SpanClass" ng-mouseover="SomeFunction($event)" tooltip-html-unsafe="" tooltip-placement="top" tooltip-trigger="mouseenter">
            </span>
        </span>
</div>

Aucun commentaire:

Enregistrer un commentaire