Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1441 ariadna 1
@gradereport @gradereport_grader @gradereport_grade_override
2
Feature: As a teacher, I want to override a grade with a deduction and check the gradebook.
3
  The deducted mark should not affect the overridden grade.
4
 
5
  Background:
6
    Given the following "courses" exist:
7
      | fullname | shortname | format |
8
      | Course 1 | C1        | topics |
9
    And the following "users" exist:
10
      | username | firstname | lastname | email                |
11
      | teacher1 | Teacher   | 1        | teacher1@example.com |
12
      | student1 | Student   | 1        | student1@example.com |
13
    And the following "course enrolments" exist:
14
      | user     | course | role           |
15
      | teacher1 | C1     | editingteacher |
16
      | student1 | C1     | student        |
17
    And the following "grade items" exist:
18
      | itemname        | grademin | grademax | course |
19
      | Manual grade 01 | 0       | 100       | C1     |
20
      | Manual grade 02 | 0       | 100       | C1     |
21
    When the following "grade grades" exist:
22
      | gradeitem       | user     | grade | deductedmark |
23
      | Manual grade 01 | student1 | 60    | 10           |
24
      | Manual grade 02 | student1 | 80    | 20           |
25
 
26
  @javascript
27
  Scenario: Override a grade with a deduction and check the gradebook
28
    Given I am on the "Course 1" course page logged in as "teacher1"
29
    And I navigate to "View > Grader report" in the course gradebook
30
    And the following should exist in the "user-grades" table:
31
      | -1-                | -2-                  | -3-       | -4-       | -5-       |
32
      | Student 1          | student1@example.com | 60        | 80        | 140       |
33
    And I turn editing mode on
34
    And I set the following fields to these values:
35
        | Student 1 Manual grade 01 grade             | 80 |
36
    And I click on "Save changes" "button"
37
    When I turn editing mode off
38
    Then the following should exist in the "user-grades" table:
39
      | -1-                | -2-                  | -3-       | -4-      | -5-       |
40
      | Student 1          | student1@example.com | 80        | 80       | 160       |
41
    When I turn editing mode on
42
    And I set the following fields to these values:
43
      | Student 1 Manual grade 02 grade             | 100 |
44
    And I click on "Save changes" "button"
45
    And I turn editing mode off
46
    Then the following should exist in the "user-grades" table:
47
      | -1-                | -2-                  | -3-       | -4-       | -5-       |
48
      | Student 1          | student1@example.com | 80        | 100       | 180       |