Commit 5aa11b45 by Carl Bergquist

Merge pull request #3400 from counsyl/wait-for-dashboard-render

Wait for all panels to render in PhantomJS
parents c48da9b5 a1f10357
......@@ -36,7 +36,8 @@ page.open(params.url, function (status) {
var canvas = page.evaluate(function() {
var body = angular.element(document.body); // 1
var rootScope = body.scope().$root;
return rootScope.performance.panelsRendered > 0;
var panels = angular.element('div.panel').length;
return rootScope.performance.panelsRendered >= panels;
});
if (canvas || tries === 1000) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment