[ Index ]

PHP Cross Reference of moodle-2.8

title

Body

[close]

/grade/tests/behat/ -> grade_UI_settings.feature (source)

   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 | [email protected] | 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 follow "Course 1"
  22      And I follow "Grades"
  23      And I turn editing mode on
  24  
  25    @javascript
  26    Scenario: Hide minimum grade
  27      When I click on "Edit  assign Assignment1" "link"
  28      And I should see "Minimum grade"
  29      Then I navigate to "General settings" node in "Site administration > Grades"
  30      And I click on "Show minimum grade" "checkbox"
  31      And I press "Save changes"
  32      And I follow "Home"
  33      And I follow "Course 1"
  34      And I follow "Grades"
  35      And I click on "Edit  assign Assignment1" "link"
  36      And I should not see "Minimum grade"
  37  
  38    @javascript
  39    Scenario: Hide calculation icons
  40      And "Edit calculation for   Course total" "link" should exist
  41      When I navigate to "Grader report" node in "Site administration > Grades > Report settings"
  42      And I click on "Show calculations" "checkbox"
  43      And I press "Save changes"
  44      And I follow "Home"
  45      And I follow "Course 1"
  46      And I follow "Grades"
  47      Then "Edit calculation for   Course total" "link" should not exist
  48  
  49    @javascript
  50    Scenario: Disable category overriding
  51      And ".r1 .course input[type='text']" "css_element" should exist
  52      Then I navigate to "Grade category settings" node in "Site administration > Grades"
  53      And I click on "Allow category grades to be manually overridden" "checkbox"
  54      And I press "Save changes"
  55      And I follow "Home"
  56      And I follow "Course 1"
  57      And I follow "Grades"
  58      And ".r0 .course input[type='text']" "css_element" should not exist


Generated: Fri Nov 28 20:29:05 2014 Cross-referenced by PHPXref 0.7.1