CourseSessionRelationship.feature 1.3 KB

1234567891011121314151617181920212223242526272829303132
  1. @session
  2. Feature: Course Session Relationship
  3. In order to setup a course session
  4. As a teacher
  5. I need a working relationship
  6. Background:
  7. Given there are following users:
  8. | username | email | plain_password | enabled | groups |
  9. | student | student@example.com | student | yes | Students |
  10. | coach | coach@example.com | coach | yes | Teachers |
  11. | drh | drh@example.com | drh | yes | Teachers |
  12. Given I have a course "My course"
  13. Given I have a session "My session"
  14. Scenario: A session contains a course
  15. When I add session "My session" to course "My course"
  16. Then I should find a course "My course" in session "My session"
  17. Scenario: A course in a session contains a student
  18. When I add student "student" to course "My course" in session "My session"
  19. Then I should find a user "student" in course "My course" in session "My session"
  20. Scenario Outline: A course in a session contains a user with status
  21. When I add user with status "<status>" with username "<username>" in course "My course" in session "My session"
  22. Then I should find a user "<username>" with status "<status>" in course "My course" in session "My session"
  23. Examples:
  24. | username | status |
  25. | student | student |
  26. | drh | drh |
  27. | coach | coach |