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
path: root/spec
diff options
context:
space:
mode:
authorFilipa Lacerda <filipa@gitlab.com>2017-03-21 18:25:54 +0300
committerLin Jen-Shin <godfat@godfat.org>2017-03-21 18:33:54 +0300
commit9dd80963f6a954c6921236b409b12f9b640988a1 (patch)
tree8837a25b1c5e74b50e4e7ee4d23aea7e684ee49e /spec
parented8199973073ab859f0f13eb25705876f40ec86d (diff)
Merge branch 'source-branch-toggle-text' into 'master'
Fixed source branch name not being in new merge request dropdown toggle Closes #29660 See merge request !10080
Diffstat (limited to 'spec')
-rw-r--r--spec/features/merge_requests/create_new_mr_spec.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/features/merge_requests/create_new_mr_spec.rb b/spec/features/merge_requests/create_new_mr_spec.rb
index 0832a3656a8..8cc0996acab 100644
--- a/spec/features/merge_requests/create_new_mr_spec.rb
+++ b/spec/features/merge_requests/create_new_mr_spec.rb
@@ -46,6 +46,12 @@ feature 'Create New Merge Request', feature: true, js: true do
end
end
+ it 'populates source branch button' do
+ visit new_namespace_project_merge_request_path(project.namespace, project, change_branches: true, merge_request: { target_branch: 'master', source_branch: 'fix' })
+
+ expect(find('.js-source-branch')).to have_content('fix')
+ end
+
it 'allows to change the diff view' do
visit new_namespace_project_merge_request_path(project.namespace, project, merge_request: { target_branch: 'master', source_branch: 'fix' })