diff --git a/src/plugins/kibana/public/dashboard/index.html b/src/plugins/kibana/public/dashboard/index.html index 76b80411c463..8b4021ab8053 100644 --- a/src/plugins/kibana/public/dashboard/index.html +++ b/src/plugins/kibana/public/dashboard/index.html @@ -52,6 +52,7 @@ Options +
diff --git a/src/plugins/kibana/public/discover/index.html b/src/plugins/kibana/public/discover/index.html index 04dd55c4d2a3..7989535a6ed2 100644 --- a/src/plugins/kibana/public/discover/index.html +++ b/src/plugins/kibana/public/discover/index.html @@ -40,6 +40,7 @@ Share +
Refresh +
{ + ngMock.module('kibana'); + ngMock.inject(function ($compile, $rootScope) { + compile = function (hasActiveConnections) { + $rootScope.chrome = { + httpActive: (hasActiveConnections ? [1] : []) + }; + const $el = $(''); + $rootScope.$apply(); + $compile($el)($rootScope); + return $el; + }; + }); + + }); + + it('injects a loading .spinner into the element', function () { + const $el = compile(); + expect($el.find('.spinner')).to.have.length(1); + }); + it('applies removes ng-hide class when there are connections', function () { + const $el = compile(true); + expect($el.find('.spinner.ng-hide')).to.have.length(0); + }); +}); diff --git a/src/ui/public/chrome/chrome.html b/src/ui/public/chrome/chrome.html index 465b9525c5fd..a5fb0e84a885 100644 --- a/src/ui/public/chrome/chrome.html +++ b/src/ui/public/chrome/chrome.html @@ -1,6 +1,6 @@
-