diff options
author | Alfredo Sumaran <alfredo@gitlab.com> | 2017-02-22 20:17:19 +0000 |
---|---|---|
committer | Alfredo Sumaran <alfredo@gitlab.com> | 2017-02-22 20:17:19 +0000 |
commit | 1d667e03d291a5169ebfe7509364c49553509374 (patch) | |
tree | 127b5484598216d14ced8c1fd3add537f6d0c97f /spec | |
parent | fb81291ee00a18e12ff290ae8b4caa63bb90e556 (diff) | |
parent | 8ed25c80003b327b359079d600f7207db46846b4 (diff) | |
download | gitlab-ce-1d667e03d291a5169ebfe7509364c49553509374.tar.gz |
Merge branch 'add-issues-tooltip' into 'master'
Added tooltip to add issues button on issue boards
Closes #27985
See merge request !9142
Diffstat (limited to 'spec')
-rw-r--r-- | spec/features/boards/add_issues_modal_spec.rb | 6 | ||||
-rw-r--r-- | spec/features/boards/boards_spec.rb | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/spec/features/boards/add_issues_modal_spec.rb b/spec/features/boards/add_issues_modal_spec.rb index 2875fc1e533..a3e24bb5ffa 100644 --- a/spec/features/boards/add_issues_modal_spec.rb +++ b/spec/features/boards/add_issues_modal_spec.rb @@ -49,6 +49,12 @@ describe 'Issue Boards add issue modal', :feature, :js do expect(page).not_to have_selector('.add-issues-modal') end + + it 'does not show tooltip on add issues button' do + button = page.find('.issue-boards-search button', text: 'Add issues') + + expect(button[:title]).not_to eq("Please add a list to your board first") + end end context 'issues list' do diff --git a/spec/features/boards/boards_spec.rb b/spec/features/boards/boards_spec.rb index 1b25b51cfb2..e247bfa2980 100644 --- a/spec/features/boards/boards_spec.rb +++ b/spec/features/boards/boards_spec.rb @@ -28,10 +28,10 @@ describe 'Issue Boards', feature: true, js: true do expect(page).to have_content('Welcome to your Issue Board!') end - it 'disables add issues button by default' do + it 'shows tooltip on add issues button' do button = page.find('.issue-boards-search button', text: 'Add issues') - expect(button[:disabled]).to eq true + expect(button[:"data-original-title"]).to eq("Please add a list to your board first") end it 'hides the blank state when clicking nevermind button' do |