How can I make Protractor NOT wait for $timeout?

后端 未结 2 1712
有刺的猬
有刺的猬 2021-01-12 13:22

I\'m testing my angular application with Protractor. Once the user is logged in to my app, I set a $timeout to do some job in one hour (so if the user was logged-in in 13:00

2条回答
  •  暖寄归人
    2021-01-12 14:01

    The solution will be to flush active timeouts (as @MBielski mentioned it in comments), but original flush method itself is available only in anuglar-mocks. To use angular-mocks directly you will have to include it on the page as a

提交回复
热议问题