summaryrefslogtreecommitdiff
path: root/spec/features/projects/product_analytics/setup_spec.rb
blob: 45c2b67502c860b4506c8318d34c62d2786572b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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