docbrown/spec/system/admin/admin_visits_overview_spec.rb
Jacob Herrington 92217be4ed
Add admin overview page (#12726)
* Add admin overview page

* Rename admin_portals spec

* Fix admin nav bug

* Add ahoy tracking to admin overview

* Fix PR Feedback

Co-authored-by: Vaidehi Joshi <vaidehi.sj@gmail.com>

* Make decorative element more visible

* Remove inline layout styles

Co-authored-by: Vaidehi Joshi <vaidehi.sj@gmail.com>
2021-03-01 18:59:05 -06:00

14 lines
336 B
Ruby

require "rails_helper"
RSpec.describe "Admin visits the overview page", type: :system, js: true do
let(:super_admin) { create(:user, :super_admin) }
before do
sign_in super_admin
visit admin_path
end
it "tracks link clicks" do
expect { click_link("Invite people") }.to change { Ahoy::Event.count }.by 1
end
end