Course.feature 841 B

12345678910111213141516171819202122232425
  1. @course
  2. Feature: Course creation
  3. In order to teacher a course
  4. As a teacher
  5. I need to create a course
  6. Background:
  7. Given there are following users:
  8. | username | email | plain_password | enabled | groups |
  9. | student | student@example.com | student | yes | Students |
  10. | teacher | teacher@example.com | teacher | yes | Teachers |
  11. @javascript
  12. Scenario: A teacher creates a course
  13. Given I am logged in teacher
  14. When I go to the chamilo_core_course_add page
  15. And I fill in "course[title]" with "test"
  16. And I press "course_save"
  17. Then I should see "Course created"
  18. # Scenario: A student creates a course
  19. # Given I am logged in student
  20. # When I add course "My course" as user "teacher"
  21. # Then I should not find a course "My course" in the portal
  22. #