summaryrefslogtreecommitdiff
path: root/spec/features/boards
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-02-02 14:54:45 +0000
committerPhil Hughes <me@iamphill.com>2017-02-03 18:03:40 +0000
commit619f7ec8eff2999d8b9bef72e0345c4f390d031f (patch)
tree49fe55e6fdac36a62d008b4d1fa81a66518aaef8 /spec/features/boards
parentc3339b332bb2ed95c2a7b09ce258ecbb23b0cfc5 (diff)
downloadgitlab-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.rb12
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