agent_ticket_macro_test.rb 724 B

12345678910111213141516171819202122232425262728293031323334
  1. # encoding: utf-8
  2. require 'browser_test_helper'
  3. class AgentTicketMacroTest < TestCase
  4. def test_macro
  5. @browser = browser_instance
  6. login(
  7. username: 'agent1@example.com',
  8. password: 'test',
  9. url: browser_url,
  10. )
  11. tasks_close_all()
  12. ticket1 = ticket_create(
  13. data: {
  14. customer: 'nico',
  15. group: 'Users',
  16. title: 'some subject - macro#1',
  17. body: 'some body - macro#1',
  18. },
  19. )
  20. click(css: '.active.content .js-submitDropdown .js-openDropdownMacro')
  21. click(css: '.active.content .js-submitDropdown .js-dropdownActionMacro')
  22. # verify tags
  23. tags_verify(
  24. tags: {
  25. 'spam' => true,
  26. 'tag1' => false,
  27. }
  28. )
  29. end
  30. end