agent_ticket_update1_test.rb 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. # encoding: utf-8
  2. require 'browser_test_helper'
  3. class AgentTicketUpdate1Test < TestCase
  4. def test_check_changes
  5. @browser = browser_instance
  6. login(
  7. username: 'agent1@example.com',
  8. password: 'test',
  9. url: browser_url,
  10. )
  11. tasks_close_all()
  12. # confirm on create
  13. ticket_create(
  14. data: {
  15. customer: 'nico',
  16. group: 'Users',
  17. title: 'some changes',
  18. body: 'some body 123äöü - changes',
  19. },
  20. do_not_submit: true,
  21. )
  22. close_task(
  23. data: {
  24. title: 'some changes',
  25. },
  26. discard_changes: true,
  27. )
  28. sleep 1
  29. # confirm on zoom
  30. ticket1 = ticket_create(
  31. data: {
  32. customer: 'nico',
  33. group: 'Users',
  34. title: 'some changes',
  35. body: 'some body 123äöü - changes',
  36. },
  37. )
  38. ticket_update(
  39. data: {
  40. body: 'some note',
  41. },
  42. do_not_submit: true,
  43. )
  44. close_task(
  45. data: {
  46. title: 'some changes',
  47. },
  48. discard_changes: true,
  49. )
  50. end
  51. end