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
@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
 
7
  # Atto is necessary to use in this test to circumvent an error in Firefox when using Tiny.
8
  # See issue MDL-77740 for more context, although that implementation does not fix it here.
9
  @javascript @editor_atto
10
  Scenario: Edit feedback for a students previous attempt.
11
    Given the following "courses" exist:
12
      | fullname | shortname | category | groupmode |
13
      | Course 1 | C1 | 0 | 1 |
14
    And the following "users" exist:
15
      | username | firstname | lastname | email |
16
      | teacher1 | Teacher | 1 | teacher1@example.com |
17
      | student1 | Student | 1 | student1@example.com |
18
      | student2 | Student | 2 | student2@example.com |
19
    And the following "course enrolments" exist:
20
      | user | course | role |
21
      | teacher1 | C1 | editingteacher |
22
      | student1 | C1 | student |
23
      | student2 | C1 | student |
24
    And the following "activity" exists:
25
      | activity                            | assign                  |
26
      | course                              | C1                      |
27
      | name                                | Test assignment name    |
28
      | intro                               | Submit your online text |
29
      | assignsubmission_onlinetext_enabled | 1                       |
30
      | assignfeedback_comments_enabled     | 1                       |
31
      | submissiondrafts                    | 0                       |
32
      | attemptreopenmethod                 | manual                  |
33
    And the following "mod_assign > submissions" exist:
34
      | assign                | user      | onlinetext                        |
35
      | Test assignment name  | student2  | I'm the student first submission  |
36
    And I am on the "Test assignment name" Activity page logged in as teacher1
37
    And I follow "View all submissions"
38
    And I click on "Grade" "link" in the "Student 2" "table_row"
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
52
    And I follow "View all submissions"
53
    And I click on "Grade" "link" in the "Student 2" "table_row"
54
    And I click on "View a different attempt" "link"
55
    And I click on "Attempt 1" "radio" in the "View a different attempt" "dialogue"
56
    And I click on "View" "button" in the "View a different attempt" "dialogue"
57
    And I set the following fields to these values:
58
      | Grade | 50 |
59
      | Feedback comments | I'm the teacher second feedback |
60
    And I press "Save changes"
61
    And I click on "Edit settings" "link"
62
    And I log out
63
 
64
    And I am on the "Test assignment name" Activity page logged in as student2
65
    Then I should see "I'm the teacher second feedback" in the "Feedback comments" "table_row"
66
    And I should see "50.00"
67
    And I click on ".mod-assign-history-link" "css_element"
68
    And I should not see "I'm the teacher second feedback" in the "Feedback comments" "table_row"