course.feature 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. # features/courseTools.feature
  2. @common @tools
  3. Feature: Course tools basic testing
  4. In order to use a course
  5. As a teacher
  6. I need to be able to enter a course and each of its tools
  7. Background:
  8. Given I am a platform administrator
  9. Scenario: See the courses list
  10. Given I am on "/main/admin/course_list.php"
  11. Then I should see "Course list"
  12. And I should not see "not authorized"
  13. Scenario: See the course creation link on the admin page
  14. Given I am on "/main/admin/index.php"
  15. Then I should see "Create a course"
  16. Scenario: Access the course creation page
  17. Given I am on "/main/admin/course_add.php"
  18. Then I should not see "not authorized"
  19. Scenario: Create a private course before testing
  20. Given I am on "/main/admin/course_add.php"
  21. When I fill in "title" with "TEMP_PRIVATE"
  22. Then I check the "Private access (access authorized to group members only)" radio button
  23. And I press "submit"
  24. Then I should see "Course TEMP_PRIVATE added"
  25. Scenario: Create a course before testing
  26. Given I am on "/main/admin/course_add.php"
  27. When I fill in "title" with "TEMP"
  28. And I press "submit"
  29. Then I should see "Course list"
  30. Scenario: Make sure the course exists
  31. Given course "TEMP" exists
  32. Then I should not see an ".alert-danger" element
  33. Scenario: Make sure the course description tool is available
  34. Given I am on course "TEMP" homepage
  35. And I am on "/main/course_description/index.php"
  36. Then I should not see an ".alert-danger" element
  37. Scenario: Make sure the documents tool is available
  38. Given I am on course "TEMP" homepage
  39. And I am on "/main/document/document.php"
  40. Then I should not see an ".alert-danger" element
  41. Scenario: Make sure the learning path tool is available
  42. Given I am on course "TEMP" homepage
  43. And I am on "/main/lp/lp_controller.php"
  44. Then I should not see an ".alert-danger" element
  45. Scenario: Make sure the links tool is available
  46. Given I am on course "TEMP" homepage
  47. And I am on "/main/link/link.php"
  48. Then I should not see an ".alert-danger" element
  49. Scenario: Make sure the tests tool is available
  50. Given I am on course "TEMP" homepage
  51. And I am on "/main/exercise/exercise.php"
  52. Then I should not see an ".alert-danger" element
  53. Scenario: Make sure the announcements tool is available
  54. Given I am on course "TEMP" homepage
  55. And I am on "/main/announcements/announcements.php"
  56. Then I should not see an ".alert-danger" element
  57. Scenario: Make sure the assessments tool is available
  58. Given I am on course "TEMP" homepage
  59. And I am on "/main/gradebook/index.php"
  60. Then I should not see an ".alert-danger" element
  61. Scenario: Make sure the glossary tool is available
  62. Given I am on course "TEMP" homepage
  63. And I am on "/main/glossary/index.php"
  64. Then I should not see an ".alert-danger" element
  65. Scenario: Make sure the attendances tool is available
  66. Given I am on course "TEMP" homepage
  67. And I am on "/main/attendance/index.php"
  68. Then I should not see an ".alert-danger" element
  69. Scenario: Make sure the course progress tool is available
  70. Given I am on course "TEMP" homepage
  71. And I am on "/main/course_progress/index.php"
  72. Then I should not see an ".alert-danger" element
  73. Scenario: Make sure the agenda tool is available
  74. Given I am on course "TEMP" homepage
  75. And I am on "/main/calendar/agenda.php"
  76. Then I should not see an ".alert-danger" element
  77. Scenario: Make sure the forums tool is available
  78. Given I am on course "TEMP" homepage
  79. And I am on "/main/forum/index.php"
  80. Then I should not see an ".alert-danger" element
  81. Scenario: Make sure the dropbox tool is available
  82. Given I am on course "TEMP" homepage
  83. And I am on "/main/dropbox/index.php"
  84. Then I should not see an ".alert-danger" element
  85. Scenario: Make sure the users tool is available
  86. Given I am on course "TEMP" homepage
  87. And I am on "/main/user/user.php"
  88. Then I should not see an ".alert-danger" element
  89. Scenario: Make sure the groups tool is available
  90. Given I am on course "TEMP" homepage
  91. And I am on "/main/group/group.php"
  92. Then I should not see an ".alert-danger" element
  93. Scenario: Make sure the chat tool is available
  94. Given I am on course "TEMP" homepage
  95. And I am on "/main/chat/chat.php"
  96. Then I should not see an ".alert-danger" element
  97. Scenario: Make sure the assignments tool is available
  98. Given I am on course "TEMP" homepage
  99. And I am on "/main/work/work.php"
  100. Then I should not see an ".alert-danger" element
  101. Scenario: Make sure the surveys tool is available
  102. Given I am on course "TEMP" homepage
  103. And I am on "/main/survey/index.php"
  104. Then I should not see an ".alert-danger" element
  105. Scenario: Make sure the wiki tool is available
  106. Given I am on course "TEMP" homepage
  107. And I am on "/main/wiki/index.php"
  108. Then I should not see an ".alert-danger" element
  109. Scenario: Make sure the notebook tool is available
  110. Given I am on course "TEMP" homepage
  111. And I am on "/main/notebook/index.php"
  112. Then I should not see an ".alert-danger" element
  113. Scenario: Make sure the projects tool is available
  114. Given I am on course "TEMP" homepage
  115. And I am on "/main/blog/blog_admin.php"
  116. Then I should not see an ".alert-danger" element
  117. Scenario: Make sure the reporting tool is available
  118. Given I am on course "TEMP" homepage
  119. And I am on "/main/tracking/courseLog.php"
  120. Then I should not see an ".alert-danger" element
  121. Scenario: Make sure the settings tool is available
  122. Given I am on course "TEMP" homepage
  123. And I am on "/main/course_info/infocours.php"
  124. Then I should not see an ".alert-danger" element
  125. Scenario: Make sure the backup tool is available
  126. Given I am on course "TEMP" homepage
  127. And I am on "/main/course_info/maintenance.php"
  128. Then I should not see an ".alert-danger" element
  129. # Scenario: Enter to public password-protected course
  130. # Given I have a public password-protected course named "PASSWORDPROTECTED" with password "123456"
  131. # And I am not logged
  132. # And I am on "/courses/PASSWORDPROTECTED/index.php"
  133. # When I fill in "course_password" with "123456"
  134. # And I press "submit"
  135. # Then I should not see "The course password is incorrect"