Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2018-03-12 15:14:02 +0300
committerRobert Speicher <rspeicher@gmail.com>2018-03-13 18:38:39 +0300
commit3833d91961c2613ed26a8071f9db2b418df5b63e (patch)
tree50278404c1025bef2e9c7b3338fc76f8107e8cb0 /spec/features
parent00770565d274ca9c9b021c59f8a7959ff40b6a2f (diff)
Merge branch '42814-fix-remove-source-branch-when-mwps' into 'master'
Fix "Remove source branch" button in MR widget during MWPS state Closes #42814 and #4281 See merge request gitlab-org/gitlab-ce!17192
Diffstat (limited to 'spec/features')
-rw-r--r--spec/features/merge_request/user_merges_when_pipeline_succeeds_spec.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/features/merge_request/user_merges_when_pipeline_succeeds_spec.rb b/spec/features/merge_request/user_merges_when_pipeline_succeeds_spec.rb
index 890774922aa..db92a3504f3 100644
--- a/spec/features/merge_request/user_merges_when_pipeline_succeeds_spec.rb
+++ b/spec/features/merge_request/user_merges_when_pipeline_succeeds_spec.rb
@@ -125,6 +125,12 @@ describe 'Merge request > User merges when pipeline succeeds', :js do
expect(page).to have_content "canceled the automatic merge"
end
+ it 'allows to remove source branch' do
+ click_link "Remove source branch"
+
+ expect(page).to have_content "The source branch will be removed"
+ end
+
context 'when pipeline succeeds' do
before do
build.success