diff options
author | Heinrich Lee Yu <hleeyu@gmail.com> | 2018-10-24 09:02:22 +0300 |
---|---|---|
committer | Heinrich Lee Yu <hleeyu@gmail.com> | 2018-10-26 05:27:25 +0300 |
commit | 11ba5ccd54c04aacbdb6785500875cabf84e1a0c (patch) | |
tree | 29621609c452dced8c702a0df2dfc494b6f029ac /spec/features | |
parent | 54db08f2f367e8b1e2100adf6496f3589f77d920 (diff) |
Always show new issue in Open list
Diffstat (limited to 'spec/features')
-rw-r--r-- | spec/features/boards/new_issue_spec.rb | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/spec/features/boards/new_issue_spec.rb b/spec/features/boards/new_issue_spec.rb index 0bf1ecbc433..164442a47f5 100644 --- a/spec/features/boards/new_issue_spec.rb +++ b/spec/features/boards/new_issue_spec.rb @@ -94,8 +94,14 @@ describe 'Issue Boards new issue', :js do wait_for_requests end - it 'does not display new issue button' do - expect(page).to have_selector('.issue-count-badge-add-button', count: 0) + it 'displays new issue button in open list' do + expect(first('.board')).to have_selector('.issue-count-badge-add-button', count: 1) + end + + it 'does not display new issue button in label list' do + page.within('.board:nth-child(2)') do + expect(page).not_to have_selector('.issue-count-badge-add-button') + end end end end |