* 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
14 lines
344 B
Ruby
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
|