X7ROOT File Manager
Current Path:
/home/cbholdings/pasukulu/grade/tests/behat
home
/
cbholdings
/
pasukulu
/
grade
/
tests
/
behat
/
📁
..
📄
behat_grade.php
(21.71 KB)
📄
behat_grade_deprecated.php
(2.5 KB)
📄
behat_grades.php
(9.17 KB)
📄
grade_UI_settings.feature
(2.07 KB)
📄
grade_aggregation.feature
(33.83 KB)
📄
grade_aggregation_changes.feature
(28.81 KB)
📄
grade_average.feature
(2.29 KB)
📄
grade_calculated_grade_items.feature
(10.73 KB)
📄
grade_calculated_grade_items_20150627.feature
(10.83 KB)
📄
grade_calculated_weights.feature
(16.09 KB)
📄
grade_category_validation.feature
(7.49 KB)
📄
grade_contribution_with_extra_credit.feature
(4.12 KB)
📄
grade_feedback.feature
(3.75 KB)
📄
grade_grade_minmax_change.feature
(3.77 KB)
📄
grade_hidden_items.feature
(4.25 KB)
📄
grade_hidden_items_locked_category.feature
(4.33 KB)
📄
grade_item_duplication.feature
(2.33 KB)
📄
grade_item_form_unhide.feature
(5.94 KB)
📄
grade_item_validation.feature
(5.11 KB)
📄
grade_letter_boundary.feature
(2.03 KB)
📄
grade_letter_boundary_20160518.feature
(2.14 KB)
📄
grade_letter_logging.feature
(1.54 KB)
📄
grade_mingrade.feature
(6.32 KB)
📄
grade_minmax.feature
(11.24 KB)
📄
grade_natural_exclude_empty.feature
(20.25 KB)
📄
grade_natural_exclude_empty_20150619.feature
(21.16 KB)
📄
grade_natural_normalisation.feature
(14.35 KB)
📄
grade_natural_normalisation_20150619.feature
(7.26 KB)
📄
grade_override_letter.feature
(12.04 KB)
📄
grade_point_maximum.feature
(4.7 KB)
📄
grade_regrade_do_not_override.feature
(3.58 KB)
📄
grade_scales.feature
(10.64 KB)
📄
grade_scales_aggregation.feature
(7.08 KB)
📄
grade_scales_logging.feature
(959 B)
📄
grade_single_item_scales.feature
(8.36 KB)
📄
grade_to_pass.feature
(15.43 KB)
📄
grade_view.feature
(5.77 KB)
📄
siteadmin_grades_outcomes_breadcrumbs.feature
(1.33 KB)
📄
siteadmin_grades_scale_breadcrumbs.feature
(1016 B)
📄
toggle_grade_categories.feature
(13.3 KB)
Editing: toggle_grade_categories.feature
@core @core_grades @javascript Feature: Teachers can toggle the visibility of the grade categories in the Gradebook setup page. In order to focus only on the information that I am interested in As a teacher I need to be able to easily toggle the visibility of grade categories in the Gradebook setup page Background: Given the following "courses" exist: | fullname | shortname | category | | Course | C1 | 0 | And the following "users" exist: | username | firstname | lastname | email | idnumber | | teacher1 | Teacher 1 | 1 | teacher1@example.com | t1 | | teacher2 | Teacher 2 | 2 | teacher2@example.com | t2 | And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | | teacher2 | C1 | editingteacher | And the following "grade categories" exist: | fullname | course | | Category 1 | C1 | And the following "activities" exist: | activity | course | idnumber | name | intro | | assign | C1 | a1 | Test assignment one | Submit something! | And the following "activities" exist: | activity | course | idnumber | name | intro | gradecategory | | assign | C1 | a2 | Test assignment two | Submit something! | Category 1 | And the following "grade items" exist: | itemname | grademax | course | gradecategory | | Manual grade | 40 | C1 | Category 1 | And I log in as "teacher1" And I am on "Course" course homepage Scenario: A teacher can collapse and expand grade categories in the Gradebook setup page Given I navigate to "Setup > Gradebook setup" in the course gradebook And the following should exist in the "setup-grades" table: | Name | | Course | | Test assignment one | | Category 1 | | Test assignment two | | Manual grade | | Category 1 total | | Course total | And "Collapse" "link" should exist in the "Course" "table_row" And "Collapse" "link" should exist in the "Category 1" "table_row" # Collapse the grade category 'Category 1'. When I click on "Collapse" "link" in the "Category 1" "table_row" Then the following should exist in the "setup-grades" table: | Name | | Course | | Test assignment one | | Category 1 | | Course total | And "Collapse" "link" should exist in the "Course" "table_row" And "Expand" "link" should exist in the "Category 1" "table_row" And the following should not exist in the "user-grades" table: | Test assignment two | | Manual grade | | Category 1 total | # Expand the grade category 'Category 1'. And I click on "Expand" "link" in the "Category 1" "table_row" And the following should exist in the "setup-grades" table: | Name | | Course | | Test assignment one | | Category 1 | | Test assignment two | | Manual grade | | Category 1 total | | Course total | And "Collapse" "link" should exist in the "Course" "table_row" And "Collapse" "link" should exist in the "Category 1" "table_row" # Collapse again the grade category 'Category 1'. And I click on "Collapse" "link" in the "Category 1" "table_row" # Collapse the grade category 'Course'. And I click on "Collapse" "link" in the "Course" "table_row" And the following should exist in the "setup-grades" table: | Name | | Course | And I should see "Course" in the "setup-grades" "table" And "Expand" "link" should exist in the "Course" "table_row" And the following should not exist in the "setup-grades" table: | Name | | Test assignment one | | Category 1 | | Test assignment two | | Manual grade | | Category 1 total | | Course total | # Expand the grade category 'Course'. 'Category 1' should be still collapsed. And I click on "Expand" "link" in the "Course" "table_row" And the following should exist in the "setup-grades" table: | Name | | Course | | Test assignment one | | Category 1 | | Course total | And "Collapse" "link" should exist in the "Course" "table_row" And "Expand" "link" should exist in the "Category 1" "table_row" And the following should not exist in the "setup-grades" table: | Name | | Test assignment two | | Manual grade | | Category 1 total | Scenario: A teacher can see the aggregated max grade for a grade category even when the category is collapsed Given I navigate to "Setup > Gradebook setup" in the course gradebook And the following should exist in the "setup-grades" table: | Name | Max grade | | Course | | | Category 1 | | | Category 1 total | 140.00 | | Course total | 240.00 | # Collapse the grade category 'Category 1'. The aggregated max grade should now be displayed within the 'Category 1' row. When I click on "Collapse" "link" in the "Category 1" "table_row" Then the following should exist in the "setup-grades" table: | Name | Max grade | | Course | | | Category 1 | 140.00 | | Course total | 240.00 | And I should not see "Category 1 total" in the "setup-grades" "table" # Collapse the grade category 'Course'. The aggregated max grade should now be displayed within the 'Course' row. And I click on "Collapse" "link" in the "Course" "table_row" And "Course" row "Max grade" column of "setup-grades" table should contain "240.00" And I should not see "Course total" in the "setup-grades" "table" # Expand the grade category 'Course'. The aggregated max grade should not be displayed within the 'Course' row anymore. And I click on "Expand" "link" in the "Course" "table_row" | Name | Max grade | | Course | | | Category 1 | 140.00 | | Course total | 240.00 | Scenario: A teacher can collapse and expand grade categories in the Gradebook setup when moving grade items Given I navigate to "Setup > Gradebook setup" in the course gradebook And I click on "Move" "link" in the "Test assignment one" "table_row" And the following should exist in the "setup-grades" table: | Name | | Course | | Test assignment one | | Category 1 | | Test assignment two | | Manual grade | | Category 1 total | | Course total | And "Collapse" "link" should exist in the "Course" "table_row" And "Collapse" "link" should exist in the "Category 1" "table_row" # Collapse the grade category 'Category 1'. When I click on "Collapse" "link" in the "Category 1" "table_row" Then the following should exist in the "setup-grades" table: | Name | | Course | | Test assignment one | | Category 1 | And "Collapse" "link" should exist in the "Course" "table_row" And "Expand" "link" should exist in the "Category 1" "table_row" And the following should not exist in the "setup-grades" table: | Name | | Test assignment two | | Manual grade | | Category 1 total | # Expand the grade category 'Category 1'. And I click on "Expand" "link" in the "Category 1" "table_row" And the following should exist in the "setup-grades" table: | Name | | Course | | Test assignment one | | Category 1 | | Test assignment two | | Manual grade | | Category 1 total | | Course total | And "Collapse" "link" should exist in the "Course" "table_row" And "Collapse" "link" should exist in the "Category 1" "table_row" # Collapse again the grade category 'Category 1'. And I click on "Collapse" "link" in the "Category 1" "table_row" # Collapse the grade category 'Course'. And I click on "Collapse" "link" in the "Course" "table_row" And I should see "Course" in the "setup-grades" "table" And "Expand" "link" should exist in the "Course" "table_row" And the following should not exist in the "setup-grades" table: | Name | | Test assignment one | | Category 1 | | Test assignment two | | Manual grade | | Category 1 total | | Course total | # Expand the grade category 'Course'. 'Category 1' should be still collapsed. And I click on "Expand" "link" in the "Course" "table_row" And the following should exist in the "setup-grades" table: | Name | | Course | | Test assignment one | | Category 1 | | Course total | And "Collapse" "link" should exist in the "Course" "table_row" And "Expand" "link" should exist in the "Category 1" "table_row" And the following should not exist in the "setup-grades" table: | Name | | Test assignment two | | Manual grade | | Category 1 total | Scenario: Previously collapsed categories are still shown as collapsed when a teacher navigates back to Gradebook setup Given I navigate to "Setup > Gradebook setup" in the course gradebook # Collapse the grade category 'Category 1' and navigate to the course homepage. And I click on "Collapse" "link" in the "Category 1" "table_row" And I am on "Course" course homepage # Navigate back to Gradebook setup and confirm that the category 'Category 1' is still collapsed. When I navigate to "Setup > Gradebook setup" in the course gradebook Then the following should exist in the "setup-grades" table: | Name | | Course | | Test assignment one | | Category 1 | | Course total | And "Collapse" "link" should exist in the "Course" "table_row" And "Expand" "link" should exist in the "Category 1" "table_row" And the following should not exist in the "setup-grades" table: | Name | | Test assignment two | | Manual grade | | Category 1 total | Scenario: Previously collapsed categories are still shown as collapsed when a teacher is moving grade items in Gradebook setup Given I navigate to "Setup > Gradebook setup" in the course gradebook # Collapse the grade category 'Category 1'. And I click on "Collapse" "link" in the "Category 1" "table_row" # Attempt to move a grade item and confirm that the category 'Category 1' is still collapsed. When I click on "Move" "link" in the "Test assignment one" "table_row" Then the following should exist in the "setup-grades" table: | Name | | Course | | Test assignment one | | Category 1 | | Course total | And "Collapse" "link" should exist in the "Course" "table_row" And "Expand" "link" should exist in the "Category 1" "table_row" And the following should not exist in the "setup-grades" table: | Name | | Test assignment two | | Manual grade | | Category 1 total | Scenario: Grade categories are shown as collapsed only to the teacher that collapsed them Given I navigate to "Setup > Gradebook setup" in the course gradebook # Collapse the grade category 'Category 1'. And I click on "Collapse" "link" in the "Category 1" "table_row" # Log in as teacher2 and confirm that the category 'Category 1' is not collapsed. And I log in as "teacher2" And I am on "Course" course homepage When I navigate to "Setup > Gradebook setup" in the course gradebook Then the following should exist in the "setup-grades" table: | Name | | Course | | Test assignment one | | Category 1 | | Test assignment two | | Manual grade | | Category 1 total | | Course total | And "Collapse" "link" should exist in the "Course" "table_row" And "Collapse" "link" should exist in the "Category 1" "table_row" # Log in as teacher1 and confirm that the category 'Category 1' is still collapsed. And I log in as "teacher1" And I am on "Course" course homepage And I navigate to "Setup > Gradebook setup" in the course gradebook And the following should exist in the "setup-grades" table: | Name | | Course | | Test assignment one | | Category 1 | | Course total | And "Collapse" "link" should exist in the "Course" "table_row" And "Expand" "link" should exist in the "Category 1" "table_row" And the following should not exist in the "setup-grades" table: | Name | | Test assignment two | | Manual grade | | Category 1 total |
Upload File
Create Folder