Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-03-26 21:08:03 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-03-26 21:08:03 +0300
commitdc003cd08b4cb72fecbb03aa978ea0c53c03aeb4 (patch)
tree5e77ce228c33619201ac6706b9789d4a2eed2a3b /spec/frontend/clusters
parente80e0dd64fbb04f60394cb1bb08e17dbcb22b8ce (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/clusters')
-rw-r--r--spec/frontend/clusters/components/applications_spec.js19
1 files changed, 19 insertions, 0 deletions
diff --git a/spec/frontend/clusters/components/applications_spec.js b/spec/frontend/clusters/components/applications_spec.js
index 3e25c825fe8..db5d5c84820 100644
--- a/spec/frontend/clusters/components/applications_spec.js
+++ b/spec/frontend/clusters/components/applications_spec.js
@@ -15,6 +15,9 @@ describe('Applications', () => {
beforeEach(() => {
Applications = Vue.extend(applications);
+
+ gon.features = gon.features || {};
+ gon.features.managedAppsLocalTiller = false;
});
afterEach(() => {
@@ -156,6 +159,22 @@ describe('Applications', () => {
});
});
+ describe('Helm application', () => {
+ describe('when managedAppsLocalTiller enabled', () => {
+ beforeEach(() => {
+ gon.features.managedAppsLocalTiller = true;
+ });
+
+ it('does not render a row for Helm Tiller', () => {
+ vm = mountComponent(Applications, {
+ applications: APPLICATIONS_MOCK_STATE,
+ });
+
+ expect(vm.$el.querySelector('.js-cluster-application-row-helm')).toBeNull();
+ });
+ });
+ });
+
describe('Ingress application', () => {
describe('with nested component', () => {
const propsData = {