Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 51... Línea 51...
51
      | assign    | C1      | Test assignment name  | 1                                    |
51
      | assign    | C1      | Test assignment name  | 1                                    |
52
    And the following "mod_assign > submissions" exist:
52
    And the following "mod_assign > submissions" exist:
53
      | assign                | user      | onlinetext              |
53
      | assign                | user      | onlinetext              |
54
      | Test assignment name  | student1  | student one submission  |
54
      | Test assignment name  | student1  | student one submission  |
55
    And I am on the "Test assignment name" Activity page logged in as teacher1
55
    And I am on the "Test assignment name" Activity page logged in as teacher1
56
    And I follow "View all submissions"
-
 
57
    And I click on "Grade" "link" in the "Student 1" "table_row"
56
    And I go to "Student 1" "Test assignment name" activity advanced grading page
58
    And I click on ".comment-link" "css_element"
57
    And I click on ".comment-link" "css_element"
59
    When I set the field "content" to "Teacher feedback first comment"
58
    When I set the field "content" to "Teacher feedback first comment"
60
    And I press "Save changes"
59
    And I press "Save changes"
61
    And I should see "Comments (1)" in the ".comment-link" "css_element"
60
    And I should see "Comments (1)" in the ".comment-link" "css_element"
62
    And I click on ".comment-link" "css_element"
61
    And I click on ".comment-link" "css_element"
Línea 69... Línea 68...
69
    And the following "mod_assign > submissions" exist:
68
    And the following "mod_assign > submissions" exist:
70
      | assign                | user      | onlinetext                  |
69
      | assign                | user      | onlinetext                  |
71
      | Test assignment name  | student1  | I'm the student submission  |
70
      | Test assignment name  | student1  | I'm the student submission  |
Línea 72... Línea 71...
72
 
71
 
73
    And I am on the "Test assignment name" Activity page logged in as teacher1
-
 
74
    And I follow "View all submissions"
72
    And I am on the "Test assignment name" Activity page logged in as teacher1
75
    And I click on "Grade" "link" in the "Student 1" "table_row"
73
    And I go to "Student 1" "Test assignment name" activity advanced grading page
76
    And I click on ".comment-link" "css_element"
74
    And I click on ".comment-link" "css_element"
77
    When I set the field "content" to "Teacher feedback first comment"
75
    When I set the field "content" to "Teacher feedback first comment"
78
    # click the save and show next twice as we have only 2 students
76
    # click the save and show next twice as we have only 2 students
79
    # so the second time you click we reach the same student who made
77
    # so the second time you click we reach the same student who made
Línea 86... Línea 84...
86
  Scenario: Teacher can comment on an offline assignment
84
  Scenario: Teacher can comment on an offline assignment
87
    Given the following "activities" exist:
85
    Given the following "activities" exist:
88
      | activity  | course  | name                  | assignsubmission_onlinetext_enabled  | assignmentsubmission_file_enabled  | assignfeedback_comments_enabled  |
86
      | activity  | course  | name                  | assignsubmission_onlinetext_enabled  | assignmentsubmission_file_enabled  | assignfeedback_comments_enabled  |
89
      | assign    | C1      | Test assignment name  | 0                                    | 0                                  | 1                                |
87
      | assign    | C1      | Test assignment name  | 0                                    | 0                                  | 1                                |
90
    And I am on the "Test assignment name" Activity page logged in as teacher1
88
    And I am on the "Test assignment name" Activity page logged in as teacher1
91
    And I follow "View all submissions"
-
 
92
    And I click on "Grade" "link" in the "Student 1" "table_row"
89
    And I go to "Student 1" "Test assignment name" activity advanced grading page
93
    When I set the following fields to these values:
90
    When I set the following fields to these values:
94
      | Grade out of 100   | 50                        |
91
      | Grade out of 100   | 50                        |
95
      | Feedback comments  | I'm the teacher feedback  |
92
      | Feedback comments  | I'm the teacher feedback  |
96
    And I press "Save changes"
93
    And I press "Save changes"
97
    And I follow "View all submissions"
94
    And I follow "View all submissions"
Línea 101... Línea 98...
101
  Scenario: Teacher can comment on assignments with a zero grade
98
  Scenario: Teacher can comment on assignments with a zero grade
102
    Given the following "activities" exist:
99
    Given the following "activities" exist:
103
      | activity  | course  | name                  | assignsubmission_onlinetext_enabled  | assignmentsubmission_file_enabled  | assignfeedback_comments_enabled  |
100
      | activity  | course  | name                  | assignsubmission_onlinetext_enabled  | assignmentsubmission_file_enabled  | assignfeedback_comments_enabled  |
104
      | assign    | C1      | Test assignment name  | 0                                    | 0                                  | 1                                |
101
      | assign    | C1      | Test assignment name  | 0                                    | 0                                  | 1                                |
105
    And I am on the "Test assignment name" Activity page logged in as teacher1
102
    And I am on the "Test assignment name" Activity page logged in as teacher1
106
    And I follow "View all submissions"
-
 
107
    And I click on "Grade" "link" in the "Student 1" "table_row"
103
    And I go to "Student 1" "Test assignment name" activity advanced grading page
108
    And I set the following fields to these values:
104
    And I set the following fields to these values:
109
      | Grade out of 100 | 0 |
105
      | Grade out of 100 | 0 |
110
    And I press "Save changes"
106
    And I press "Save changes"
111
    And I should see "The changes to the grade and feedback were saved"
107
    And I should see "The changes to the grade and feedback were saved"
112
    And I set the following fields to these values:
108
    And I set the following fields to these values: