0

I have the following e2e test:

expect(element('a[name="prevStepButton"]:visible').count()).toEqual(1);

On the following template:

<a class="btn btn-primary" name="prevStepButton" ng-show="wizardstep > 1" 
 ng-click="prevStep()">Previous</a>

Where $scope.wizardstep = 2

Unfortunately the expectation is always 0.

Anyone any idea what is wrong with this code/test?

Geert Van Laethem
  • 717
  • 1
  • 8
  • 23

1 Answers1

0

Have you tried putting browser().navigateTo('/'); before your expect?