__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

www-data@216.73.216.10: ~ $
@core @core_grades @javascript
Feature: Changing the aggregation of an item affects its weight and extra credit definition
  In order to switch to another aggregation method
  As an teacher
  I need to be able to edit the grade category settings

  Background:
    Given the following "courses" exist:
      | fullname | shortname |
      | Course 1 | C1        |
    And the following "grade categories" exist:
      | fullname      | course | aggregation |
      | Cat mean      | C1     | 0           |
      | Cat median    | C1     | 2           |
      | Cat min       | C1     | 4           |
      | Cat max       | C1     | 6           |
      | Cat mode      | C1     | 8           |
      | Cat weighted  | C1     | 10          |
      | Cat weighted2 | C1     | 10          |
      | Cat simple    | C1     | 11          |
      | Cat ec        | C1     | 12          |
      | Cat natural & | C1     | 13          |
    And the following "grade items" exist:
      | itemname  | course | category      | aggregationcoef | aggregationcoef2 | weightoverride |
      | Item a1   | C1     | ?             | 0               | 0                | 0              |
      | Item a2   | C1     | ?             | 0               | 0.40             | 1              |
      | Item a3   | C1     | ?             | 1               | 0.10             | 1              |
      | Item a4   | C1     | ?             | 1               | 0                | 0              |
      | Item b1   | C1     | Cat natural & | 0               | 0                | 0              |
      | Item b2   | C1     | Cat natural & | 0               | 0.40             | 1              |
      | Item b3   | C1     | Cat natural & | 1               | 0.10             | 1              |
      | Item b4   | C1     | Cat natural & | 1               | 0                | 0              |
    And I log in as "admin"
    And I change window size to "large"
    And I set the following administration settings values:
      | grade_aggregations_visible | Mean of grades,Weighted mean of grades,Simple weighted mean of grades,Mean of grades (with extra credits),Median of grades,Lowest grade,Highest grade,Mode of grades,Natural |
    And I am on the "Course 1" "grades > Grader report > View" page
    And I turn editing mode on
    And I click on grade item menu "Cat mean" of type "category" on "grader" page
    And I choose "Edit category" in the open action menu
    And I click on "Show more..." "link" in the ".modal-dialog" "css_element"
    And I set the following fields to these values:
      | Weight adjusted     | 1  |
      | Weight              | 20 |
      | Extra credit        | 0  |
    And I press "Save changes"
    And I click on grade item menu "Cat median" of type "category" on "grader" page
    And I choose "Edit category" in the open action menu
    And I click on "Show more..." "link" in the ".modal-dialog" "css_element"
    And I set the following fields to these values:
      | Weight adjusted     | 1  |
      | Weight              | 5  |
      | Extra credit        | 0  |
    And I press "Save changes"
    And I click on grade item menu "Cat min" of type "category" on "grader" page
    And I choose "Edit category" in the open action menu
    And I click on "Show more..." "link" in the ".modal-dialog" "css_element"
    And I set the following fields to these values:
      | Weight adjusted     | 0  |
      | Weight              | 0  |
      | Extra credit        | 1  |
    And I press "Save changes"
    And I click on grade item menu "Item a1" of type "gradeitem" on "grader" page
    And I choose "Edit grade item" in the open action menu
    And the field "Weight adjusted" matches value "0"
    And the field "Extra credit" matches value "0"
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
    And I click on grade item menu "Item a2" of type "gradeitem" on "grader" page
    And I choose "Edit grade item" in the open action menu
    And the field "Weight adjusted" matches value "1"
    And the field "Weight" matches value "40.0"
    And the field "Extra credit" matches value "0"
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
    And I click on grade item menu "Item a3" of type "gradeitem" on "grader" page
    And I choose "Edit grade item" in the open action menu
    And the field "Weight adjusted" matches value "1"
    And the field "Weight" matches value "10.0"
    And the field "Extra credit" matches value "1"
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
    And I click on grade item menu "Item a4" of type "gradeitem" on "grader" page
    And I choose "Edit grade item" in the open action menu
    And the field "Weight adjusted" matches value "0"
    And the field "Extra credit" matches value "1"
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
    And I click on grade item menu "Item b1" of type "gradeitem" on "grader" page
    And I choose "Edit grade item" in the open action menu
    And the field "Weight adjusted" matches value "0"
    And the field "Extra credit" matches value "0"
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
    And I click on grade item menu "Item b2" of type "gradeitem" on "grader" page
    And I choose "Edit grade item" in the open action menu
    And the field "Weight adjusted" matches value "1"
    And the field "Weight" matches value "40.0"
    And the field "Extra credit" matches value "0"
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
    And I click on grade item menu "Item b3" of type "gradeitem" on "grader" page
    And I choose "Edit grade item" in the open action menu
    And the field "Weight adjusted" matches value "1"
    And the field "Weight" matches value "10.0"
    And the field "Extra credit" matches value "1"
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
    And I click on grade item menu "Item b4" of type "gradeitem" on "grader" page
    And I choose "Edit grade item" in the open action menu
    And the field "Weight adjusted" matches value "0"
    And the field "Extra credit" matches value "1"
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"

  Scenario: Switching a category from Natural aggregation to Mean of grades and back
    Given I click on grade item menu "Course 1" of type "course" on "grader" page
    And I choose "Edit category" in the open action menu
    And I set the field "Aggregation" to "Mean of grades"
    When I click on "Save" "button" in the "Edit category" "dialogue"
    And I click on grade item menu "Item a1" of type "gradeitem" on "grader" page
    And I choose "Edit grade item" in the open action menu
    Then I should not see "Weight adjusted"
    And I should not see "Weight"
    And I should not see "Extra credit"
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
    And I click on grade item menu "Item a2" of type "gradeitem" on "grader" page
    And I choose "Edit grade item" in the open action menu
    And I should not see "Weight adjusted"
    And I should not see "Weight"
    And I should not see "Extra credit"
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
    And I click on grade item menu "Item a3" of type "gradeitem" on "grader" page
    And I choose "Edit grade item" in the open action menu
    And I should not see "Weight adjusted"
    And I should not see "Weight"
    And I should not see "Extra credit"
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
    And I click on grade item menu "Item a4" of type "gradeitem" on "grader" page
    And I choose "Edit grade item" in the open action menu
    And I should not see "Weight adjusted"
    And I should not see "Weight"
    And I should not see "Extra credit"
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
    And I click on grade item menu "Cat mean" of type "category" on "grader" page
    And I choose "Edit category" in the open action menu
    And I click on "Show more..." "link" in the ".modal-dialog" "css_element"
    And I expand all fieldsets
    And I should not see "Weight adjusted"
    And I should not see "Weight" in the "#id_headerparent" "css_element"
    And I should not see "Extra credit"
    And I press "Cancel"
    And I click on grade item menu "Cat median" of type "category" on "grader" page
    And I choose "Edit category" in the open action menu
    And I click on "Show more..." "link" in the ".modal-dialog" "css_element"
    And I expand all fieldsets
    And I should not see "Weight adjusted"
    And I should not see "Weight" in the "#id_headerparent" "css_element"
    And I should not see "Extra credit"
    And I press "Cancel"
    And I click on grade item menu "Cat min" of type "category" on "grader" page
    And I choose "Edit category" in the open action menu
    And I click on "Show more..." "link" in the ".modal-dialog" "css_element"
    And I expand all fieldsets
    And I should not see "Weight adjusted"
    And I should not see "Weight" in the "#id_headerparent" "css_element"
    And I should not see "Extra credit"
    And I press "Cancel"
    And I click on grade item menu "Cat natural &" of type "category" on "grader" page
    And I choose "Edit category" in the open action menu
    And I set the field "Aggregation" to "Mean of grades"
    And I click on "Save" "button" in the "Edit category" "dialogue"
    And I wait until the page is ready
    And I click on grade item menu "Item b1" of type "gradeitem" on "grader" page
    And I choose "Edit grade item" in the open action menu
    And I should not see "Weight adjusted"
    And I should not see "Weight"
    And I should not see "Extra credit"
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
    And I click on grade item menu "Item b1" of type "gradeitem" on "grader" page
    And I choose "Edit grade item" in the open action menu
    And I should not see "Weight adjusted"
    And I should not see "Weight"
    And I should not see "Extra credit"
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
    And I click on grade item menu "Item b3" of type "gradeitem" on "grader" page
    And I choose "Edit grade item" in the open action menu
    And I should not see "Weight adjusted"
    And I should not see "Weight"
    And I should not see "Extra credit"
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
    And I click on grade item menu "Item b4" of type "gradeitem" on "grader" page
    And I choose "Edit grade item" in the open action menu
    And I should not see "Weight adjusted"
    And I should not see "Weight"
    And I should not see "Extra credit"
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
    # Switching back.
    And I click on grade item menu "Course 1" of type "course" on "grader" page
    And I choose "Edit category" in the open action menu
    And I set the field "Aggregation" to "Natural"
    And I click on "Save" "button" in the "Edit category" "dialogue"
    And I wait until the page is ready
    And I click on grade item menu "Item a1" of type "gradeitem" on "grader" page
    And I choose "Edit grade item" in the open action menu
    And the field "Weight adjusted" matches value "0"
    And the field "Extra credit" matches value "0"
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
    And I click on grade item menu "Item a2" of type "gradeitem" on "grader" page
    And I choose "Edit grade item" in the open action menu
    And the field "Weight adjusted" matches value "0"
    And the field "Extra credit" matches value "0"
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
    And I click on grade item menu "Item a3" of type "gradeitem" on "grader" page
    And I choose "Edit grade item" in the open action menu
    And the field "Weight adjusted" matches value "0"
    And the field "Extra credit" matches value "0"
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
    And I click on grade item menu "Item a4" of type "gradeitem" on "grader" page
    And I choose "Edit grade item" in the open action menu
    And the field "Weight adjusted" matches value "0"
    And the field "Extra credit" matches value "0"
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
    And I click on grade item menu "Cat mean" of type "category" on "grader" page
    And I choose "Edit category" in the open action menu
    And I click on "Show more..." "link" in the ".modal-dialog" "css_element"
    And I expand all fieldsets
    And the field "Weight adjusted" matches value "0"
    And the field "Extra credit" matches value "0"
    And I press "Cancel"
    And I click on grade item menu "Cat median" of type "category" on "grader" page
    And I choose "Edit category" in the open action menu
    And I click on "Show more..." "link" in the ".modal-dialog" "css_element"
    And I expand all fieldsets
    And the field "Weight adjusted" matches value "0"
    And the field "Extra credit" matches value "0"
    And I press "Cancel"
    And I click on grade item menu "Cat min" of type "category" on "grader" page
    And I choose "Edit category" in the open action menu
    And I click on "Show more..." "link" in the ".modal-dialog" "css_element"
    And I expand all fieldsets
    And the field "Weight adjusted" matches value "0"
    And the field "Extra credit" matches value "0"
    And I press "Cancel"
    And I click on grade item menu "Cat natural &" of type "category" on "grader" page
    And I choose "Edit category" in the open action menu
    And I set the field "Aggregation" to "Natural"
    And I click on "Save" "button" in the "Edit category" "dialogue"
    And I wait until the page is ready
    And I click on grade item menu "Item b1" of type "gradeitem" on "grader" page
    And I choose "Edit grade item" in the open action menu
    And the field "Weight adjusted" matches value "0"
    And the field "Extra credit" matches value "0"
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
    And I click on grade item menu "Item b2" of type "gradeitem" on "grader" page
    And I choose "Edit grade item" in the open action menu
    And the field "Weight adjusted" matches value "0"
    And the field "Extra credit" matches value "0"
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
    And I click on grade item menu "Item b3" of type "gradeitem" on "grader" page
    And I choose "Edit grade item" in the open action menu
    And the field "Weight adjusted" matches value "0"
    And the field "Extra credit" matches value "0"
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
    And I click on grade item menu "Item b4" of type "gradeitem" on "grader" page
    And I choose "Edit grade item" in the open action menu
    And the field "Weight adjusted" matches value "0"
    And the field "Extra credit" matches value "0"
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"

  Scenario: Switching a category from Natural aggregation to Weighted mean of grades and back
    Given I click on grade item menu "Course 1" of type "course" on "grader" page
    And I choose "Edit category" in the open action menu
    And I set the field "Aggregation" to "Weighted mean of grades"
    And I click on "Save" "button" in the "Edit category" "dialogue"
    And I wait until the page is ready
    And I click on grade item menu "Item a1" of type "gradeitem" on "grader" page
    And I choose "Edit grade item" in the open action menu
    Then I should not see "Weight adjusted"
    And I should not see "Extra credit"
    And the field "Item weight" matches value "1"
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
    And I click on grade item menu "Item a2" of type "gradeitem" on "grader" page
    And I choose "Edit grade item" in the open action menu
    And I should not see "Weight adjusted"
    And I should not see "Extra credit"
    And the field "Item weight" matches value "1"
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
    And I click on grade item menu "Item a3" of type "gradeitem" on "grader" page
    And I choose "Edit grade item" in the open action menu
    And I should not see "Weight adjusted"
    And I should not see "Extra credit"
    And the field "Item weight" matches value "1"
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
    And I click on grade item menu "Item a4" of type "gradeitem" on "grader" page
    And I choose "Edit grade item" in the open action menu
    And I should not see "Weight adjusted"
    And I should not see "Extra credit"
    And the field "Item weight" matches value "1"
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
    And I click on grade item menu "Cat mean" of type "category" on "grader" page
    And I choose "Edit category" in the open action menu
    And I click on "Show more..." "link" in the ".modal-dialog" "css_element"
    And I expand all fieldsets
    And I should not see "Weight adjusted"
    And I should not see "Extra credit"
    And the field "Item weight" matches value "1"
    And I press "Cancel"
    And I click on grade item menu "Cat median" of type "category" on "grader" page
    And I choose "Edit category" in the open action menu
    And I click on "Show more..." "link" in the ".modal-dialog" "css_element"
    And I expand all fieldsets
    And I should not see "Weight adjusted"
    And I should not see "Extra credit"
    And the field "Item weight" matches value "1"
    And I press "Cancel"
    And I click on grade item menu "Cat min" of type "category" on "grader" page
    And I choose "Edit category" in the open action menu
    And I click on "Show more..." "link" in the ".modal-dialog" "css_element"
    And I expand all fieldsets
    And I should not see "Weight adjusted"
    And I should not see "Extra credit"
    And the field "Item weight" matches value "1"
    And I press "Cancel"
    And I click on grade item menu "Cat natural &" of type "category" on "grader" page
    And I choose "Edit category" in the open action menu
    And I set the field "Aggregation" to "Weighted mean of grades"
    And I click on "Save" "button" in the "Edit category" "dialogue"
    And I wait until the page is ready
    And I click on grade item menu "Item b1" of type "gradeitem" on "grader" page
    And I choose "Edit grade item" in the open action menu
    And I should not see "Weight adjusted"
    And I should not see "Extra credit"
    And the field "Item weight" matches value "1"
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
    And I click on grade item menu "Item b2" of type "gradeitem" on "grader" page
    And I choose "Edit grade item" in the open action menu
    And I should not see "Weight adjusted"
    And I should not see "Extra credit"
    And the field "Item weight" matches value "1"
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
    And I click on grade item menu "Item b3" of type "gradeitem" on "grader" page
    And I choose "Edit grade item" in the open action menu
    And I should not see "Weight adjusted"
    And I should not see "Extra credit"
    And the field "Item weight" matches value "1"
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
    And I click on grade item menu "Item b4" of type "gradeitem" on "grader" page
    And I choose "Edit grade item" in the open action menu
    And I should not see "Weight adjusted"
    And I should not see "Extra credit"
    And the field "Item weight" matches value "1"
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
    # Switching back.
    And I click on grade item menu "Course 1" of type "course" on "grader" page
    And I choose "Edit category" in the open action menu
    And I set the field "Aggregation" to "Natural"
    And I click on "Save" "button" in the "Edit category" "dialogue"
    And I wait until the page is ready
    And I click on grade item menu "Item a1" of type "gradeitem" on "grader" page
    And I choose "Edit grade item" in the open action menu
    And the field "Weight adjusted" matches value "0"
    And the field "Extra credit" matches value "0"
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
    And I click on grade item menu "Item a2" of type "gradeitem" on "grader" page
    And I choose "Edit grade item" in the open action menu
    And the field "Weight adjusted" matches value "0"
    And the field "Extra credit" matches value "0"
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
    And I click on grade item menu "Item a3" of type "gradeitem" on "grader" page
    And I choose "Edit grade item" in the open action menu
    And the field "Weight adjusted" matches value "0"
    And the field "Extra credit" matches value "0"
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
    And I click on grade item menu "Item a4" of type "gradeitem" on "grader" page
    And I choose "Edit grade item" in the open action menu
    And the field "Weight adjusted" matches value "0"
    And the field "Extra credit" matches value "0"
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
    And I click on grade item menu "Cat mean" of type "category" on "grader" page
    And I choose "Edit category" in the open action menu
    And I click on "Show more..." "link" in the ".modal-dialog" "css_element"
    And I expand all fieldsets
    And the field "Weight adjusted" matches value "0"
    And the field "Extra credit" matches value "0"
    And I press "Cancel"
    And I click on grade item menu "Cat median" of type "category" on "grader" page
    And I choose "Edit category" in the open action menu
    And I click on "Show more..." "link" in the ".modal-dialog" "css_element"
    And I expand all fieldsets
    And the field "Weight adjusted" matches value "0"
    And the field "Extra credit" matches value "0"
    And I press "Cancel"
    And I click on grade item menu "Cat min" of type "category" on "grader" page
    And I choose "Edit category" in the open action menu
    And I click on "Show more..." "link" in the ".modal-dialog" "css_element"
    And I expand all fieldsets
    And the field "Weight adjusted" matches value "0"
    And the field "Extra credit" matches value "0"
    And I press "Cancel"
    And I click on grade item menu "Cat natural &" of type "category" on "grader" page
    And I choose "Edit category" in the open action menu
    And I set the field "Aggregation" to "Natural"
    And I click on "Save" "button" in the "Edit category" "dialogue"
    And I wait until the page is ready
    And I click on grade item menu "Item b1" of type "gradeitem" on "grader" page
    And I choose "Edit grade item" in the open action menu
    And the field "Weight adjusted" matches value "0"
    And the field "Extra credit" matches value "0"
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
    And I click on grade item menu "Item b2" of type "gradeitem" on "grader" page
    And I choose "Edit grade item" in the open action menu
    And the field "Weight adjusted" matches value "0"
    And the field "Extra credit" matches value "0"
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
    And I click on grade item menu "Item b3" of type "gradeitem" on "grader" page
    And I choose "Edit grade item" in the open action menu
    And the field "Weight adjusted" matches value "0"
    And the field "Extra credit" matches value "0"
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
    And I click on grade item menu "Item b4" of type "gradeitem" on "grader" page
    And I choose "Edit grade item" in the open action menu
    And the field "Weight adjusted" matches value "0"
    And the field "Extra credit" matches value "0"
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"

  Scenario: Switching grade items between categories
    # Move to same aggregation (Natural).
    Given I navigate to "Setup > Gradebook setup" in the course gradebook
    And I set the field "Select Item a1" to "1"
    And I set the field "Select Item a2" to "1"
    And I set the field "Select Item a3" to "1"
    And I set the field "Select Item a4" to "1"
    And I click on "Move" "button" in the "sticky-footer" "region"
    And I click on "Cat natural &" "list_item" in the "Move items" "dialogue"
    When I click on "Move" "button" in the "Move items" "dialogue"
    And I navigate to "View > Grader report" in the course gradebook
    And I click on grade item menu "Item a1" of type "gradeitem" on "grader" page
    And I choose "Edit grade item" in the open action menu
    Then the field "Weight adjusted" matches value "0"
    And the field "Extra credit" matches value "0"
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
    And I click on grade item menu "Item a2" of type "gradeitem" on "grader" page
    And I choose "Edit grade item" in the open action menu
    And the field "Weight adjusted" matches value "1"
    And the field "Weight" matches value "40.0"
    And the field "Extra credit" matches value "0"
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
    And I click on grade item menu "Item a3" of type "gradeitem" on "grader" page
    And I choose "Edit grade item" in the open action menu
    And the field "Weight adjusted" matches value "1"
    And the field "Weight" matches value "10.0"
    And the field "Extra credit" matches value "1"
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
    And I click on grade item menu "Item a4" of type "gradeitem" on "grader" page
    And I choose "Edit grade item" in the open action menu
    And the field "Weight adjusted" matches value "0"
    And the field "Extra credit" matches value "1"
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
    # Move to Mean of grades (with extra credit).
    And I navigate to "Setup > Gradebook setup" in the course gradebook
    And I set the field "Select Item a1" to "1"
    And I set the field "Select Item a2" to "1"
    And I set the field "Select Item a3" to "1"
    And I set the field "Select Item a4" to "1"
    And I click on "Move" "button" in the "sticky-footer" "region"
    And I click on "Cat ec" "list_item" in the "Move items" "dialogue"
    And I click on "Move" "button" in the "Move items" "dialogue"
    And I navigate to "View > Grader report" in the course gradebook
    And I click on grade item menu "Item a1" of type "gradeitem" on "grader" page
    And I choose "Edit grade item" in the open action menu
    And the field "Extra credit" matches value "0"
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
    And I click on grade item menu "Item a2" of type "gradeitem" on "grader" page
    And I choose "Edit grade item" in the open action menu
    And the field "Extra credit" matches value "0"
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
    And I click on grade item menu "Item a3" of type "gradeitem" on "grader" page
    And I choose "Edit grade item" in the open action menu
    And the field "Extra credit" matches value "1"
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
    And I click on grade item menu "Item a4" of type "gradeitem" on "grader" page
    And I choose "Edit grade item" in the open action menu
    And the field "Extra credit" matches value "1"
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
    # Move to Simple weight mean of grades.
    And I navigate to "Setup > Gradebook setup" in the course gradebook
    And I set the field "Select Item a1" to "1"
    And I set the field "Select Item a2" to "1"
    And I set the field "Select Item a3" to "1"
    And I set the field "Select Item a4" to "1"
    And I click on "Move" "button" in the "sticky-footer" "region"
    And I click on "Cat simple" "list_item" in the "Move items" "dialogue"
    And I click on "Move" "button" in the "Move items" "dialogue"
    And I navigate to "View > Grader report" in the course gradebook
    And I click on grade item menu "Item a1" of type "gradeitem" on "grader" page
    And I choose "Edit grade item" in the open action menu
    And the field "Extra credit" matches value "0"
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
    And I click on grade item menu "Item a2" of type "gradeitem" on "grader" page
    And I choose "Edit grade item" in the open action menu
    And the field "Extra credit" matches value "0"
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
    And I click on grade item menu "Item a3" of type "gradeitem" on "grader" page
    And I choose "Edit grade item" in the open action menu
    And the field "Extra credit" matches value "1"
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
    And I click on grade item menu "Item a4" of type "gradeitem" on "grader" page
    And I choose "Edit grade item" in the open action menu
    And the field "Extra credit" matches value "1"
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
    # Move to Weighted mean of grades.
    And I navigate to "Setup > Gradebook setup" in the course gradebook
    And I set the field "Select Item a1" to "1"
    And I set the field "Select Item a2" to "1"
    And I set the field "Select Item a3" to "1"
    And I set the field "Select Item a4" to "1"
    And I click on "Move" "button" in the "sticky-footer" "region"
    And I click on "Cat weighted" "list_item" in the "Move items" "dialogue"
    And I click on "Move" "button" in the "Move items" "dialogue"
    And I navigate to "View > Grader report" in the course gradebook
    And I click on grade item menu "Item a1" of type "gradeitem" on "grader" page
    And I choose "Edit grade item" in the open action menu
    And the field "Item weight" matches value "1"
    And I set the field "Item weight" to "2"
    And I click on "Save" "button" in the "Edit grade item" "dialogue"
    And I click on grade item menu "Item a2" of type "gradeitem" on "grader" page
    And I choose "Edit grade item" in the open action menu
    And the field "Item weight" matches value "1"
    And I set the field "Item weight" to "5"
    And I click on "Save" "button" in the "Edit grade item" "dialogue"
    And I click on grade item menu "Item a3" of type "gradeitem" on "grader" page
    And I choose "Edit grade item" in the open action menu
    And the field "Item weight" matches value "1"
    And I set the field "Item weight" to "8"
    And I click on "Save" "button" in the "Edit grade item" "dialogue"
    And I click on grade item menu "Item a4" of type "gradeitem" on "grader" page
    And I choose "Edit grade item" in the open action menu
    And the field "Item weight" matches value "1"
    And I set the field "Item weight" to "11"
    And I click on "Save" "button" in the "Edit grade item" "dialogue"
    # Move to same (Weighted mean of grades).
    And I navigate to "Setup > Gradebook setup" in the course gradebook
    And I set the field "Select Item a1" to "1"
    And I set the field "Select Item a2" to "1"
    And I set the field "Select Item a3" to "1"
    And I set the field "Select Item a4" to "1"
    And I click on "Move" "button" in the "sticky-footer" "region"
    And I click on "Cat weighted2" "list_item" in the "Move items" "dialogue"
    And I click on "Move" "button" in the "Move items" "dialogue"
    And I wait "2" seconds
    And I navigate to "View > Grader report" in the course gradebook
    And I click on grade item menu "Item a1" of type "gradeitem" on "grader" page
    And I choose "Edit grade item" in the open action menu
    And the field "Item weight" matches value "2"
    And I click on "Save" "button" in the "Edit grade item" "dialogue"
    And I click on grade item menu "Item a2" of type "gradeitem" on "grader" page
    And I choose "Edit grade item" in the open action menu
    And the field "Item weight" matches value "5"
    And I click on "Save" "button" in the "Edit grade item" "dialogue"
    And I click on grade item menu "Item a3" of type "gradeitem" on "grader" page
    And I choose "Edit grade item" in the open action menu
    And the field "Item weight" matches value "8"
    And I click on "Save" "button" in the "Edit grade item" "dialogue"
    And I click on grade item menu "Item a4" of type "gradeitem" on "grader" page
    And I choose "Edit grade item" in the open action menu
    And the field "Item weight" matches value "11"
    And I click on "Save" "button" in the "Edit grade item" "dialogue"
    # Move back to Natural.
    And I navigate to "Setup > Gradebook setup" in the course gradebook
    And I set the field "Select Item a1" to "1"
    And I set the field "Select Item a2" to "1"
    And I set the field "Select Item a3" to "1"
    And I set the field "Select Item a4" to "1"
    And I click on "Move" "button" in the "sticky-footer" "region"
    And I click on "Cat natural &" "list_item" in the "Move items" "dialogue"
    And I click on "Move" "button" in the "Move items" "dialogue"
    And I navigate to "View > Grader report" in the course gradebook
    And I click on grade item menu "Item a1" of type "gradeitem" on "grader" page
    And I choose "Edit grade item" in the open action menu
    And the field "Weight adjusted" matches value "0"
    And the field "Extra credit" matches value "0"
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
    And I click on grade item menu "Item a2" of type "gradeitem" on "grader" page
    And I choose "Edit grade item" in the open action menu
    And the field "Weight adjusted" matches value "0"
    And the field "Extra credit" matches value "0"
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
    And I click on grade item menu "Item a3" of type "gradeitem" on "grader" page
    And I choose "Edit grade item" in the open action menu
    And the field "Weight adjusted" matches value "0"
    And the field "Extra credit" matches value "0"
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"
    And I click on grade item menu "Item a4" of type "gradeitem" on "grader" page
    And I choose "Edit grade item" in the open action menu
    And the field "Weight adjusted" matches value "0"
    And the field "Extra credit" matches value "0"
    And I click on "Cancel" "button" in the "Edit grade item" "dialogue"

