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:
Diffstat (limited to 'spec/features/projects/snippets/user_views_snippets_spec.rb')
-rw-r--r--spec/features/projects/snippets/user_views_snippets_spec.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/features/projects/snippets/user_views_snippets_spec.rb b/spec/features/projects/snippets/user_views_snippets_spec.rb
index a02f7f8a8d2..22910029ee5 100644
--- a/spec/features/projects/snippets/user_views_snippets_spec.rb
+++ b/spec/features/projects/snippets/user_views_snippets_spec.rb
@@ -31,6 +31,16 @@ describe 'Projects > Snippets > User views snippets' do
it_behaves_like 'paginated snippets'
end
+ context 'filtering by visibility' do
+ before do
+ visit_project_snippets
+ end
+
+ it_behaves_like 'tabs with counts' do
+ let_it_be(:counts) { { all: '1', public: '0', private: '1', internal: '0' } }
+ end
+ end
+
it 'shows snippets' do
visit_project_snippets