Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@mod @mod_chat
2
Feature: Chat with my group
3
  In order to chat with my group
4
  As a student
5
  I want to be able to see or select by group in the Chat activity
6
 
7
  Background:
8
    And the following "courses" exist:
9
      | fullname      | shortname |
10
      | Test Course 1 | C1        |
11
    And the following "groups" exist:
12
      | name    | course | idnumber | participation |
13
      | Group 1 | C1     | G1       | 1             |
14
      | Group 2 | C1     | G2       | 1             |
15
      | Group 3 | C1     | G3       | 0             |
16
    And the following "users" exist:
17
      | username | firstname    | lastname | email                |
18
      | teacher1 | TeacherG1    | 1        | teacher1@example.com |
19
      | user1    | User1G1      | 1        | user1@example.com    |
20
      | user2    | User2G2      | 2        | user2@example.com    |
21
      | user3    | User3None    | 3        | user3@example.com    |
22
      | user4    | User4NPgroup | 4        | user4@example.com    |
23
    And the following "course enrolments" exist:
24
      | user     | course | role           |
25
      | teacher1 | C1     | editingteacher |
26
      | user1    | C1     | student        |
27
      | user2    | C1     | student        |
28
      | user3    | C1     | student        |
29
      | user4    | C1     | student        |
30
    And the following "group members" exist:
31
      | user     | group |
32
      | teacher1 | G1    |
33
      | user1    | G1    |
34
      | user2    | G2    |
35
      | user4    | G3    |
36
    And I enable "chat" "mod" plugin
37
    And the following "activities" exist:
38
      | activity | name          | intro                      | course | idnumber | groupmode |
39
      | chat     | Separate Chat | Chat with separate groups  | C1     | chat1    | 1         |
40
      | chat     | Visible Chat  | Chat with visible groups   | C1     | chat2    | 2         |
41
 
42
  Scenario Outline: Users should see their own participation groups in "separate groups" mode, and all
43
  participation groups in "visible groups" mode.
44
    Given I am on the "<chat>" "chat activity" page logged in as "<user>"
45
    Then I <all> "All participants"
46
    And I <G1> "Group 1"
47
    And I <G2> "Group 2"
48
    And I should not see "Group 3"
49
 
50
    Examples:
51
      | chat  | user     | all            | G1             | G2             |
52
      | chat1 | teacher1 | should see     | should see     | should see     |
53
      | chat1 | user1    | should not see | should see     | should not see |
54
      | chat1 | user2    | should not see | should not see | should see     |
55
      | chat1 | user3    | should see     | should not see | should not see |
56
      | chat1 | user4    | should see     | should not see | should not see |
57
      | chat2 | teacher1 | should see     | should see     | should see     |
58
      | chat2 | user1    | should see     | should see     | should see     |
59
      | chat2 | user2    | should see     | should see     | should see     |
60
      | chat2 | user3    | should see     | should see     | should see     |
61
      | chat2 | user4    | should see     | should see     | should see     |