Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 25... Línea 25...
25
    Then I should see "Biology Y1"
25
    Then I should see "Biology Y1"
26
    And I should see "Biology Y2"
26
    And I should see "Biology Y2"
27
    And I should not see "English Y1"
27
    And I should not see "English Y1"
28
    And I should not see "English Y2"
28
    And I should not see "English Y2"
Línea -... Línea 29...
-
 
29
 
-
 
30
  Scenario: Search courses displays contact names
-
 
31
    Given the following "users" exist:
-
 
32
      | username  | firstname | lastname | email          |
-
 
33
      | teacher1  | Teacher   | 1        | t1@example.com |
-
 
34
      | teacher2  | Teacher   | 2        | t2@example.com |
-
 
35
      | teacher3  | Teacher   | 3        | t3@example.com |
-
 
36
      | teacher4  | Teacher   | 4        | t3@example.com |
-
 
37
    And the following "course enrolments" exist:
-
 
38
      | user | course | role |
-
 
39
      | teacher1 | BIO1 | editingteacher |
-
 
40
      | teacher2 | ENG2 | editingteacher |
-
 
41
      | teacher3 | BIO1 | teacher |
-
 
42
      | teacher4 | BIO1 | editingteacher |
-
 
43
    And I log in as "admin"
-
 
44
    And I navigate to "Appearance > Courses" in site administration
-
 
45
    And I set the following fields to these values:
-
 
46
      | Teacher | 1 |
-
 
47
      | Non-editing teacher | 1 |
-
 
48
    And I press "Save changes"
-
 
49
    When I go to the courses management page
-
 
50
    And I set the field "Search" to "BIO1"
-
 
51
    And I press "Search"
-
 
52
    Then I should see "Biology Y1"
-
 
53
    When I follow "Biology Y1"
-
 
54
    Then I should see "Course contacts"
-
 
55
    And I should see "Teacher: Teacher 1, Teacher 4"
-
 
56
    And I should see "Non-editing teacher: Teacher 3"
-
 
57
    And I should not see "Teacher: Teacher 2"
29
 
58
 
30
  @javascript
59
  @javascript
31
  Scenario: Search courses and move results in bulk
60
  Scenario: Search courses and move results in bulk
32
    Given I log in as "admin"
61
    Given I log in as "admin"
33
    And I go to the courses management page
62
    And I go to the courses management page