diff options
author | Phil Hughes <me@iamphill.com> | 2017-12-07 08:48:17 +0000 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-12-07 12:57:36 +0000 |
commit | 307e024c12b34cac66bbd13052d936a443398564 (patch) | |
tree | 70a437877651395ec95ff65716e44817ce4170e3 /spec/javascripts/deploy_keys/components/app_spec.js | |
parent | 28c983db2353d7428f44dad2f8495e1028e360d1 (diff) | |
download | gitlab-ce-307e024c12b34cac66bbd13052d936a443398564.tar.gz |
Fixed remove deploy key loading icon not being removed after cancelingdeploy-keys-loading-icon
Closes #37595
Diffstat (limited to 'spec/javascripts/deploy_keys/components/app_spec.js')
-rw-r--r-- | spec/javascripts/deploy_keys/components/app_spec.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/spec/javascripts/deploy_keys/components/app_spec.js b/spec/javascripts/deploy_keys/components/app_spec.js index 700897f50b0..0ca9290d3d2 100644 --- a/spec/javascripts/deploy_keys/components/app_spec.js +++ b/spec/javascripts/deploy_keys/components/app_spec.js @@ -139,4 +139,18 @@ describe('Deploy keys app component', () => { it('hasKeys returns true when there are keys', () => { expect(vm.hasKeys).toEqual(3); }); + + it('resets remove button loading state', (done) => { + spyOn(window, 'confirm').and.returnValue(false); + + const btn = vm.$el.querySelector('.btn-warning'); + + btn.click(); + + Vue.nextTick(() => { + expect(btn.querySelector('.fa')).toBeNull(); + + done(); + }); + }); }); |