diff options
author | Phil Hughes <me@iamphill.com> | 2017-05-25 10:09:16 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-05-25 10:09:16 +0100 |
commit | ed6bf343c81941207933b00ba04dbbe7ecd1f4d4 (patch) | |
tree | 60ec629641fd135f2b537275b1551eb8d0bc410a /spec/features | |
parent | 7c7fe22c27820b941af51bdef84c3832dda0683e (diff) | |
download | gitlab-ce-ed6bf343c81941207933b00ba04dbbe7ecd1f4d4.tar.gz |
Fixed create new label form in issue form not working for sub-group projectsissuable-form-create-label-sub-groups
Closes #32906
Diffstat (limited to 'spec/features')
-rw-r--r-- | spec/features/issues/form_spec.rb | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/spec/features/issues/form_spec.rb b/spec/features/issues/form_spec.rb index 65d854d0896..009b3bc8bf6 100644 --- a/spec/features/issues/form_spec.rb +++ b/spec/features/issues/form_spec.rb @@ -219,6 +219,37 @@ describe 'New/edit issue', :feature, :js do end end + describe 'sub-group project' do + let(:group) { create(:group) } + let(:nested_group_1) { create(:group, parent: group) } + let(:sub_group_project) { create(:empty_project, group: nested_group_1) } + + before do + sub_group_project.add_master(user) + + visit new_namespace_project_issue_path(sub_group_project.namespace, sub_group_project) + end + + it 'creates new label from dropdown' do + click_button 'Labels' + + click_link 'Create new label' + + page.within '.dropdown-new-label' do + fill_in 'new_label_name', with: 'test label' + first('.suggest-colors-dropdown a').click + + click_button 'Create' + + wait_for_requests + end + + page.within '.dropdown-menu-labels' do + expect(page).to have_link 'test label' + end + end + end + def before_for_selector(selector) js = <<-JS.strip_heredoc (function(selector) { |