docbrown/spec/system/admin/admin_visits_overview_spec.rb
Andy Zhao 5c5d37d648
Update admin welcome checklist (#14261)
* Update admin welcome checklist

* Update invite link text in test

* Remove extraneous invite line and period

* Add overview tracking to all links in checklist

* Fix spec to check for proper link
2021-07-28 14:27:17 -04:00

14 lines
344 B
Ruby

require "rails_helper"
RSpec.describe "Admin visits 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("Forem Admin Documentation") }.to change { Ahoy::Event.count }.by 1
end
end