[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 @mod @mod_assign 2 Feature: Grant an extension to an offline student 3 In order to allow students to have an accurate due date 4 As a teacher 5 I need to grant students extensions at any time 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 | student2 | Student | 2 | student2@example.com | 16 | student3 | Student | 3 | student3@example.com | 17 | student4 | Student | 4 | student4@example.com | 18 | student5 | Student | 5 | student5@example.com | 19 | student6 | Student | 6 | student6@example.com | 20 And the following "course enrolments" exist: 21 | user | course | role | 22 | teacher1 | C1 | editingteacher | 23 | student1 | C1 | student | 24 | student2 | C1 | student | 25 | student3 | C1 | student | 26 | student4 | C1 | student | 27 | student5 | C1 | student | 28 | student6 | C1 | student | 29 30 @javascript 31 Scenario: Granting an extension to an offline assignment 32 Given the following "activities" exist: 33 | activity | course | idnumber | name | intro | assignsubmission_onlinetext_enabled | assignsubmission_file_enabled | duedate | 34 | assign | C1 | assign1 | Test assignment name | Test assignment description | 0 | 0 | 1388534400 | 35 And I log in as "teacher1" 36 And I follow "Course 1" 37 And I follow "Test assignment name" 38 When I follow "View all submissions" 39 And I click on "Edit" "link" in the "Student 1" "table_row" 40 And I follow "Grant extension" 41 And I should see "Student 1 (student1@example.com)" 42 And I set the field "Enable" to "1" 43 And I press "Save changes" 44 Then I should see "Extension granted until:" in the "Student 1" "table_row" 45 And I log out 46 And I log in as "student1" 47 And I follow "Course 1" 48 And I follow "Test assignment name" 49 And I should see "Extension due date" 50 51 @javascript @_alert 52 Scenario: Granting extensions to an offline assignment (batch action) 53 Given the following "activities" exist: 54 | activity | course | idnumber | name | intro | assignsubmission_onlinetext_enabled | assignsubmission_file_enabled | duedate | 55 | assign | C1 | assign1 | Test assignment name | Test assignment description | 0 | 0 | 1388534400 | 56 And I log in as "teacher1" 57 And I follow "Course 1" 58 And I follow "Test assignment name" 59 When I follow "View all submissions" 60 And I set the field "selectall" to "1" 61 And I set the field "operation" to "Grant extension" 62 And I click on "Go" "button" confirming the dialogue 63 And I should see "Student 1 (student1@example.com)" 64 And I should see "Student 2 (student2@example.com)" 65 And I should see "Student 3 (student3@example.com)" 66 And I should see "Student 4 (student4@example.com)" 67 And I should see "Student 5 (student5@example.com)" 68 And I should see "1 more..." 69 And I set the field "Enable" to "1" 70 And I press "Save changes" 71 Then I should see "Extension granted until:" in the "Student 1" "table_row" 72 And I should see "Extension granted until:" in the "Student 2" "table_row" 73 And I should see "Extension granted until:" in the "Student 3" "table_row" 74 And I should see "Extension granted until:" in the "Student 4" "table_row" 75 And I should see "Extension granted until:" in the "Student 5" "table_row" 76 And I should see "Extension granted until:" in the "Student 6" "table_row" 77 And I log out 78 And I log in as "student1" 79 And I follow "Course 1" 80 And I follow "Test assignment name" 81 And I should see "Extension due date"
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 |