角度版本: 1.5.8/量角器版本:5.2.2
我在页面上实际做什么,我正在单击要加载图表的按钮。
我实际上能够在页面上看到该元素...
- Error: Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL.
at ontimeout (timers.js:466:11)
at tryOnTimeout (timers.js:304:5)
-
Failed: Timed out waiting for asynchronous Angular tasks to finish after 36 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, .fullscreen-close-btn.visible).
基本上,尽我所能谷歌这个,这与角度有关
The following tasks were pending:
- $timeout: function (){var b;if(m=null,!a.equals(q,l)){b=a.copy(l),a.forEach(q,function(c,d){a.isDefined(c)&&"$"!==d[0]&&(p.setItem(e+d,f(c)),delete b[d])});for(var c in b)p.removeItem(e+c);l=a.copy(q)}}
我似乎无法理解是什么触发了这种情况。据我在谷歌上挖掘这个,我唯一能找到的与此相关的是:这。
我该如何解决这个问题?
更新
波纹管问题是由ngStorage库引起的!有一个叉子可以替换该叉子的$timeout...
https://github.com/gsklee/ngStorage/issues/246
但是,我的问题尚未解决。它在完全相同的点上失败,具有完全相同的错误,只是$timeout行现在消失了。
$timeout.flush();
就是你需要的。