diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2017-03-02 11:05:48 +0000 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2017-03-02 11:05:48 +0000 |
commit | 0a10d85927a62bfbe953656d55d50b3a3e7ffa01 (patch) | |
tree | d61e571217c72a3d6c19af93e03709c13d39a799 /spec/features/explore/groups_list_spec.rb | |
parent | b7c30cae4eedab5e8e41d9764ac08ca12361d054 (diff) | |
download | gitlab-ce-0a10d85927a62bfbe953656d55d50b3a3e7ffa01.tar.gz |
Update JS to use new standards
Diffstat (limited to 'spec/features/explore/groups_list_spec.rb')
-rw-r--r-- | spec/features/explore/groups_list_spec.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/features/explore/groups_list_spec.rb b/spec/features/explore/groups_list_spec.rb index 2ab97a8928b..7b23115c527 100644 --- a/spec/features/explore/groups_list_spec.rb +++ b/spec/features/explore/groups_list_spec.rb @@ -30,4 +30,17 @@ RSpec.describe 'Explore Groups page', js: true, feature: true do expect(page).not_to have_content(public_group.full_name) expect(page).not_to have_content(private_group.full_name) end + + it 'resets search when user cleans the input' do + fill_in 'filter_groups', with: group.name + wait_for_ajax + + fill_in 'filter_groups', with: "" + wait_for_ajax + + expect(page).to have_content(group.full_name) + expect(page).to have_content(public_group.full_name) + expect(page).not_to have_content(private_group.full_name) + expect(page.all('.js-groups-list-holder .content-list li').length).to eq 2 + end end |