trabajo-afectivo/test/browser/agent_ticket_macro_test.rb

35 lines
707 B
Ruby
Raw Normal View History

2017-11-23 08:09:44 +00:00
2016-09-05 13:18:22 +00:00
require 'browser_test_helper'
class AgentTicketMacroTest < TestCase
def test_macro
@browser = browser_instance
login(
username: 'agent1@example.com',
password: 'test',
url: browser_url,
)
tasks_close_all()
ticket1 = ticket_create(
data: {
customer: 'nico',
group: 'Users',
title: 'some subject - macro#1',
body: 'some body - macro#1',
},
)
click(css: '.active.content .js-submitDropdown .js-openDropdownMacro')
click(css: '.active.content .js-submitDropdown .js-dropdownActionMacro')
# verify tags
tags_verify(
tags: {
'spam' => true,
'tag1' => false,
}
)
end
end