[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/enrol/tests/behat/ -> manage_enrolments_from_participants.feature (source)

   1  @core_enrol
   2  Feature: Manage enrollments from participants page
   3    In order to manage course participants
   4    As a teacher
   5    In need to get to the enrolment page from the course participants page
   6  
   7    Background:
   8      Given the following "users" exist:
   9        | username | firstname | lastname | email |
  10        | student1 | Student | 1 | student1@example.com |
  11        | student2 | Student | 2 | student2@example.com |
  12        | teacher1 | teacher | 1 | teacher1@example.com |
  13      And the following "courses" exist:
  14        | fullname | shortname | format |
  15        | Course 1 | C1 | topics |
  16      And the following "course enrolments" exist:
  17        | user | course | role |
  18        | student1 | C1 | student |
  19        | student2 | C1 | student |
  20        | teacher1 | C1 | editingteacher |
  21      And I log in as "teacher1"
  22      And I follow "Course 1"
  23      And I navigate to "Participants" node in "Current course > C1"
  24  
  25    Scenario: Check the participants link when "All partipants" selected
  26      Given I select "All participants" from the "roleid" singleselect
  27      When I follow "Edit"
  28      Then I should see "Enrolled users" in the "h2" "css_element"
  29      And the field "Role" matches value "All"
  30  
  31    Scenario: Check the participants link when "Student" selected
  32      Given I select "Student" from the "roleid" singleselect
  33      When I follow "Edit"
  34      Then I should see "Enrolled users" in the "h2" "css_element"
  35      And the field "Role" matches value "Student"


Generated: Thu Aug 11 10:00:09 2016 Cross-referenced by PHPXref 0.7.1