[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 @mod @mod_assign @javascript 2 Feature: In an assignment, students can comment in their submissions 3 In order to refine assignment submissions 4 As a student 5 I need to add comments about submissions 6 7 Background: 8 Given the following "courses" exist: 9 | fullname | shortname | category | groupmode | 10 | Course 1 | C1 | 0 | 1 | 11 And the following "users" exist: 12 | username | firstname | lastname | email | 13 | teacher1 | Teacher | 1 | teacher1@example.com | 14 | student1 | Student | 1 | student1@example.com | 15 And the following "course enrolments" exist: 16 | user | course | role | 17 | teacher1 | C1 | editingteacher | 18 | student1 | C1 | student | 19 20 Scenario: Student comments an assignment submission 21 Given the following "activities" exist: 22 | activity | course | idnumber | name | intro | assignsubmission_onlinetext_enabled | 23 | assign | C1 | assign1 | Test assignment name | Test assignment description | 1 | 24 And I log in as "student1" 25 And I follow "Course 1" 26 And I follow "Test assignment name" 27 When I press "Add submission" 28 And I set the following fields to these values: 29 | Online text | I'm the student submission | 30 And I press "Save changes" 31 And I click on ".comment-link" "css_element" 32 And I set the field "content" to "First student comment" 33 And I follow "Save comment" 34 Then I should see "First student comment" 35 And the field "content" matches value "Add a comment..." 36 And I follow "Delete this comment" 37 # Wait for the animation to finish. 38 And I wait "2" seconds 39 And I set the field "content" to "Second student comment" 40 And I follow "Save comment" 41 And I should see "Second student comment" 42 And I should not see "First student comment" 43 And I follow "Test assignment name" 44 And I click on ".comment-link" "css_element" 45 And I should see "Second student comment" 46 And I should not see "First student comment" 47 48 Scenario: Teacher can comment on an offline assignment 49 Given the following "activities" exist: 50 | activity | course | idnumber | name | intro | assignsubmission_onlinetext_enabled | assignmentsubmission_file_enabled | assignfeedback_comments_enabled | 51 | assign | C1 | assign1 | Test assignment name | Test assignment description | 0 | 0 | 1 | 52 And I log in as "teacher1" 53 And I follow "Course 1" 54 And I follow "Test assignment name" 55 And I follow "View all submissions" 56 And I click on "Grade" "link" in the "Student 1" "table_row" 57 When I set the following fields to these values: 58 | Grade out of 100 | 50 | 59 | Feedback comments | I'm the teacher feedback | 60 And I press "Save changes" 61 And I press "Ok" 62 And I click on "Edit settings" "link" 63 And I follow "Test assignment name" 64 And I follow "View all submissions" 65 Then I should see "50.00" in the "Student 1" "table_row" 66 And I should see "I'm the teacher feedback" in the "Student 1" "table_row" 67 68 Scenario: Teacher can comment on assignments with a zero grade 69 Given the following "activities" exist: 70 | activity | course | idnumber | name | intro | assignsubmission_onlinetext_enabled | assignmentsubmission_file_enabled | assignfeedback_comments_enabled | 71 | assign | C1 | assign1 | Test assignment name | Test assignment description | 0 | 0 | 1 | 72 And I log in as "teacher1" 73 And I follow "Course 1" 74 And I follow "Test assignment name" 75 And I follow "View all submissions" 76 And I click on "Grade" "link" in the "Student 1" "table_row" 77 And I set the following fields to these values: 78 | Grade out of 100 | 0 | 79 And I press "Save changes" 80 And I should see "The changes to the grade and feedback were saved" 81 And I press "Ok" 82 And I set the following fields to these values: 83 | Feedback comments | I'm the teacher feedback | 84 And I press "Save changes" 85 Then I should see "The changes to the grade and feedback were saved"
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Thu Aug 11 10:00:09 2016 | Cross-referenced by PHPXref 0.7.1 |