diff options
author | Phil Hughes <me@iamphill.com> | 2018-05-24 09:42:21 +0000 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2018-05-24 09:42:21 +0000 |
commit | 942fe5fe79f512b4c801fc887a1240a963b827d0 (patch) | |
tree | 22ce06b35128263e7a1537f77c6ac1f566c3bf24 /spec | |
parent | e97a87433b2f55b2f688771cbe47d627f49d4b44 (diff) | |
parent | 25aec20fab63946dfe1c5b9ae544e15cfcff2b81 (diff) | |
download | gitlab-ce-942fe5fe79f512b4c801fc887a1240a963b827d0.tar.gz |
Merge branch 'fl-loading-icon' into 'master'
Show loading icon only when making the request
See merge request gitlab-org/gitlab-ce!19116
Diffstat (limited to 'spec')
-rw-r--r-- | spec/javascripts/pipelines/pipelines_table_row_spec.js | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/spec/javascripts/pipelines/pipelines_table_row_spec.js b/spec/javascripts/pipelines/pipelines_table_row_spec.js index 05ca4cb9044..68043b91bd0 100644 --- a/spec/javascripts/pipelines/pipelines_table_row_spec.js +++ b/spec/javascripts/pipelines/pipelines_table_row_spec.js @@ -182,7 +182,16 @@ describe('Pipelines Table Row', () => { }); component.$el.querySelector('.js-pipelines-cancel-button').click(); - expect(component.isCancelling).toEqual(true); + }); + + it('renders a loading icon when `cancelingPipeline` matches pipeline id', done => { + component.cancelingPipeline = pipeline.id; + component.$nextTick() + .then(() => { + expect(component.isCancelling).toEqual(true); + }) + .then(done) + .catch(done.fail); }); }); }); |