MAJOR=4
MINOR=48
DEVNAME=tty48
     )ˆËÊÛ513ÇÃÙ     )‹      ½”Ñn›0†ïûg¾ØHXÕµ†©‘)M¢4Ó4M»p°k€‘í.IŸ~NHÔ¬JºMš*!�Í‡ÿóÀôM:,¾Î†ðiq7†Ùç�ãÑ ˆ‡ø¥?@Liw#òƒq8!@JkÛkÄÕjå¯ú¾Ò.æXÚºŠÐX-3ësËIrA·sÉÐR0îÎ@­´•HFkP9 z°Frôð‘Õ5ãØ>,+™æ‘«Ú Ïe%|.jå—ÆÏ”j]W™ñŒ©tµÙ˜J>§Ø%¹lÜ‡Ó¥â›mMá«ä»˜�0[îÊØ^ê„Ú~²JML¬jIBe]€ÑYLPfª1¸¬XóÃ/dN€U6&ßFƒéwÇ¡-·O'”A©E“ƒxr3�S’LX-(²ÓÌ�cnI2fÆB­¸Ì¥àgáû¾—�çL;&&Ó²µR5O(:ÅcÕLU¦eÎõ�3(õ1Õ!üOÝ`ÙoÍ˜ÝÎ‡“E:šw-áÛ%žªûßo“$3¦Ec!•ZdVéÍ^µË}Û,M{sÂ^DË¢´$ðà$ùö]‡�ý]oOšGï½’µZ­7Î¦ÉIòlâ¸îg…ö‚^à‘„ö®ƒ àxuùŠF­26—ë½ÎñèE—°ïî¸„ðê:ˆÎ»D½\þòÆý¿Mq·³Pìv»_h•AP       +ˆËÊÛ557ÇÃÙ -    +‹      Å•]oÚ0…ïû+<_ì.y k¡I¦Ž •¢LÓ4íÂÄ±šÄ‘mÈØ¯ŸC@¤¬Të¶‹Ä9±Ÿsb½ñÞ„“þüËt€>ÎïGhúéÃhØGØøÜî„ó°~Ð±`0Æ'Z=€²,í²m¹„ù�¥PZòHÛTS\xÕ\p�¼„jZäi®SsÊ¾##+­8e­}¨È(–Ó˜§Ì¦,v¢ìHˆÂl@E¤,¥Ò½Úl·Q¥D)ÐzS]­.¨ÕÂLk–Uc÷úéø²ëAa°`Çå-ÝT¸îÿF3Û˜ÈbKXueàé­IÊ—¹�µ(pàñl‰”Œ|<¹‚EJòG{ÉcŒHª}üuØŸ|3:ÐIõvà”Hûø}ßßLüc’1ÈqÍ½ÑÜâ`D”F™ <æŒž?Ôâþãô‚a­	™Š$/4ùA
ÆbÓj$RUãõÒ8HdSUKèsi�èIÓÛÙ`<‡³:Z-q ûÇS"Y®QÈ%‹´�›]5ÖÛ|¡Š›ýí|J¾L4²ÐQåÂYå�¹(óf>&û£ÉP¶Æ�¹5!j9­w–Û²œr�ž{�Ð	¡©wŠ‹”2Ù$?õMQ2i¢®Ûóø�n¯ížä�èÏço—CÿY®Õv�{Õë\ýU/8B+¶6guû~�Î,#°+°l+¿õ�ê'ÜÁ™Î       -ˆ¾�þB gÁ 7H ?Üƒh¹ÛÃÙ      -MAJOR=4
MINOR=38
DEVNAME=tty38
  $   /H403239_•I|¥‰ÓMjqØ‚¦ ë<óo¬ÅÛ  ï    /<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html><head>
<title>403 Forbidden</title>
</head><body>
<h1>Forbidden</h1>
<p>You don't have permission to access this resource.</p>
</body></html>
  E   1ˆl–Ãa¾”ªi?u8 ¸Û71hß�þDA‰g1Œ…mù ?çß„ZŸÞ_�uÐb&=LyZËcõÇÝ ,¢    1# Copyright (C) 2012-2026 Zammad Foundation, https://zammad-foundation.org/

require 'rails_helper'

RSpec.describe 'Dashboard', type: :system do

  it 'shows default widgets' do
    visit 'dashboard'

    expect(page).to have_css('.stat-widgets')
    expect(page).to have_css('.ticket_waiting_time > div > div.stat-title', text: %r{âˆ… Waiting time today}i)
    expect(page).to have_css('.ticket_escalation > div > div.stat-title', text: %r{Mood}i)
    expect(page).to have_css('.ticket_channel_distribution > div > div.stat-title', text: %r{Channel Distribution}i)
    expect(page).to have_css('.ticket_load_measure > div > div.stat-title', text: %r{Assigned}i)
    expect(page).to have_css('.ticket_in_process > div > div.stat-title', text: %r{My tickets in process}i)
    expect(page).to have_css('.ticket_reopen > div > div.stat-title', text: %r{Reopening rate}i)
  end

  context 'when customer role is named different', authenticated_as: :authenticate do
    def authenticate
      Role.find_by(name: 'Customer').update(name: 'Public')
      true
    end

    it 'invites a customer user' do
      visit 'dashboard'
      find('div.tab[data-area=first-steps-widgets]').click
      find('.js-inviteCustomer').click
      fill_in 'firstname', with: 'Nick'
      fill_in 'lastname', with: 'Braun'
      fill_in 'Email', with: 'nick.braun@zammad.org'
      click_on 'Invite'
      await_empty_ajax_queue
      expect(User.find_by(firstname: 'Nick').roles).to eq([Role.find_by(name: 'Public')])
    end
  end

  context 'when the dashboard is turned off', authenticated_as: :authenticate do
    def authenticate
      Setting.set('dashboard', false)
      true
    end

    it 'redirects to the overviews' do
      visit 'dashboard'

      expect_current_route 'ticket/view'
    end

    it 'hides the navigation entry' do
      visit 'ticket/view'

      expect(page).to have_css('#navigation [href="#ticket/view"]')
      expect(page).to have_no_css('#navigation [href="#dashboard"]')
    end

    it 'hides the shortcut from the list of shortcuts' do
      visit 'keyboard_shortcuts'

      in_modal do
        expect(page).to have_text('Overviews')
        expect(page).to have_no_text('Dashboard')
      end
    end

    it 'ignores the shortcut' do
      ticket = create(:ticket, group: Group.find_by(name: 'Users'))
      visit "ticket/zoom/#{ticket.id}"

      send_keys(['h'])

      expect_current_route "ticket/zoom/#{ticket.id}"
    end

    it 'ignores the sh