Proyectos de Subversion Moodle

Rev

Ir a la última revisión | | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@core @core_grades
2
Feature: Regrading grades does not unnecessarily mark some as overriden
3
  In order to regrade a grade item
4
  As an admin
5
  I need to keep the overridden status of all grades
6
 
7
  Background:
8
    Given the following "courses" exist:
9
      | fullname | shortname | category | format |
10
      | Course 1 | C1 | 0 | topics |
11
    And the following "users" exist:
12
      | username | firstname | lastname | email | idnumber |
13
      | student1 | Student | 1 | student1@example.com | s1 |
14
      | student2 | Student | 2 | student2@example.com | s2 |
15
    And the following "course enrolments" exist:
16
      | user | course | role |
17
      | student1 | C1 | student |
18
      | student2 | C1 | student |
19
    And the following "activities" exist:
20
      | activity | course | idnumber | name | intro |
21
      | assign | C1 | assign1 | Assignment 1 | Assignment 1 intro |
22
    And I log in as "admin"
23
    And I navigate to "Grades > Grade category settings" in site administration
24
    And I set the field "Available aggregation types" to "Weighted mean of grades"
25
    And I press "Save changes"
26
    And I am on the "Assignment 1" "assign activity" page
27
    And I follow "View all submissions"
28
    And I click on "Grade" "link" in the "Student 1" "table_row"
29
    And I set the field "Grade out of 100" to "80"
30
    And I press "Save and show next"
31
    And I set the field "Grade out of 100" to "60"
32
    And I press "Save changes"
33
    And I am on the "Course 1" "grades > Grader report > View" page
34
    And the following should exist in the "gradereport-grader-table" table:
35
      |                      |              |              |
36
      | First name / Last name | Assignment 1 | Course total |
37
      | Student 1            | 80.00        | 80.00        |
38
      | Student 2            | 60.00        | 60.00        |
39
    And I turn editing mode on
40
    And I give the grade "80.00" to the user "Student 2" for the grade item "Course total"
41
    And I press "Save changes"
42
    And I navigate to "Setup > Gradebook setup" in the course gradebook
43
    And I set the following settings for grade item "Course 1" of type "course" on "setup" page:
44
      | Aggregation               | Weighted mean of grades |
45
      | Rescale overridden grades | Yes                     |
46
      | Maximum grade             | 200                     |
47
    And I press "Save changes"
48
 
49
  @javascript
50
  Scenario: Confirm regrading did not overwrite overridden status
51
    Given I navigate to "View > Grader report" in the course gradebook
52
    Then "td.overridden" "css_element" should not exist in the "Student 1" "table_row"
53
    And "td.overridden" "css_element" should exist in the "Student 2" "table_row"
54
 
55
  @javascript
56
  Scenario: Confirm overridden course total does not get regraded when activity grade is changed
57
    Given I am on the "Assignment 1" "assign activity" page
58
    And I follow "View all submissions"
59
    And I click on "Grade" "link" in the "Student 1" "table_row"
60
    And I set the field "Grade out of 100" to "90"
61
    And I press "Save and show next"
62
    And I set the field "Grade out of 100" to "70"
63
    And I press "Save changes"
64
    When I am on the "Course 1" "grades > Grader report > View" page
65
    And I turn editing mode off
66
    Then the following should exist in the "gradereport-grader-table" table:
67
      |                      |              |              |
68
      | First name / Last name | Assignment 1 | Course total |
69
      | Student 1            | 90.00        | 180.00       |
70
      | Student 2            | 70.00        | 160.00       |