[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 @core @core_grades 2 Feature: Site settings can be used to hide parts of the gradebook UI 3 In order to hide UI elements 4 As an admin 5 I need to modify gradebook related system settings 6 7 Background: 8 Given the following "courses" exist: 9 | fullname | shortname | category | format | 10 | Course 1 | C1 | 0 | topics | 11 And the following "users" exist: 12 | username | firstname | lastname | email | idnumber | 13 | student1 | Student | 1 | student1@example.com | s1 | 14 And the following "course enrolments" exist: 15 | user | course | role | 16 | student1 | C1 | student | 17 And the following "activities" exist: 18 | activity | course | idnumber | name | intro | 19 | assign | C1 | assign1 | Assignment1 | Assignment 1 intro | 20 And I log in as "admin" 21 And I am on site homepage 22 And I follow "Course 1" 23 And I navigate to "Grades" node in "Course administration" 24 And I turn editing mode on 25 26 @javascript 27 Scenario: Hide minimum grade 28 When I click on "Edit assign Assignment1" "link" 29 And I should see "Minimum grade" 30 Then I navigate to "General settings" node in "Site administration > Grades" 31 And I set the field "Show minimum grade" to "0" 32 And I press "Save changes" 33 And I am on site homepage 34 And I follow "Course 1" 35 And I navigate to "Grades" node in "Course administration" 36 And I click on "Edit assign Assignment1" "link" 37 And I should not see "Minimum grade" 38 39 @javascript 40 Scenario: Hide calculation icons 41 And "Edit calculation for Course total" "link" should exist 42 When I navigate to "Grader report" node in "Site administration > Grades > Report settings" 43 And I set the field "Show calculations" to "0" 44 And I press "Save changes" 45 And I am on site homepage 46 And I follow "Course 1" 47 And I navigate to "Grades" node in "Course administration" 48 Then "Edit calculation for Course total" "link" should not exist 49 50 @javascript 51 Scenario: Disable category overriding 52 And "tr .course input[type='text']" "css_element" should exist 53 Then I navigate to "Grade category settings" node in "Site administration > Grades" 54 And I set the field "Allow category grades to be manually overridden" to "0" 55 And I press "Save changes" 56 And I am on site homepage 57 And I follow "Course 1" 58 And I navigate to "Grades" node in "Course administration" 59 And "tr .course input[type='text']" "css_element" should not exist
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 |