Filemanager

Name Type Size Permission Actions
behat_grade.php File 14.18 KB 0777
behat_grade_deprecated.php File 8.29 KB 0777
behat_grades.php File 10.46 KB 0777
grade_UI_settings.feature File 1.98 KB 0777
grade_aggregation.feature File 34.84 KB 0777
grade_aggregation_changes.feature File 34.02 KB 0777
grade_average.feature File 7.5 KB 0777
grade_calculated_grade_items.feature File 10.93 KB 0777
grade_calculated_grade_items_20150627.feature File 11.37 KB 0777
grade_calculated_weights.feature File 15.96 KB 0777
grade_category_validation.feature File 7.16 KB 0777
grade_contribution_with_extra_credit.feature File 4.31 KB 0777
grade_custom_scales.feature File 2.27 KB 0777
grade_edit_tree_bulk_actions.feature File 14.8 KB 0777
grade_export_default_method.feature File 1.03 KB 0777
grade_feedback.feature File 3.43 KB 0777
grade_grade_minmax_change.feature File 3.82 KB 0777
grade_hidden_items.feature File 4.11 KB 0777
grade_hidden_items_locked_category.feature File 4.32 KB 0777
grade_import.feature File 4.54 KB 0777
grade_item_duplication.feature File 2.35 KB 0777
grade_item_form_unhide.feature File 5.49 KB 0777
grade_item_pass_data_to_advanced_page.feature File 7.34 KB 0777
grade_item_validation.feature File 6.45 KB 0777
grade_letter_boundary.feature File 1.97 KB 0777
grade_letter_boundary_20160518.feature File 2.08 KB 0777
grade_letter_logging.feature File 1.49 KB 0777
grade_mingrade.feature File 4.98 KB 0777
grade_minmax.feature File 11.57 KB 0777
grade_natural_exclude_empty.feature File 20.3 KB 0777
grade_natural_exclude_empty_20150619.feature File 21.21 KB 0777
grade_natural_normalisation.feature File 16.04 KB 0777
grade_natural_normalisation_20150619.feature File 7.66 KB 0777
grade_override_letter.feature File 12.04 KB 0777
grade_point_maximum.feature File 4.7 KB 0777
grade_recovery_settings.feature File 2.6 KB 0777
grade_regrade_do_not_override.feature File 3.4 KB 0777
grade_scales.feature File 10.65 KB 0777
grade_scales_aggregation.feature File 6.55 KB 0777
grade_scales_logging.feature File 959 B 0777
grade_single_item_scales.feature File 8.27 KB 0777
grade_to_pass.feature File 15.99 KB 0777
grade_view.feature File 5.11 KB 0777
siteadmin_grades_outcomes_breadcrumbs.feature File 1.33 KB 0777
siteadmin_grades_scale_breadcrumbs.feature File 1016 B 0777
toggle_grade_categories.feature File 12.98 KB 0777
Filemanager