[ Index ] |
PHP Cross Reference of moodle-2.8 |
[Summary view] [Print] [Text view]
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 @javascript 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 | [email protected] | 15 | student1 | Student | 1 | [email protected] | 16 | student2 | Student | 2 | [email protected] | 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 I log in as "teacher1" 23 And I follow "Course 1" 24 And I turn editing mode on 25 And I add a "Assignment" to section "1" and I fill the form with: 26 | Assignment name | Test assignment name | 27 | Description | Submit your online text | 28 | assignsubmission_onlinetext_enabled | 1 | 29 | assignfeedback_comments_enabled | 1 | 30 | Attempts reopened | Manually | 31 And I log out 32 And I log in as "student2" 33 And I follow "Course 1" 34 And I follow "Test assignment name" 35 And I press "Add submission" 36 And I set the following fields to these values: 37 | Online text | I'm the student first submission | 38 And I press "Save changes" 39 And I log out 40 And I log in as "teacher1" 41 And I follow "Course 1" 42 And I follow "Test assignment name" 43 And I follow "View/grade all submissions" 44 And I click on "Grade Student 2" "link" in the "Student 2" "table_row" 45 And I set the following fields to these values: 46 | Grade | 49 | 47 | Feedback comments | I'm the teacher first feedback | 48 | Allow another attempt | Yes | 49 And I press "Save changes" 50 And I log out 51 And I log in as "student2" 52 And I follow "Course 1" 53 And I follow "Test assignment name" 54 And I click on ".mod-assign-history-link" "css_element" 55 And I should see "I'm the teacher first feedback" in the "Feedback comments" "table_row" 56 And I log out 57 When I log in as "teacher1" 58 And I follow "Course 1" 59 And I follow "Test assignment name" 60 And I follow "View/grade all submissions" 61 And I click on "Grade Student 2" "link" in the "Student 2" "table_row" 62 And I click on ".mod-assign-history-link" "css_element" 63 And I follow "Edit the grade and feedback for attempt number 1" 64 And I set the following fields to these values: 65 | Grade | 50 | 66 | Feedback comments | I'm the teacher second feedback | 67 And I press "Save changes" 68 And I log out 69 Then I log in as "student2" 70 And I follow "Course 1" 71 And I follow "Test assignment name" 72 And I click on ".mod-assign-history-link" "css_element" 73 And I should see "I'm the teacher second feedback" in the "Feedback comments" "table_row" 74 And I should see "50.00"
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Fri Nov 28 20:29:05 2014 | Cross-referenced by PHPXref 0.7.1 |