Proyectos de Subversion Moodle

Rev

Rev 1 | | Comparar con el anterior | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@mod @mod_assign
2
Feature: In an assignment, teachers can edit feedback for a students previous submission attempt
3
  In order to correct feedback for a previous submission attempt
4
  As a teacher
5
  I need to be able to edit the feedback for a students previous submission attempt.
6
 
11 efrain 7
  @javascript
1 efrain 8
  Scenario: Edit feedback for a students previous attempt.
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
      | student2 | Student | 2 | student2@example.com |
17
    And the following "course enrolments" exist:
18
      | user | course | role |
19
      | teacher1 | C1 | editingteacher |
20
      | student1 | C1 | student |
21
      | student2 | C1 | student |
22
    And the following "activity" exists:
23
      | activity                            | assign                  |
24
      | course                              | C1                      |
25
      | name                                | Test assignment name    |
26
      | intro                               | Submit your online text |
27
      | assignsubmission_onlinetext_enabled | 1                       |
28
      | assignfeedback_comments_enabled     | 1                       |
29
      | submissiondrafts                    | 0                       |
30
      | attemptreopenmethod                 | manual                  |
31
    And the following "mod_assign > submissions" exist:
32
      | assign                | user      | onlinetext                        |
33
      | Test assignment name  | student2  | I'm the student first submission  |
34
    And I am on the "Test assignment name" Activity page logged in as teacher1
35
    And I follow "View all submissions"
36
    And I click on "Grade" "link" in the "Student 2" "table_row"
37
    And I set the following fields to these values:
38
      | Grade | 49 |
39
      | Feedback comments | I'm the teacher first feedback |
40
      | Allow another attempt | Yes |
41
    And I press "Save changes"
42
    And I click on "Edit settings" "link"
43
    And I log out
44
 
45
    And I am on the "Test assignment name" Activity page logged in as student2
46
    And I should see "I'm the teacher first feedback" in the "Feedback comments" "table_row"
47
    And I log out
48
 
49
    And I am on the "Test assignment name" Activity page logged in as teacher1
50
    And I follow "View all submissions"
51
    And I click on "Grade" "link" in the "Student 2" "table_row"
52
    And I click on "View a different attempt" "link"
53
    And I click on "Attempt 1" "radio" in the "View a different attempt" "dialogue"
54
    And I click on "View" "button" in the "View a different attempt" "dialogue"
55
    And I set the following fields to these values:
56
      | Grade | 50 |
57
      | Feedback comments | I'm the teacher second feedback |
58
    And I press "Save changes"
59
    And I click on "Edit settings" "link"
60
    And I log out
61
 
62
    And I am on the "Test assignment name" Activity page logged in as student2
63
    Then I should see "I'm the teacher second feedback" in the "Feedback comments" "table_row"
64
    And I should see "50.00"
65
    And I click on ".mod-assign-history-link" "css_element"
66
    And I should not see "I'm the teacher second feedback" in the "Feedback comments" "table_row"