ticket.feature 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. Feature: Ticket
  2. In order to use the ticket tool
  3. The admin should be able to create a ticket
  4. Background:
  5. Given I am a platform administrator
  6. Scenario: Check ticket categories
  7. Given I am on "/main/ticket/categories.php?project_id=1"
  8. Then I should see "Enrollment"
  9. Scenario: Check ticket projects
  10. Given I am on "/main/ticket/projects.php?project_id=1"
  11. Then I should see "Ticket System"
  12. Scenario: Check ticket status
  13. Given I am on "/main/ticket/status.php"
  14. Then I should see "New"
  15. Scenario: Check ticket priorities
  16. Given I am on "/main/ticket/priorities.php"
  17. Then I should see "Normal"
  18. Scenario: Create a ticket
  19. Given I am on "/main/ticket/new_ticket.php?project_id=1"
  20. Then I should see "Compose message"
  21. When I fill in the following:
  22. | subject | First ticket |
  23. And I fill in ckeditor field "content" with "Ticket description"
  24. And I fill in select bootstrap static input "#category_id" select "1"
  25. #category id = 1 => Enrollment: Tickets about enrollment
  26. And I press "Send message"
  27. Then I should see "created"
  28. #
  29. # Scenario: Create ticket project
  30. # Given I am on "/main/ticket/projects.php?action=add"
  31. # When I fill in the following:
  32. # | name | Project 2 |
  33. # And I fill in ckeditor field "description" with "Project description"
  34. # And I press "Save"
  35. # Then I should see "Added"
  36. #
  37. # Scenario: Create ticket status
  38. # Given I am on "/main/ticket/status.php?action=add"
  39. # When I fill in the following:
  40. # | name | Status 1 |
  41. # And I fill in ckeditor field "description" with "Status"
  42. # And I press "Save"
  43. # Then I should see "Added"
  44. #
  45. # Scenario: Create priority
  46. # Given I am on "/main/ticket/priorities.php?action=add"
  47. # When I fill in the following:
  48. # | name | Priority 1 |
  49. # And I fill in ckeditor field "description" with "Priority"
  50. # And I press "Save"
  51. # Then I should see "Added"