diff --git a/tools/phantomjs/render.js b/tools/phantomjs/render.js index 77527585589..5e2e8f781ea 100644 --- a/tools/phantomjs/render.js +++ b/tools/phantomjs/render.js @@ -57,7 +57,7 @@ var rootScope = body.injector().get('$rootScope'); if (!rootScope) {return false;} - var panels = angular.element('div.panel:visible').length; + var panels = angular.element('plugin-component').length; return rootScope.panelsRendered >= panels; });