Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@mod @mod_assign
2
Feature: Assignments correctly add feedback to the grade report when workflow and blind marking are enabled.
3
  In order to give students feedback when blind marking
4
  As a teacher
5
  I should be able to reveal student identities at any time and have my feedback show
6
  to the student in the gradebook when the grades are in a released state.
7
 
8
  Background:
9
    Given the following "courses" exist:
10
      | fullname | shortname | category | groupmode |
11
      | Course 1 | C1 | 0 | 1 |
12
    And the following "users" exist:
13
      | username | firstname | lastname | email |
14
      | teacher1 | Teacher | 1 | teacher1@example.com |
15
      | student1 | Student | 1 | student1@example.com |
16
    And the following "course enrolments" exist:
17
      | user | course | role |
18
      | teacher1 | C1 | editingteacher |
19
      | student1 | C1 | student |
20
    And the following "activity" exists:
21
      | activity                            | assign                      |
22
      | course                              | C1                          |
23
      | name                                | Test assignment name        |
24
      | submissiondrafts                    | 0                           |
25
      | assignsubmission_onlinetext_enabled | 1                           |
26
      | assignsubmission_file_enabled       | 0                           |
27
      | assignfeedback_comments_enabled     | 1                           |
28
      | teamsubmission                      | 1                           |
29
      | markingworkflow                     | 1                           |
30
      | blindmarking                        | 1                           |
31
    And the following "mod_assign > submissions" exist:
32
      | assign                | user      | onlinetext                          |
33
      | Test assignment name  | student1  | I'm the student's first submission  |
34
 
35
    # Mark the submission.
36
    And I am on the "Test assignment name" Activity page logged in as teacher1
37
    And I follow "View all submissions"
38
    And I should see "Not marked" in the "I'm the student's first submission" "table_row"
39
    And I click on "Grade" "link" in the "I'm the student's first submission" "table_row"
40
    And I set the field "Grade out of 100" to "50"
41
    And I set the field "Marking workflow state" to "In review"
42
    And I set the field "Feedback comments" to "Great job! Lol, not really."
43
    And I set the field "Notify student" to "0"
44
    And I press "Save changes"
45
    And I follow "View all submissions"
46
    And I should see "In review" in the "I'm the student's first submission" "table_row"
47
 
48
  @javascript
49
  Scenario: Student identities are revealed after releasing the grades.
50
    When I click on "Grade" "link" in the "I'm the student's first submission" "table_row"
51
    And I set the field "Marking workflow state" to "Ready for release"
52
    And I set the field "Notify student" to "0"
53
    And I press "Save changes"
54
    And I follow "View all submissions"
55
    And I should see "Ready for release" in the "I'm the student's first submission" "table_row"
56
    And I click on "Grade" "link" in the "I'm the student's first submission" "table_row"
57
    And I set the field "Marking workflow state" to "Released"
58
    And I press "Save changes"
59
    And I follow "View all submissions"
60
    And I should see "Released" in the "I'm the student's first submission" "table_row"
61
    And I set the field "Grading action" to "Reveal student identities"
62
    And I press "Continue"
63
    And I am on the "Course 1" "grades > User report > View" page logged in as "student1"
64
    Then I should see "50"
65
    And I should see "Great job! Lol, not really."
66
 
67
  @javascript
68
  Scenario: Student identities are revealed before releasing the grades.
69
    When I click on "Grade" "link" in the "I'm the student's first submission" "table_row"
70
    And I set the field "Marking workflow state" to "Ready for release"
71
    And I set the field "Notify student" to "0"
72
    And I press "Save changes"
73
    And I follow "View all submissions"
74
    And I should see "Ready for release" in the "I'm the student's first submission" "table_row"
75
    And I set the field "Grading action" to "Reveal student identities"
76
    And I press "Continue"
77
    And I click on "Grade" "link" in the "Student 1" "table_row"
78
    And I set the field "Marking workflow state" to "Released"
79
    And I press "Save changes"
80
    And I follow "View all submissions"
81
    And I should see "Released" in the "Student 1" "table_row"
82
    And I am on the "Course 1" "grades > User report > View" page logged in as "student1"
83
    Then I should see "50"
84
    And I should see "Great job! Lol, not really."
85
 
86
  @javascript
87
  Scenario: Submissions table visible with overrides and blind marking
88
    When I am on the "Test assignment name" "assign activity" page
89
    And I navigate to "Overrides" in current page administration
90
    And I press "Add user override"
91
    And I set the following fields to these values:
92
      | Override user | Student              |
93
      | Due date      | ##2030-01-01 08:00## |
94
    And I press "Save"
95
    And I should see "Tuesday, 1 January 2030, 8:00"
96
    And I am on the "Test assignment name" "assign activity" page
97
    And I follow "View all submissions"
98
    And I should see "In review" in the "I'm the student's first submission" "table_row"