[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 @block @block_activity_results 2 Feature: The activity results block can have administrator set defaults 3 In order to be customize the activity results block 4 As an admin 5 I need can assign some site wide defaults 6 7 Background: 8 Given the following "users" exist: 9 | username | firstname | lastname | email | idnumber | 10 | teacher1 | Teacher | 1 | teacher1@example.com | T1 | 11 | student1 | Student | 1 | student1@example.com | S1 | 12 And the following "courses" exist: 13 | fullname | shortname | category | 14 | Course 1 | C1 | 0 | 15 And the following "course enrolments" exist: 16 | user | course | role | 17 | teacher1 | C1 | editingteacher | 18 | student1 | C1 | student | 19 20 Scenario: Assign some site-wide defaults to the block. 21 Given the following config values are set as admin: 22 | config_showbest | 0 | block_activity_results | 23 | config_showworst | 0 | block_activity_results | 24 | config_gradeformat | 2 | block_activity_results | 25 | config_nameformat | 2 | block_activity_results | 26 And I log in as "teacher1" 27 And I follow "Course 1" 28 And I turn editing mode on 29 And I add a "Assignment" to section "1" and I fill the form with: 30 | Assignment name | Test assignment | 31 | Description | Offline text | 32 | assignsubmission_file_enabled | 0 | 33 And I follow "Course 1" 34 And I add the "Activity results" block 35 When I configure the "Activity results" block 36 And the following fields match these values: 37 | id_config_showbest | 0 | 38 | id_config_showworst | 0 | 39 | id_config_gradeformat | Fractions | 40 | id_config_nameformat | Display only ID numbers | 41 And I press "Save changes" 42 Then I should see "This block's configuration currently does not allow it to show any results." in the "Activity results" "block" 43 44 Scenario: Assign some site-wide defaults to the block and lock them. 45 Given the following config values are set as admin: 46 | config_showbest | 0 | block_activity_results | 47 | config_showbest_locked | 1 | block_activity_results | 48 | config_showworst | 0 | block_activity_results | 49 | config_showworst_locked | 1 | block_activity_results | 50 And I log in as "teacher1" 51 And I follow "Course 1" 52 And I turn editing mode on 53 And I add a "Assignment" to section "1" and I fill the form with: 54 | Assignment name | Test assignment | 55 | Description | Offline text | 56 | assignsubmission_file_enabled | 0 | 57 And I follow "Course 1" 58 And I add the "Activity results" block 59 When I configure the "Activity results" block 60 And the following fields match these values: 61 | id_config_showbest | 0 | 62 | id_config_showworst | 0 | 63 And the "id_config_showbest" "field" should be readonly 64 And the "id_config_showworst" "field" should be readonly 65 And I press "Save changes" 66 Then I should see "This block's configuration currently does not allow it to show any results." in the "Activity results" "block"
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 |