agent_ticket_create_cc_tokenizer_test.rb 706 B

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