createCourse.feature 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. @administration
  2. Feature: Courses management as admin
  3. In order to add courses
  4. As an administrator
  5. I need to be able to create new courses from the admin page
  6. Scenario: See the courses list
  7. Given I am a platform administrator
  8. And I am on "/main/admin/course_list.php"
  9. Then I should see "Course list"
  10. And I should not see "not authorized"
  11. Scenario: See the course creation link on the admin page
  12. Given I am a platform administrator
  13. And I am on "/main/admin/index.php"
  14. Then I should see "Create a course"
  15. Scenario: Access the course creation page
  16. Given I am a platform administrator
  17. And I am on "/main/admin/course_add.php"
  18. Then I should not see "not authorized"
  19. Scenario: Access the course creation page
  20. Given I am a platform administrator
  21. And I am on "/main/admin/course_add.php"
  22. When I fill in "title" with "TESTCOURSE1"
  23. And I press "submit"
  24. Then I should see "Course list"
  25. Scenario: Search and delete a course
  26. Given I am a platform administrator
  27. And I am on "/main/admin/course_list.php"
  28. And I fill in "course-search-keyword" with "TESTCOURSE1"
  29. And I press "submit"
  30. When I follow "Delete"
  31. Then I should see "Course list"
  32. And I should not see "not be deleted"