summaryrefslogtreecommitdiff
path: root/spec/features/projects/product_analytics/setup_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/features/projects/product_analytics/setup_spec.rb')
-rw-r--r--spec/features/projects/product_analytics/setup_spec.rb19
1 files changed, 19 insertions, 0 deletions
diff --git a/spec/features/projects/product_analytics/setup_spec.rb b/spec/features/projects/product_analytics/setup_spec.rb
new file mode 100644
index 00000000000..45c2b67502c
--- /dev/null
+++ b/spec/features/projects/product_analytics/setup_spec.rb
@@ -0,0 +1,19 @@
+# frozen_string_literal: true
+
+require 'spec_helper'
+
+RSpec.describe 'Product Analytics > Setup' do
+ let_it_be(:project) { create(:project_empty_repo) }
+ let_it_be(:user) { create(:user) }
+
+ before do
+ project.add_maintainer(user)
+ sign_in(user)
+ end
+
+ it 'shows the setup instructions' do
+ visit(setup_project_product_analytics_path(project))
+
+ expect(page).to have_content('Copy the code below to implement tracking in your application')
+ end
+end