angularjs - Protractor: waiting for an element to become visible -
i have directive in show pop-up after 10 seconds (using settimeout), , test appears correctly. don't want have test wait actual 10 seconds. how can false clock moving forward?
i tried using jasmine's clock.tick()
this:
jasmine.clock.usemock(); expect(modal.isdisplayed()).tobe(false); jasmine.clock.tick(10001); expect(modal.isdisplayed()).tobe(true);
but doesn't work. think i'm missing something.
angularjs jasmine protractor
No comments:
Post a Comment