Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilipa Lacerda <filipa@gitlab.com>2017-03-02 14:05:48 +0300
committerFilipa Lacerda <filipa@gitlab.com>2017-03-02 14:05:48 +0300
commit0a10d85927a62bfbe953656d55d50b3a3e7ffa01 (patch)
treed61e571217c72a3d6c19af93e03709c13d39a799 /spec/features/explore
parentb7c30cae4eedab5e8e41d9764ac08ca12361d054 (diff)
Update JS to use new standards
Diffstat (limited to 'spec/features/explore')
-rw-r--r--spec/features/explore/groups_list_spec.rb13
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