diff options
author | André Luís <me@andr3.net> | 2018-04-18 22:29:58 +0000 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2018-04-18 22:29:58 +0000 |
commit | c352f695d7f27858fb011c60e4facfe9dbca6a59 (patch) | |
tree | dbbb35c4a1684799738a3230df03d1158b8278a4 /spec/features/boards | |
parent | 8cce96b189393420b0c22fa1298f8d5db78bdf7a (diff) | |
download | gitlab-ce-c352f695d7f27858fb011c60e4facfe9dbca6a59.tar.gz |
Resolve "View labels when editing labels in sidebar and board sidebar"
Diffstat (limited to 'spec/features/boards')
-rw-r--r-- | spec/features/boards/sidebar_spec.rb | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/spec/features/boards/sidebar_spec.rb b/spec/features/boards/sidebar_spec.rb index d4c44c1adf9..4d31123a699 100644 --- a/spec/features/boards/sidebar_spec.rb +++ b/spec/features/boards/sidebar_spec.rb @@ -237,6 +237,22 @@ describe 'Issue Boards', :js do end context 'labels' do + it 'shows current labels when editing' do + click_card(card) + + page.within('.labels') do + click_link 'Edit' + + wait_for_requests + + page.within('.value') do + expect(page).to have_selector('.label', count: 2) + expect(page).to have_content(development.title) + expect(page).to have_content(stretch.title) + end + end + end + it 'adds a single label' do click_card(card) @@ -296,7 +312,9 @@ describe 'Issue Boards', :js do wait_for_requests - click_link stretch.title + within('.dropdown-menu-labels') do + click_link stretch.title + end wait_for_requests |