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
diff options
context:
space:
mode:
authorAndré Luís <me@andr3.net>2018-04-19 01:29:58 +0300
committerMike Greiling <mike@pixelcog.com>2018-04-19 01:29:58 +0300
commitc352f695d7f27858fb011c60e4facfe9dbca6a59 (patch)
treedbbb35c4a1684799738a3230df03d1158b8278a4 /spec/features/boards
parent8cce96b189393420b0c22fa1298f8d5db78bdf7a (diff)
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.rb20
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