session.feature 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. Feature: Session tool
  2. In order to use the session tool
  3. The admin should be able to create a session
  4. Background:
  5. Given I am a platform administrator
  6. Scenario: Create a session category
  7. Given I am on "/main/session/session_category_add.php"
  8. When I fill in the following:
  9. | name | category_1 |
  10. And I press "Add category"
  11. Then I should see "The category has been added"
  12. # @javascript
  13. # Scenario: Create a session
  14. # Given I am on "/main/session/session_add.php"
  15. # When I fill in the following:
  16. # | name | Session 1 |
  17. # And I fill in select2 input "#coach_username" with id "1" and value "admin"
  18. # And I press "submit"
  19. # Then I should see "Add courses to this session (Session 1)"
  20. # Then I select "TEMP (TEMP)" from "NoSessionCoursesList[]"
  21. # And I press "add_course"
  22. # And I press "next"
  23. # Then I should see "Update successful"
  24. #
  25. # Scenario: Delete session
  26. # Given I am on "/main/session/session_list.php?keyword=Session+1"
  27. # And wait for the page to be loaded
  28. # And I follow "Delete"
  29. # And I confirm the popup
  30. # Then I should see "Deleted"
  31. #
  32. Scenario: Delete session category
  33. Given I am on "/main/session/session_category_list.php"
  34. And I follow "Delete"
  35. And I confirm the popup
  36. Then I should see "The selected categories have been deleted"