Proyectos de Subversion Moodle

Rev

Rev 11 | | 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                       |
1441 ariadna 30
      | maxattempts                         | -1                      |
1 efrain 31
      | attemptreopenmethod                 | manual                  |
32
    And the following "mod_assign > submissions" exist:
33
      | assign                | user      | onlinetext                        |
34
      | Test assignment name  | student2  | I'm the student first submission  |
35
    And I am on the "Test assignment name" Activity page logged in as teacher1
1441 ariadna 36
    And I change window size to "large"
37
    And I go to "Student 2" "Test assignment name" activity advanced grading page
38
    And I change window size to "medium"
1 efrain 39
    And I set the following fields to these values:
40
      | Grade | 49 |
41
      | Feedback comments | I'm the teacher first feedback |
42
      | Allow another attempt | Yes |
43
    And I press "Save changes"
44
    And I click on "Edit settings" "link"
45
    And I log out
46
 
47
    And I am on the "Test assignment name" Activity page logged in as student2
48
    And I should see "I'm the teacher first feedback" in the "Feedback comments" "table_row"
49
    And I log out
50
 
51
    And I am on the "Test assignment name" Activity page logged in as teacher1
1441 ariadna 52
    And I change window size to "large"
53
    And I go to "Student 2" "Test assignment name" activity advanced grading page
54
    And I change window size to "medium"
1 efrain 55
    And I click on "View a different attempt" "link"
56
    And I click on "Attempt 1" "radio" in the "View a different attempt" "dialogue"
57
    And I click on "View" "button" in the "View a different attempt" "dialogue"
58
    And I set the following fields to these values:
59
      | Grade | 50 |
60
      | Feedback comments | I'm the teacher second feedback |
61
    And I press "Save changes"
62
    And I click on "Edit settings" "link"
63
    And I log out
64
 
65
    And I am on the "Test assignment name" Activity page logged in as student2
66
    Then I should see "I'm the teacher second feedback" in the "Feedback comments" "table_row"
67
    And I should see "50.00"
68
    And I click on ".mod-assign-history-link" "css_element"
69
    And I should not see "I'm the teacher second feedback" in the "Feedback comments" "table_row"