diff options
| author | Filipa Lacerda <filipa@gitlab.com> | 2018-05-25 15:45:08 +0200 |
|---|---|---|
| committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2018-05-25 17:16:42 +0300 |
| commit | 1d6adc27c5c2cec7d62fa4e659e6d5b34888e6a1 (patch) | |
| tree | 27df3173b0dba91315052376085ca0e634034e08 /spec/javascripts/clusters | |
| parent | 2ca00a360507055f49819ec2c6db7e9a2de15b5f (diff) | |
| download | gitlab-ce-1d6adc27c5c2cec7d62fa4e659e6d5b34888e6a1.tar.gz | |
Handle disabled button state in backend
Diffstat (limited to 'spec/javascripts/clusters')
| -rw-r--r-- | spec/javascripts/clusters/components/application_row_spec.js | 10 | ||||
| -rw-r--r-- | spec/javascripts/clusters/components/applications_spec.js | 7 |
2 files changed, 4 insertions, 13 deletions
diff --git a/spec/javascripts/clusters/components/application_row_spec.js b/spec/javascripts/clusters/components/application_row_spec.js index fed8f145ef1..c83cbe90a57 100644 --- a/spec/javascripts/clusters/components/application_row_spec.js +++ b/spec/javascripts/clusters/components/application_row_spec.js @@ -211,16 +211,6 @@ describe('Application Row', () => { expect(eventHub.$emit).not.toHaveBeenCalled(); }); - - it('is disabled when disableInstallButton prop is provided', () => { - vm = mountComponent(ApplicationRow, { - ...DEFAULT_APPLICATION_STATE, - status: APPLICATION_INSTALLING, - disableInstallButton: true, - }); - - expect(vm.installButtonDisabled).toEqual(true); - }); }); describe('Error block', () => { diff --git a/spec/javascripts/clusters/components/applications_spec.js b/spec/javascripts/clusters/components/applications_spec.js index 4619322bd4b..fa228f5927f 100644 --- a/spec/javascripts/clusters/components/applications_spec.js +++ b/spec/javascripts/clusters/components/applications_spec.js @@ -114,7 +114,7 @@ describe('Applications', () => { }); describe('Jupyter application', () => { - describe('with ingress installed & jupyter not installed', () => { + describe('with ingress installed with ip & jupyter installable', () => { it('renders hostname active input', () => { vm = mountComponent(Applications, { applications: { @@ -122,12 +122,13 @@ describe('Applications', () => { ingress: { title: 'Ingress', status: 'installed', externalIp: '1.1.1.1' }, runner: { title: 'GitLab Runner' }, prometheus: { title: 'Prometheus' }, - jupyter: { title: 'JupyterHub', hostname: '' }, + jupyter: { title: 'JupyterHub', hostname: '', status: 'installable' }, }, }); expect(vm.$el.querySelector('.js-hostname').getAttribute('readonly')).toEqual(null); }); + describe('with ingress & jupyter installed', () => { it('renders readonly input', () => { vm = mountComponent(Applications, { @@ -153,7 +154,7 @@ describe('Applications', () => { ingress: { title: 'Ingress' }, runner: { title: 'GitLab Runner' }, prometheus: { title: 'Prometheus' }, - jupyter: { title: 'JupyterHub' }, + jupyter: { title: 'JupyterHub', status: 'not_installable' }, }, }); }); |
