Skip to content
Snippets Groups Projects
Commit 8ed25c80 authored by Phil Hughes's avatar Phil Hughes
Browse files

Added tests

parent 216d3ad7
No related branches found
No related tags found
1 merge request!9142Added tooltip to add issues button on issue boards
Pipeline #
Loading
@@ -49,6 +49,12 @@ describe 'Issue Boards add issue modal', :feature, :js do
Loading
@@ -49,6 +49,12 @@ describe 'Issue Boards add issue modal', :feature, :js do
   
expect(page).not_to have_selector('.add-issues-modal') expect(page).not_to have_selector('.add-issues-modal')
end 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 end
   
context 'issues list' do context 'issues list' do
Loading
Loading
Loading
@@ -28,10 +28,10 @@ describe 'Issue Boards', feature: true, js: true do
Loading
@@ -28,10 +28,10 @@ describe 'Issue Boards', feature: true, js: true do
expect(page).to have_content('Welcome to your Issue Board!') expect(page).to have_content('Welcome to your Issue Board!')
end 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') 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 end
   
it 'hides the blank state when clicking nevermind button' do it 'hides the blank state when clicking nevermind button' do
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment