diff options
author | Kushal Pandya <kushalspandya@gmail.com> | 2019-03-07 18:00:05 +0000 |
---|---|---|
committer | Kushal Pandya <kushalspandya@gmail.com> | 2019-03-07 18:00:05 +0000 |
commit | 278fb4572cd2ffab8536ee78b8d6a5f4e4669b06 (patch) | |
tree | 95723fdfdecfb8092c92e670da4b129465f2bc5e /spec | |
parent | af6b9b42ba6fa5e679e54d20d7ce3550bf5865c3 (diff) | |
parent | a7a33c21e20bef17afc63f78ad3f8f315005d272 (diff) | |
download | gitlab-ce-278fb4572cd2ffab8536ee78b8d6a5f4e4669b06.tar.gz |
Merge branch '46464-improve-stop-pipeline-modal' into 'master'
Resolve "Improve stop pipeline modal"
Closes #46464
See merge request gitlab-org/gitlab-ce!25059
Diffstat (limited to 'spec')
-rw-r--r-- | spec/javascripts/pipelines/pipelines_table_row_spec.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/javascripts/pipelines/pipelines_table_row_spec.js b/spec/javascripts/pipelines/pipelines_table_row_spec.js index 4c575536f0e..234fc705a81 100644 --- a/spec/javascripts/pipelines/pipelines_table_row_spec.js +++ b/spec/javascripts/pipelines/pipelines_table_row_spec.js @@ -195,8 +195,10 @@ describe('Pipelines Table Row', () => { it('emits `openConfirmationModal` event when cancel button is clicked and toggles loading', () => { eventHub.$once('openConfirmationModal', data => { + const { id, ref, commit } = pipeline; + expect(data.endpoint).toEqual('/cancel'); - expect(data.pipelineId).toEqual(pipeline.id); + expect(data.pipeline).toEqual(jasmine.objectContaining({ id, ref, commit })); }); component.$el.querySelector('.js-pipelines-cancel-button').click(); |