agent_ticket_update5_test.rb 961 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. require 'browser_test_helper'
  2. class AgentTicketUpdate5Test < TestCase
  3. def test_check_changes
  4. @browser = browser_instance
  5. login(
  6. username: 'agent1@example.com',
  7. password: 'test',
  8. url: browser_url,
  9. )
  10. # create ticket
  11. ticket_create(
  12. data: {
  13. customer: 'Nico',
  14. group: 'Users',
  15. title: 'some changes',
  16. body: 'some body 123äöü - changes',
  17. }
  18. )
  19. select(
  20. css: '.content.active .sidebar select[name="owner_id"]',
  21. value: 'Agent 1 Test',
  22. )
  23. click(css: '.content.active .js-attributeBar .js-submit', wait: 2)
  24. select(
  25. css: '.content.active .sidebar select[name="group_id"]',
  26. value: '-',
  27. )
  28. select(
  29. css: '.content.active .sidebar select[name="group_id"]',
  30. value: 'Users',
  31. )
  32. sleep 1
  33. match(
  34. css: '.content.active .sidebar select[name="owner_id"]',
  35. value: '-'
  36. )
  37. end
  38. end