agent_ticket_create_cc_tokenizer_test.rb 781 B

1234567891011121314151617181920212223242526272829303132333435
  1. # Copyright (C) 2012-2023 Zammad Foundation, https://zammad-foundation.org/
  2. require 'browser_test_helper'
  3. # Regression test for UI bugfix
  4. # https://github.com/zammad/zammad/issues/1990
  5. #
  6. # Ensure that CC field when creating a new ticket is autocompleting user emails
  7. class AgentTicketCreateCcTokenizerTest < TestCase
  8. def test_tokenizer
  9. @browser = browser_instance
  10. login(
  11. username: 'agent1@example.com',
  12. password: 'test',
  13. url: browser_url,
  14. )
  15. tasks_close_all
  16. click(
  17. css: 'a[href="#ticket/create"]'
  18. )
  19. email_out_css = '.content.active li[data-type=email-out]'
  20. watch_for(
  21. css: email_out_css
  22. )
  23. click(css: email_out_css)
  24. token_verify('.content.active input[name=cc]', 'test@example.com')
  25. end
  26. end