diff options
author | Tucker Chapman <tucker.r.chapman@gmail.com> | 2019-04-05 15:50:21 +0000 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2019-04-05 15:50:21 +0000 |
commit | cca4a5fd37b18590767f1ff8d2e2240f06060c0d (patch) | |
tree | 64bb5d7c17ad98bc7bd1e662b1b0019416281305 /spec/features | |
parent | e4a371582cf044dc3027f48cb923c8c7309a7b6d (diff) | |
download | gitlab-ce-cca4a5fd37b18590767f1ff8d2e2240f06060c0d.tar.gz |
Add checkbox to choose to create new list when creating new label
Diffstat (limited to 'spec/features')
-rw-r--r-- | spec/features/boards/boards_spec.rb | 2 | ||||
-rw-r--r-- | spec/features/boards/sidebar_spec.rb | 18 |
2 files changed, 19 insertions, 1 deletions
diff --git a/spec/features/boards/boards_spec.rb b/spec/features/boards/boards_spec.rb index ea69ec0319b..4c6175f5590 100644 --- a/spec/features/boards/boards_spec.rb +++ b/spec/features/boards/boards_spec.rb @@ -345,7 +345,7 @@ describe 'Issue Boards', :js do click_link 'Create project label' - fill_in('new_label_name', with: 'Testing New Label') + fill_in('new_label_name', with: 'Testing New Label - with list') first('.suggest-colors a').click diff --git a/spec/features/boards/sidebar_spec.rb b/spec/features/boards/sidebar_spec.rb index ee38e756f9e..dfdb8d589eb 100644 --- a/spec/features/boards/sidebar_spec.rb +++ b/spec/features/boards/sidebar_spec.rb @@ -343,6 +343,24 @@ describe 'Issue Boards', :js do expect(page).to have_link 'test label' end + expect(page).to have_selector('.board', count: 3) + end + + it 'creates project label and list' do + click_card(card) + + page.within('.labels') do + click_link 'Edit' + click_link 'Create project label' + fill_in 'new_label_name', with: 'test label' + first('.suggest-colors-dropdown a').click + first('.js-add-list').click + click_button 'Create' + wait_for_requests + + expect(page).to have_link 'test label' + end + expect(page).to have_selector('.board', count: 4) end end |