I am using protractor , cucumberJS and chai-as-promised.
I have a message (bootstrap alert of angularJS) that appears in DOM when a button is clicked on. It completely disappears from DOM after 6000 ms.
I was trying to assert that the expected message string has appeared.
This is how it looks in the DOM :-
<div style="text-align: center; margin: 10px 0px;" class="alert alert-success ng-scope" ng-show="postOrSaveSuccMsg != ''" ng-if="postOrSaveSuccMsg != ''">
<a class="alert-link ng-binding" href="#">Archived successfully.</a>
</div>
Would anyone kindly help me with this?