summaryrefslogtreecommitdiff
path: root/spec/features
diff options
context:
space:
mode:
authorFatih Acet <acetfatih@gmail.com>2016-11-01 19:02:36 +0000
committerFatih Acet <acetfatih@gmail.com>2016-11-01 19:02:36 +0000
commitf73f09b1e079e2c1e1793878437f00731af5e177 (patch)
tree9b7e1ffe29aad7a8ff20936beb5f590887e982e3 /spec/features
parentbd0bd8ccdcd9b0def1094d998f9575430f8bbdb3 (diff)
parent6495b8522a0a26e839b24219ee9d18b626facd4c (diff)
downloadgitlab-ce-f73f09b1e079e2c1e1793878437f00731af5e177.tar.gz
Merge branch 'issue-boards-list-desciption-tooltip' into 'master'
Adds label description to issue board title ## What does this MR do? Adds the label description as a tooltip the issue board title. Tooltip is not visible on the backlog or done list. ## Screenshots (if relevant) ![tooltip-title](/uploads/e807a7ff6c48ac2181c4d4e86adf0f77/tooltip-title.gif) ## What are the relevant issue numbers? Closes #22710 See merge request !6743
Diffstat (limited to 'spec/features')
-rw-r--r--spec/features/boards/boards_spec.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/spec/features/boards/boards_spec.rb b/spec/features/boards/boards_spec.rb
index 3234fabe288..a92075fec8f 100644
--- a/spec/features/boards/boards_spec.rb
+++ b/spec/features/boards/boards_spec.rb
@@ -53,7 +53,7 @@ describe 'Issue Boards', feature: true, js: true do
context 'with lists' do
let(:milestone) { create(:milestone, project: project) }
- let(:planning) { create(:label, project: project, name: 'Planning') }
+ let(:planning) { create(:label, project: project, name: 'Planning', description: 'Test') }
let(:development) { create(:label, project: project, name: 'Development') }
let(:testing) { create(:label, project: project, name: 'Testing') }
let(:bug) { create(:label, project: project, name: 'Bug') }
@@ -91,6 +91,12 @@ describe 'Issue Boards', feature: true, js: true do
expect(page).to have_selector('.board', count: 4)
end
+ it 'shows description tooltip on list title' do
+ page.within('.board:nth-child(2)') do
+ expect(find('.board-title span.has-tooltip')[:title]).to eq('Test')
+ end
+ end
+
it 'shows issues in lists' do
wait_for_board_cards(2, 2)
wait_for_board_cards(3, 2)