summaryrefslogtreecommitdiff
path: root/spec/features/projects/commits
diff options
context:
space:
mode:
authorSean McGivern <sean@gitlab.com>2016-06-10 16:43:25 +0100
committerSean McGivern <sean@gitlab.com>2016-06-13 11:05:22 +0100
commitb9977525394ac714e31c1751690c7b993eb8d830 (patch)
treef6530492505b7a2a9c1c8fbd8c35677ab79dbc08 /spec/features/projects/commits
parent747a167a2dce3175102e4aff78504c72178cc5a5 (diff)
downloadgitlab-ce-b9977525394ac714e31c1751690c7b993eb8d830.tar.gz
Only show branches for revert / cherry-pick18377-cherry-pick-crashes-when-choosing-a-tag
Tags are immutable, so we can't add a commit to either revert or cherry-pick another commit to them.
Diffstat (limited to 'spec/features/projects/commits')
-rw-r--r--spec/features/projects/commits/cherry_pick_spec.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/features/projects/commits/cherry_pick_spec.rb b/spec/features/projects/commits/cherry_pick_spec.rb
index 0559b02f321..f88c0616b52 100644
--- a/spec/features/projects/commits/cherry_pick_spec.rb
+++ b/spec/features/projects/commits/cherry_pick_spec.rb
@@ -16,6 +16,7 @@ describe 'Cherry-pick Commits' do
it do
visit namespace_project_commit_path(project.namespace, project, master_pickable_commit.id)
find("a[href='#modal-cherry-pick-commit']").click
+ expect(page).not_to have_content('v1.0.0') # Only branches, not tags
page.within('#modal-cherry-pick-commit') do
uncheck 'create_merge_request'
click_button 'Cherry-pick'