Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 51... Línea 51...
51
  @javascript
51
  @javascript
52
  Scenario: Bulk delete enrolments when user is themselves enrolled
52
  Scenario: Bulk delete enrolments when user is themselves enrolled
53
    When I log in as "teacher1"
53
    When I log in as "teacher1"
54
    And I am on "Course 1" course homepage
54
    And I am on "Course 1" course homepage
55
    And I navigate to course participants
55
    And I navigate to course participants
-
 
56
    # Select all three users (the teacher themselves and both students).
56
    And I click on "Select all" "checkbox"
57
    And I click on "Select all" "checkbox"
57
    And I set the field "With selected users..." to "Delete selected user enrolments"
58
    And I set the field "With selected users..." to "Delete selected user enrolments"
-
 
59
    # Teacher is informed that they've been removed from current selection.
58
    Then I should see "User \"Teacher 1\" was removed from the selection."
60
    Then I should see "User \"Teacher 1\" was removed from the selection."
59
    And the following should exist in the "generaltable" table:
61
    And the following should exist in the "generaltable" table:
60
      | Name      | Status |
62
      | Name      | Status |
61
      | Student 1 | Active |
63
      | Student 1 | Active |
62
      | Student 2 | Active |
64
      | Student 2 | Active |
63
    And I should not see "Teacher 1" in the "generaltable" "table"
65
    And I should not see "Teacher 1" in the "generaltable" "table"
64
    And I press "Unenrol users"
66
    And I press "Unenrol users"
65
    And I should see "2 unenrolled users"
67
    And I should see "2 unenrolled users"
66
    And I should see "User \"Teacher 1\" was removed from the selection."
-
 
67
    And I should see "Teacher 1" in the "participants" "table"
68
    And I should see "Teacher 1" in the "participants" "table"
68
    And I should not see "Student 1" in the "participants" "table"
69
    And I should not see "Student 1" in the "participants" "table"
69
    And I should not see "Student 2" in the "participants" "table"
70
    And I should not see "Student 2" in the "participants" "table"
Línea 70... Línea 71...
70
 
71