Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@mod @mod_workshop
2
Feature: Viewing workshop reports by group
3
  In order to manage workshops for separate groups
4
  As a teacher
5
  I need to select groups for grade reports and submission allocation
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 the following "activities" exist:
37
      | activity | course | name              | submissiontypetext | idnumber    | groupmode |
38
      | workshop | C1     | Separate workshop | 1                  | workshop1   | 1         |
39
      | workshop | C1     | Visible workshop  | 1                  | workshop2   | 2         |
40
 
41
  Scenario Outline: Grade report should only show participation groups
42
    Given I am on the "<workshop>" "workshop activity" page logged in as "teacher1"
43
    And I follow "Switch to the next phase"
44
    And I press "Continue"
45
    And I should see "All participants" in the "<mode> groups" "select"
46
    And I should see "Group 1" in the "<mode> groups" "select"
47
    And I should see "Group 2" in the "<mode> groups" "select"
48
    And I should not see "Group 3" in the "<mode> groups" "select"
49
    And the field "<mode> groups" matches value "All participants"
50
    And I should see "User1G1"
51
    And I should see "User2G2"
52
    And I should see "User3None"
53
    And I should see "User4NPgroup"
54
    When I select "Group 1" from the "<mode> groups" singleselect
55
    Then I should see "User1G1"
56
    And I should not see "User2G2"
57
    And I should not see "User3None"
58
    And I should not see "User4NPgroup"
59
 
60
    Examples:
61
      | workshop  | mode     |
62
      | workshop1 | Separate |
63
      | workshop2 | Visible  |
64
 
65
  Scenario Outline: Submissions allocation page should only show participation groups
66
    Given I am on the "<workshop>" "workshop activity" page logged in as "teacher1"
67
    And I follow "Submissions allocation"
68
    And I should see "All participants" in the "<mode> groups" "select"
69
    And I should see "Group 1" in the "<mode> groups" "select"
70
    And I should see "Group 2" in the "<mode> groups" "select"
71
    And I should not see "Group 3" in the "<mode> groups" "select"
72
    And the field "<mode> groups" matches value "All participants"
73
    And I should see "User1G1"
74
    And I should see "User2G2"
75
    And I should see "User3None"
76
    And I should see "User4NPgroup"
77
    When I select "Group 1" from the "<mode> groups" singleselect
78
    Then I should see "User1G1"
79
    And I should not see "User2G2"
80
    And I should not see "User3None"
81
    And I should not see "User4NPgroup"
82
 
83
    Examples:
84
      | workshop  | mode     |
85
      | workshop1 | Separate |
86
      | workshop2 | Visible  |