agent_ticket_macro_test.rb 707 B

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