Commit 300653a5 authored by pburdette's avatar pburdette

Fix merge immediatley

Fix merge immeditaley when
a pipeline has failed.
parent b2a851ad
...@@ -396,7 +396,7 @@ export default { ...@@ -396,7 +396,7 @@ export default {
} }
}, },
onMergeImmediatelyConfirmation() { onMergeImmediatelyConfirmation() {
this.handleMergeButtonClick(false, true); this.handleMergeButtonClick(false, true, true);
}, },
initiateMergePolling() { initiateMergePolling() {
simplePoll( simplePoll(
......
...@@ -385,7 +385,8 @@ describe('ReadyToMerge', () => { ...@@ -385,7 +385,8 @@ describe('ReadyToMerge', () => {
return wrapper.vm.$nextTick(); return wrapper.vm.$nextTick();
}) })
.then(() => { .then(() => {
expect(vm.handleMergeButtonClick).toHaveBeenCalled(); // false (no auto merge), true (merge immediately), true (confirmation clicked)
expect(vm.handleMergeButtonClick).toHaveBeenCalledWith(false, true, true);
}); });
}); });
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment