2021-06-01 12:20:20 +00:00
|
|
|
# Copyright (C) 2012-2021 Zammad Foundation, http://zammad-foundation.org/
|
|
|
|
|
2018-05-08 07:18:23 +00:00
|
|
|
require 'browser_test_helper'
|
|
|
|
|
|
|
|
# Regression test for UI bugfix
|
|
|
|
# https://github.com/zammad/zammad/issues/1990
|
|
|
|
#
|
|
|
|
# Ensure that CC field when creating a new ticket is autocompleting user emails
|
|
|
|
|
2018-05-09 07:21:08 +00:00
|
|
|
class AgentTicketCreateCcTokenizerTest < TestCase
|
2018-05-08 07:18:23 +00:00
|
|
|
def test_tokenizer
|
|
|
|
@browser = browser_instance
|
|
|
|
|
|
|
|
login(
|
|
|
|
username: 'agent1@example.com',
|
|
|
|
password: 'test',
|
2018-12-19 17:31:51 +00:00
|
|
|
url: browser_url,
|
2018-05-08 07:18:23 +00:00
|
|
|
)
|
2021-07-16 13:29:38 +00:00
|
|
|
tasks_close_all
|
2018-05-08 07:18:23 +00:00
|
|
|
|
|
|
|
click(
|
|
|
|
css: 'a[href="#ticket/create"]'
|
|
|
|
)
|
|
|
|
|
2018-05-09 07:21:08 +00:00
|
|
|
email_out_css = '.content.active li[data-type=email-out]'
|
|
|
|
|
|
|
|
watch_for(
|
|
|
|
css: email_out_css
|
|
|
|
)
|
|
|
|
|
|
|
|
click(css: email_out_css)
|
|
|
|
|
2018-05-14 09:24:54 +00:00
|
|
|
token_verify('.content.active input[name=cc]', 'test@example.com')
|
2018-05-08 07:18:23 +00:00
|
|
|
end
|
|
|
|
end
|