From 3c913df28eb390bc2746b05b4911a62b76593d8b Mon Sep 17 00:00:00 2001 From: Jacques Erasmus Date: Mon, 27 May 2019 08:23:17 +0000 Subject: Add changelog entry Added a changelog entry for the feature --- spec/frontend/clusters/clusters_bundle_spec.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'spec/frontend/clusters/clusters_bundle_spec.js') diff --git a/spec/frontend/clusters/clusters_bundle_spec.js b/spec/frontend/clusters/clusters_bundle_spec.js index 73897107f67..66b22fa2681 100644 --- a/spec/frontend/clusters/clusters_bundle_spec.js +++ b/spec/frontend/clusters/clusters_bundle_spec.js @@ -209,6 +209,22 @@ describe('Clusters', () => { expect(cluster.errorContainer.classList.contains('hidden')).toBeFalsy(); }); }); + + describe('when cluster is unreachable', () => { + it('should show the unreachable warning container', () => { + cluster.updateContainer(null, 'unreachable'); + + expect(cluster.unreachableContainer.classList.contains('hidden')).toBe(false); + }); + }); + + describe('when cluster has an authentication failure', () => { + it('should show the authentication failure warning container', () => { + cluster.updateContainer(null, 'authentication_failure'); + + expect(cluster.authenticationFailureContainer.classList.contains('hidden')).toBe(false); + }); + }); }); describe('installApplication', () => { -- cgit v1.2.1