diff options
author | Jacques Erasmus <jerasmus@gitlab.com> | 2019-05-27 08:23:17 +0000 |
---|---|---|
committer | Sean McGivern <sean@gitlab.com> | 2019-05-27 08:23:17 +0000 |
commit | 3c913df28eb390bc2746b05b4911a62b76593d8b (patch) | |
tree | d4df3cce34ea114b6c8ba99ffcccf8e3dd13e735 /spec/frontend | |
parent | 340ea9aa9dfc412bf7c4335a11b81c08e8330655 (diff) | |
download | gitlab-ce-3c913df28eb390bc2746b05b4911a62b76593d8b.tar.gz |
Add changelog entry
Added a changelog entry for the feature
Diffstat (limited to 'spec/frontend')
-rw-r--r-- | spec/frontend/clusters/clusters_bundle_spec.js | 16 |
1 files changed, 16 insertions, 0 deletions
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', () => { |