trabajo-afectivo/test/browser/agent_ticket_create_cc_tokenizer_test.rb

36 lines
780 B
Ruby
Raw Permalink Normal View History

# 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
class AgentTicketCreateCcTokenizerTest < TestCase
2018-05-08 07:18:23 +00:00
def test_tokenizer
@browser = browser_instance
login(
username: 'agent1@example.com',
password: 'test',
url: browser_url,
2018-05-08 07:18:23 +00:00
)
tasks_close_all
2018-05-08 07:18:23 +00:00
click(
css: 'a[href="#ticket/create"]'
)
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