dashboard_spec.rb 813 B

12345678910111213141516
  1. require 'rails_helper'
  2. RSpec.describe 'Dashboard', type: :system, authenticated: true do
  3. it 'shows default widgets' do
  4. visit 'dashboard'
  5. expect(page).to have_css('.stat-widgets')
  6. expect(page).to have_css('.ticket_waiting_time > div > div.stat-title', text: /∅ Waiting time today/i)
  7. expect(page).to have_css('.ticket_escalation > div > div.stat-title', text: /Mood/i)
  8. expect(page).to have_css('.ticket_channel_distribution > div > div.stat-title', text: /Channel Distribution/i)
  9. expect(page).to have_css('.ticket_load_measure > div > div.stat-title', text: /Assigned/i)
  10. expect(page).to have_css('.ticket_in_process > div > div.stat-title', text: /Your tickets in process/i)
  11. expect(page).to have_css('.ticket_reopen > div > div.stat-title', text: /Reopening rate/i)
  12. end
  13. end