Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1441 ariadna 1
@mod @mod_workshop
2
Feature: Student can view their submission assessments
3
  In order to view submission assessments when workshop is closed
4
  As a teacher
5
  I should be able to set the workshop to closed phase
6
 
7
  Background:
8
    Given the following "users" exist:
9
      | username | firstname | lastname | email                |
10
      | teacher1 | Teacher   | One      | teacher1@example.com |
11
      | student1 | One       | Student  | student1@example.com |
12
      | student2 | Two       | Student  | student2@example.com |
13
    And the following "courses" exist:
14
      | fullname | shortname |
15
      | Course 1 | C1        |
16
    And the following "course enrolments" exist:
17
      | user     | course | role           |
18
      | teacher1 | C1     | editingteacher |
19
      | student1 | C1     | student        |
20
      | student2 | C1     | student        |
21
    And the following "activities" exist:
22
      | activity | name       | course | submissiontypetext |
23
      | workshop | Workshop 1 | C1     | 2                  |
24
    And I am on the "Workshop 1" "workshop activity" page logged in as teacher1
25
    And I edit assessment form in workshop "Workshop 1" as:
26
      | id_description__idx_0_editor | Aspect1 |
27
    And I change phase in workshop "Workshop 1" to "Submission phase"
28
    # Create workshop submissions.
29
    And I am on the "Workshop 1" "workshop activity" page logged in as student1
30
    And I add a submission in workshop "Workshop 1" as:
31
      | Title              | Submission 1         |
32
      | Submission content | Submission 1 content |
33
    And I am on the "Workshop 1" "workshop activity" page logged in as student2
34
    And I add a submission in workshop "Workshop 1" as:
35
      | Title              | Submission 2         |
36
      | Submission content | Submission 2 content |
37
    And I am on the "Workshop 1" "workshop activity" page logged in as teacher1
38
    And I change phase in workshop "Workshop 1" to "Assessment phase"
39
    # Allocate and assess submissions.
40
    And I allocate submissions in workshop "Workshop 1" as:
41
      | Participant | Reviewer    |
42
      | One Student | Two Student |
43
      | Two Student | One Student |
44
    And I am on the "Workshop 1" "workshop activity" page logged in as student1
45
    And I assess submission "Two" in workshop "Workshop 1" as:
46
      | grade__idx_0            | 5 / 10            |
47
      | peercomment__idx_0      | You can do better |
48
    And I am on the "Workshop 1" "workshop activity" page logged in as student2
49
    And I assess submission "One" in workshop "Workshop 1" as:
50
      | grade__idx_0            | 8 / 10            |
51
      | peercomment__idx_0      | Great job!        |
52
 
53
  Scenario: Student can view their submission assessment after workshop is closed
54
    # Re-calculate grades to generate workshop grades from assessment.
55
    Given I am on the "Course 1" course page logged in as teacher1
56
    And I change phase in workshop "Workshop 1" to "Grading evaluation phase"
57
    And I am on the "Workshop 1" "workshop activity" page
58
    And I click on "Re-calculate grades" "button"
59
    # Close workshop activity.
60
    And I change phase in workshop "Workshop 1" to "Closed"
61
    When I am on the "Course 1" "grades > Grader report > View" page
62
    # Confirm that grades are reflected on the gradebook.
63
    Then the following should exist in the "user-grades" table:
64
      | -1-         | -2-                  | -3-   |
65
      | One Student | student1@example.com | 64.00 |
66
      | Two Student | student2@example.com | 40.00 |
67
    # Confirm that student can view submission assessment grades and comments after workshop is closed.
68
    And I am on the "Workshop 1" "workshop activity" page logged in as student1
69
    And I click on "Submission 1" "link"
70
    And I should see "8 / 10"
71
    And I should see "Great job!"
72
    And I am on the "Workshop 1" "workshop activity" page logged in as student2
73
    And I click on "Submission 2" "link"
74
    And I should see "5 / 10"
75
    And I should see "You can do better"