0x0
     !ˆËÊÏ565ÉÁÍ 5    !‹      ÍUÑn›0}ïWx~Ø\ é*Q`êB¤Ek“(Í4MÓ6Á*`d;¡Ù×Ï„DÉ¦dmµ¬Ú÷¾çœ«koâÉ`þu:Dçw·húùÃíh€°ð¥7 ˆçq÷¡o;.ÀpŒÎµ®}€¦iì¦g¹€ùr]}PZòTÛTS]í»è9#ÔDh®�*Ê‘Èˆ¥Vœ2o— ¥Å*šñ‚Ù”•ÂÎ•�
Q›T¤ÊRªØ¡M¹µÊV�æD‚çún»â)ƒD-Àñßõ� ºª†l‰‰ ë–Ÿûê\LÉ�$ÙPjS:G+RðEb-j¼\ %ÓOE¥ )Hõ`/x†)tˆ¿�“ï:oÿŽ‚rÉ²¿„ãëIãhLJ 9Ž¹3˜Ý¥Q)(Ï8£'Á÷øžÿ8½aÜab¦RÉkÍEµ‡‚‘x(5…ª‰ÑziäòÕAèSn�ô3¦7³áx�f�%´ÝbÏîßvGS"Y¥QÌ%Kµ�ë­ðŽÅÛ*Qõõn‰¶²$_äGYè(ò^,«‡J4Õ¡Æê£FÖ82�C‚¿1òï�åz–ã!·ï{—� šãàÓßRÏDA™<d~ª…[¿7ìÛäI®Õs�{å÷¯N*8‡ùÏWP‹†I# ‹çèÀëòWËÄŒ�f¥Ñ°Ïÿ—>¼`–le¦G]<‡€?�Â3Ï=ØÞlî¦ º»ó'~8Ù:ž       #ˆËÊÏ595ÉÁÍ S    #‹      Õ–ÁŽÚ0†ïû®½‘öÀ†T[‚TTKUUU…LlˆEbGöJŸ¾ÁnAmÝ*§Œ'ìÿ[ÎøoÂqoöeÒ'f�C2ùô~8èZø|Ûgaù¢åÕ ý%4FÌ: ÛíÖÛÞzÚ¬`6…Ó¤�ŒÐãÈipã¹à†ø±`Ü=‰�ß‰^Ð9ZÉEó ×©+_ÊDx\¤Ú‹­i�¹¸ŽlÍÚä¨vËí,p±�(fZ�»Ø|á’(R@Üµ[�é­0>”;+pðâ/4ßÿÃŽ[u_¶Ø»*Bø“KäJu)êŒ¾LWÄš¨KAFZYX$L­½•\RÂìÒ¯ƒÞø›ÓÆÅ×�ÏHlÄ²Kßõº£ûq7¤Áˆ¥ÂvYóè442‹$Õ\.¥àWÅO¥øIþ¸>aXjBa##3”Z�¤àÏQ#�ØŒ9Ö¶#ˆÍ¹ª”ðßUƒEÏŠ1y˜öG³p0-KÂ‹)Nî^asi0aF($¡4"BmvúÒÊ[µ°ÙýqHlF®b¤!5rQùÉÕZé­:¯‰«÷Åj0»Sö�s“/\5ëÍ»Z£Y«7I£Õi¶	¹"t·ÃÇ×´Ÿ£¶¹ÍÜæÍ¹HØnžZGs![A8§G£‚
"˜\¡LÅœE(7b¾–ÜmÏ…dõÑŠø´"®0šPÅ‰Ÿ°‰
#Yd˜Ÿ�Ár\e òžüÅ	|ž¯0`nÙêŒk?ü÷8ØŸÀ¡sóaßFúPvº?þ¨%ÂL    5   %ˆl–Ðz¾”ªC]Šq@=q°\h
bÑ¿�þZË8Ø‘–Þ+²:/çÑƒ_ÐÂÎ ¨    %   ˆ1R9¦%eÖÓÖÐÃl      "ïi    h      ÜG9”tQú#         á
  YARB      h            `    l  )#i‹M ÿÿÿÿÿÿÿÿ    C3O%3 ÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿ)#i‹E% ÿÿÿÿÿÿÿÿ	       I9		K%9 ÿÿÿÿÿÿÿÿ)#i‹	=# ÿÿÿÿÿÿÿÿ	       I9C#9 ÿÿÿÿÿÿÿÿ)#i	‹5! ÿÿÿÿÿÿÿÿ	       I9;	!9 ÿÿÿÿÿÿÿÿ)#i‹- ÿÿÿÿÿÿÿÿ	       I939	 ÿÿÿÿÿÿÿÿ%sO%--s‹!% ÿÿÿÿÿÿÿÿ	       !)#)‰q+q1	 ÿÿÿÿÿÿÿÿ   I   ©     Y  ±  )  ñ	  E�/home/pacs/hsh12/users/zammad/.rbenv/versions/3.4.8/lib/ruby/gems/3.4.0/gems/tzinfo-data-1.2025.3/lib/tzinfo/data/definitions/Europe/Vatican.rb E<main>   TZInfo   E<module:TZInfo>  	Data E<module:Data>Definitions  E)<module:Definitions> Europe   E<module:Europe>  Vatican  E!<module:Vatican> % EEurope/Vatican   EEurope/Rome  include  linked_timezone  %TimezoneDefinition   x  |      (  <  D  T  d  |  ˆ  œ  ¨  ¼  À  Ô  ä  ð      C   'ˆl–Ãa¾”ªi?u8 ¸Û71hßŽþJ ¬ã�f1�­Œƒ�ùÒƒe·›Ñ_�uÐb&=LyZËcõÄÐ     '# Copyright (C) 2012-2026 Zammad Foundation, https://zammad-foundation.org/

require 'rails_helper'

# Ported from test/browser/abb_one_group_test.rb as a continuous end-to-end scenario:
#   as long as only a single group exists, the ticket create masks do not offer a group
#   selection; agents get invited via the first steps widget; once a second group is
#   created, the group selection appears.
RSpec.describe 'Scenario > From one group to multiple groups', authenticated_as: :authenticate, authentication_type: :form, type: :system do
  let(:group)    { Group.find_by(name: 'Users') }
  let(:admin)    { create(:admin, password: 'test', groups: [group]) }
  let(:customer) { create(:customer, password: 'test') }

  def authenticate
    # Establish the single-group state of the original test setup: the test database
    #   ships additional groups, which would make the group selection visible.
    Group.where.not(name: 'Users').find_each { |other_group| other_group.update!(active: false) }

    admin
  end

  it 'hides the group selection with a single group and reveals it with a second one' do
    # With a single group, the agent ticket create mask hides the group selection.
    visit '#ticket/create'

    within(:active_content) do
      expect(page).to have_css('.newTicket .form-group.hide [name="group_id"]', visible: :all)
    end

    # Invite an additional agent via the first steps widget.
    visit '#dashboard'

    within(:active_content) do
      click '.tab[data-area="first-steps-widgets"]