diff options
author | Phil Hughes <me@iamphill.com> | 2017-02-09 15:51:49 +0000 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-02-09 15:51:49 +0000 |
commit | 2bd1a229060c959a177171ddbb32d1f2202b4801 (patch) | |
tree | 97fa7f83a61da1c4143e003c6d799468f693a233 /spec | |
parent | 110cd58999abb45f52273f5870fe16a3ad026746 (diff) | |
download | gitlab-ce-2bd1a229060c959a177171ddbb32d1f2202b4801.tar.gz |
Disables add issue buttonadd-issues-button-disable
Previously was disabled until any list was present (except for done) this now takes into account the welcome blank state
Closes #27931
Diffstat (limited to 'spec')
-rw-r--r-- | spec/features/boards/boards_spec.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/features/boards/boards_spec.rb b/spec/features/boards/boards_spec.rb index 7225f38b7e5..1b25b51cfb2 100644 --- a/spec/features/boards/boards_spec.rb +++ b/spec/features/boards/boards_spec.rb @@ -28,6 +28,12 @@ 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 + button = page.find('.issue-boards-search button', text: 'Add issues') + + expect(button[:disabled]).to eq true + end + it 'hides the blank state when clicking nevermind button' do page.within(find('.board-blank-state')) do click_button("Nevermind, I'll use my own") |