diff options
author | Phil Hughes <me@iamphill.com> | 2017-02-02 14:54:45 +0000 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-02-03 18:03:40 +0000 |
commit | 619f7ec8eff2999d8b9bef72e0345c4f390d031f (patch) | |
tree | 49fe55e6fdac36a62d008b4d1fa81a66518aaef8 /spec/features/boards | |
parent | c3339b332bb2ed95c2a7b09ce258ecbb23b0cfc5 (diff) | |
download | gitlab-ce-619f7ec8eff2999d8b9bef72e0345c4f390d031f.tar.gz |
Show empty state if filter returns empty results
Diffstat (limited to 'spec/features/boards')
-rw-r--r-- | spec/features/boards/modal_filter_spec.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/features/boards/modal_filter_spec.rb b/spec/features/boards/modal_filter_spec.rb index 44daa50a006..62b0efdb51c 100644 --- a/spec/features/boards/modal_filter_spec.rb +++ b/spec/features/boards/modal_filter_spec.rb @@ -16,6 +16,18 @@ describe 'Issue Boards add issue modal filtering', :feature, :js do login_as(user) end + it 'shows empty state when no results found' do + visit_board + + page.within('.add-issues-modal') do + find('.form-control').native.send_keys('testing empty state') + + wait_for_vue_resource + + expect(page).to have_content('There are no issues to show.') + end + end + it 'restores filters when closing' do visit_board |