我目前正在使用e2e
和Protractor
进行Angularjs
测试。我在这里使用了测试项目:https://github.com/mbcooper/ProtractorExample。
不幸的是,Protractor在Angularjs代码中抱怨了timeout
的4个测试失败了。
这是其中一个失败测试的输出:
Timed out waiting for asynchronous Angular tasks to finish after 11
seconds. This may be because the current page is not an Angular
application.
Please see the FAQ for more details: https://github.com/angular/protractor/blob/master/docs/timeouts.md#waiting-for-angular
While waiting for element with locator - Locator: By(css selector, *[id="searchButton"]).
The following tasks were pending:
- $timeout: function (){X(k);k=[]}
这里有一个关于pastebin的完整日志: https://pastebin.com/5DhDDRGb
我很感激这里的任何帮助。