Proyectos de Subversion Moodle

Rev

Rev 11 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 11 Rev 1441
Línea 108... Línea 108...
108
    And I click on "Save changes" "button"
108
    And I click on "Save changes" "button"
109
    And I set the field "Participants tertiary navigation" to "Groups"
109
    And I set the field "Participants tertiary navigation" to "Groups"
110
    And I set the field "groups[]" to "Beta2 cohort (2)"
110
    And I set the field "groups[]" to "Beta2 cohort (2)"
111
    Then the "members" select box should contain "Bianca McAfee (s3@example.com)"
111
    Then the "members" select box should contain "Bianca McAfee (s3@example.com)"
112
    And the "members" select box should contain "Abigail Wyatt (s5@example.com)"
112
    And the "members" select box should contain "Abigail Wyatt (s5@example.com)"
-
 
113
 
-
 
114
  @javascript
-
 
115
  Scenario: Editing a cohort enrolment method's role should change participants' role
-
 
116
    Given the following "users" exist:
-
 
117
      | username | firstname | lastname | email          |
-
 
118
      | s1       | Sandra    | Cole     | s1@example.com |
-
 
119
    And the following "cohort members" exist:
-
 
120
      | user | cohort |
-
 
121
      | s1   | A1     |
-
 
122
    When I log in as "teacher001"
-
 
123
    And I add "Cohort sync" enrolment method in "Course 001" with:
-
 
124
      | Cohort | Alpha1 |
-
 
125
    And I should see "Cohort sync (Alpha1 - Student)"
-
 
126
    And I navigate to course participants
-
 
127
    And I should see "Student" in the "Sandra Cole" "table_row"
-
 
128
    And I am on the "Course 001" "enrolment methods" page
-
 
129
    And I click on "Edit" "link" in the "Alpha1" "table_row"
-
 
130
    And I set the field "Assign role" to "Non-editing teacher"
-
 
131
    And I click on "Save" "button"
-
 
132
    Then I should see "Cohort sync (Alpha1 - Non-editing teacher)"
-
 
133
    And I navigate to course participants
-
 
134
    And I should see "Non-editing teacher" in the "Sandra Cole" "table_row"
-
 
135
    And I should not see "Student" in the "Sandra Cole" "table_row"