course.feature 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  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. And I am a "English" user
  10. # This is executed just before each scenario below
  11. Scenario: See the courses list
  12. Given I am on "/main/admin/course_list.php"
  13. Then I should see "Course list"
  14. And I should not see "not authorized"
  15. Scenario: See the course creation link on the admin page
  16. Given I am on "/main/admin/index.php"
  17. Then I should see "Create a course"
  18. Scenario: Access the course creation page
  19. Given I am on "/main/admin/course_add.php"
  20. Then I should not see "not authorized"
  21. Scenario: Create a course before testing
  22. Given I am on "/main/admin/course_add.php"
  23. When I fill in "title" with "TEMP"
  24. And I press "submit"
  25. Then I should see "Course list"
  26. Scenario: Make sure the course exists
  27. Given course "TEMP" exists
  28. Then I should not see an ".alert-danger" element
  29. Scenario: Make sure the course description tool is available
  30. Given I am on course "TEMP" homepage
  31. And I am on "/main/course_description/index.php"
  32. Then I should not see an ".alert-danger" element
  33. Scenario: Make sure the documents tool is available
  34. Given I am on course "TEMP" homepage
  35. And I am on "/main/document/document.php"
  36. Then I should not see an ".alert-danger" element
  37. Scenario: Make sure the learning path tool is available
  38. Given I am on course "TEMP" homepage
  39. And I am on "/main/lp/lp_controller.php"
  40. Then I should not see an ".alert-danger" element
  41. Scenario: Make sure the links tool is available
  42. Given I am on course "TEMP" homepage
  43. And I am on "/main/link/link.php"
  44. Then I should not see an ".alert-danger" element
  45. Scenario: Make sure the tests tool is available
  46. Given I am on course "TEMP" homepage
  47. And I am on "/main/exercise/exercise.php"
  48. Then I should not see an ".alert-danger" element
  49. Scenario: Make sure the announcements tool is available
  50. Given I am on course "TEMP" homepage
  51. And I am on "/main/announcements/announcements.php"
  52. Then I should not see an ".alert-danger" element
  53. Scenario: Make sure the assessments tool is available
  54. Given I am on course "TEMP" homepage
  55. And I am on "/main/gradebook/index.php"
  56. Then I should not see an ".alert-danger" element
  57. Scenario: Make sure the glossary tool is available
  58. Given I am on course "TEMP" homepage
  59. And I am on "/main/glossary/index.php"
  60. Then I should not see an ".alert-danger" element
  61. Scenario: Make sure the attendances tool is available
  62. Given I am on course "TEMP" homepage
  63. And I am on "/main/attendance/index.php"
  64. Then I should not see an ".alert-danger" element
  65. Scenario: Make sure the course progress tool is available
  66. Given I am on course "TEMP" homepage
  67. And I am on "/main/course_progress/index.php"
  68. Then I should not see an ".alert-danger" element
  69. Scenario: Make sure the agenda tool is available
  70. Given I am on course "TEMP" homepage
  71. And I am on "/main/calendar/agenda.php"
  72. Then I should not see an ".alert-danger" element
  73. Scenario: Make sure the forums tool is available
  74. Given I am on course "TEMP" homepage
  75. And I am on "/main/forum/index.php"
  76. Then I should not see an ".alert-danger" element
  77. Scenario: Make sure the dropbox tool is available
  78. Given I am on course "TEMP" homepage
  79. And I am on "/main/dropbox/index.php"
  80. Then I should not see an ".alert-danger" element
  81. Scenario: Make sure the users tool is available
  82. Given I am on course "TEMP" homepage
  83. And I am on "/main/user/user.php"
  84. Then I should not see an ".alert-danger" element
  85. Scenario: Make sure the groups tool is available
  86. Given I am on course "TEMP" homepage
  87. And I am on "/main/group/group.php"
  88. Then I should not see an ".alert-danger" element
  89. Scenario: Make sure the chat tool is available
  90. Given I am on course "TEMP" homepage
  91. And I am on "/main/chat/chat.php"
  92. Then I should not see an ".alert-danger" element
  93. Scenario: Make sure the assignments tool is available
  94. Given I am on course "TEMP" homepage
  95. And I am on "/main/work/work.php"
  96. Then I should not see an ".alert-danger" element
  97. Scenario: Make sure the surveys tool is available
  98. Given I am on course "TEMP" homepage
  99. And I am on "/main/survey/index.php"
  100. Then I should not see an ".alert-danger" element
  101. Scenario: Make sure the wiki tool is available
  102. Given I am on course "TEMP" homepage
  103. And I am on "/main/wiki/index.php"
  104. Then I should not see an ".alert-danger" element
  105. Scenario: Make sure the notebook tool is available
  106. Given I am on course "TEMP" homepage
  107. And I am on "/main/notebook/index.php"
  108. Then I should not see an ".alert-danger" element
  109. Scenario: Make sure the projects tool is available
  110. Given I am on course "TEMP" homepage
  111. And I am on "/main/blog/blog_admin.php"
  112. Then I should not see an ".alert-danger" element
  113. Scenario: Make sure the reporting tool is available
  114. Given I am on course "TEMP" homepage
  115. And I am on "/main/tracking/courseLog.php"
  116. Then I should not see an ".alert-danger" element
  117. Scenario: Make sure the settings tool is available
  118. Given I am on course "TEMP" homepage
  119. And I am on "/main/course_info/infocours.php"
  120. Then I should not see an ".alert-danger" element
  121. Scenario: Make sure the backup tool is available
  122. Given I am on course "TEMP" homepage
  123. And I am on "/main/course_info/maintenance.php"
  124. Then I should not see an ".alert-danger" element
  125. # Scenario: Enter to public password-protected course
  126. # Given I have a public password-protected course named "PASSWORDPROTECTED" with password "123456"
  127. # And I am not logged
  128. # And I am on "/courses/PASSWORDPROTECTED/index.php"
  129. # When I fill in "course_password" with "123456"
  130. # And I press "submit"
  131. # Then I should not see "The course password is incorrect"