Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@core @core_course @javascript
2
Feature: Test if displaying the course other users works correctly:
3
  As a user I need to see the other users who have permissions in a course without being enrolled.
4
 
5
  Background:
6
    Given the following "categories" exist:
7
      | name | category | idnumber |
8
      | Cat 1 | 0 | CAT1 |
9
    And the following "courses" exist:
10
      | fullname | shortname | category | format |
11
      | Course 1 | C1        | CAT1     | topics |
12
    And the following "users" exist:
13
      | username | firstname | lastname | email                |
14
      | teacher1 | Teacher   | 1        | teacher1@example.com |
15
      | manager1 | Manager   | 1        | manager1@example.com |
16
      | student1 | Student   | 1        | student1@example.com |
17
    And the following "course enrolments" exist:
18
      | user     | course | role           |
19
      | teacher1 | C1     | editingteacher |
20
      | student1 | C1     | student        |
21
 
22
  Scenario: Test other users list in a course
23
    Given I log in as "admin"
24
    And I am on the "Course 1" "other users" page
25
    And I should see "Course 1: 0 other users"
26
    And the following "role assigns" exist:
27
      | user     | role    | contextlevel | reference |
28
      | manager1 | manager | System       |           |
29
    And I am on the "Course 1" "other users" page
30
    And I should see "Course 1: 1 other users"
31
    And I should see "Manager 1"