Add fields displayed in modal to test
This commit is contained in:
parent
d6a9cd5d04
commit
b5a3004e2f
1 changed files with 3 additions and 1 deletions
|
@ -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.pipeline.id).toEqual(pipeline.id);
|
||||
expect(data.pipeline).toEqual(jasmine.objectContaining({ id, ref, commit }));
|
||||
});
|
||||
|
||||
component.$el.querySelector('.js-pipelines-cancel-button').click();
|
||||
|
|
Loading…
Reference in a new issue