23 lines
455 B
Ruby
23 lines
455 B
Ruby
require 'rails_helper'
|
|
|
|
describe 'Cohorts page' do
|
|
before do
|
|
sign_in(create(:admin))
|
|
end
|
|
|
|
it 'See users count per month' do
|
|
2.times { create(:user) }
|
|
|
|
visit instance_statistics_cohorts_path
|
|
|
|
expect(page).to have_content("#{Time.now.strftime('%b %Y')} 3 0")
|
|
end
|
|
|
|
it 'shows usage data', :js do
|
|
visit instance_statistics_cohorts_path
|
|
|
|
wait_for_requests
|
|
|
|
expect(find('.js-syntax-highlight').text).not_to eq('')
|
|
end
|
|
end
|