Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@mod @mod_assign @assignfeedback @assignfeedback_comments
2
Feature: Check that any changes to assignment feedback comments are not lost
3
  if the grading form validation fails due to an invalid grade.
4
  In order to ensure that the feedback changes are not lost
5
  As a teacher
6
  I need to grade a student and ensure that all feedback changes are preserved
7
 
8
  @javascript
9
  Scenario: Update the grade and feedback for an assignment
10
    Given the following "courses" exist:
11
      | fullname | shortname |
12
      | Course 1 | C1        |
13
    And the following "users" exist:
14
      | username | firstname | lastname | email                |
15
      | teacher1 | Teacher   | 1        | teacher1@example.com |
16
      | student1 | Student   | 1        | student1@example.com |
17
    And the following "course enrolments" exist:
18
      | user     | course | role           |
19
      | teacher1 | C1     | editingteacher |
20
      | student1 | C1     | student        |
21
    And the following "activities" exist:
22
      | activity | name                 | course | assignfeedback_comments_enabled |
23
      | assign   | Test assignment name | C1     | 1                               |
24
    And I am on the "Test assignment name" Activity page logged in as teacher1
25
    And I follow "View all submissions"
26
    And I click on "Grade" "link" in the "Student 1" "table_row"
27
    When I set the following fields to these values:
28
      | Grade out of 100  | 101                    |
29
      | Feedback comments | Feedback from teacher. |
30
    And I press "Save changes"
31
    Then I should see "Grade must be less than or equal to 100."
32
    And the following fields match these values:
33
      | Feedback comments | Feedback from teacher. |