agent_ticket_update1_test.rb 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. require 'browser_test_helper'
  2. class AgentTicketUpdate1Test < 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. tasks_close_all()
  11. # confirm on create
  12. ticket_create(
  13. data: {
  14. customer: 'nico',
  15. group: 'Users',
  16. title: 'some changes',
  17. body: 'some body 123äöü - changes',
  18. },
  19. do_not_submit: true,
  20. )
  21. close_task(
  22. data: {
  23. title: 'some changes',
  24. },
  25. discard_changes: true,
  26. )
  27. sleep 1
  28. # confirm on zoom
  29. ticket1 = ticket_create(
  30. data: {
  31. customer: 'nico',
  32. group: 'Users',
  33. title: 'some changes',
  34. body: 'some body 123äöü - changes',
  35. },
  36. )
  37. ticket_update(
  38. data: {
  39. body: 'some note',
  40. },
  41. do_not_submit: true,
  42. )
  43. close_task(
  44. data: {
  45. title: 'some changes',
  46. },
  47. discard_changes: true,
  48. )
  49. end
  50. end