Ir a la última revisión | Autoría | Comparar con el anterior | Ultima modificación | Ver Log |
@core @core_grades @gradereport_user @javascriptFeature: User can toggle the visibility of the grade categories within the user grade report.In order to focus only on the information that I am interested inAs a teacherI need to be able to easily toggle the visibility of grade categories in the user grade reportBackground:Given the following "courses" exist:| fullname | shortname | category || Course | C1 | 0 |And the following "users" exist:| username | firstname | lastname | email | idnumber || teacher1 | Teacher | 1 | teacher1@example.com | t1 || student1 | Student | 1 | student1@example.com | s1 |And the following "course enrolments" exist:| user | course | role || teacher1 | C1 | editingteacher || student1 | C1 | student |And the following "grade categories" exist:| fullname | course || Category 1 | C1 |And the following "activities" exist:| activity | course | idnumber | name | intro | grade || assign | C1 | a1 | Test assignment one | Submit something! | 300 |And the following "activities" exist:| activity | course | idnumber | name | gradecategory | grade | gradepass || assign | C1 | a2 | Test assignment two | Category 1 | 100 | 50 |Scenario: A teacher can search for and find a user to viewGiven I am on the "Course" "grades > User report > View" page logged in as "teacher1"And I click on "Student 1" in the "user" search widgetAnd I should see "Test assignment one" in the "user-grade" "table"And I should see "Test assignment two" in the "user-grade" "table"And I should see "Category 1 total" in the "user-grade" "table"And I should see "Course total" in the "user-grade" "table"# Hide the grade category 'Category 1'.When I click on ".toggle-category" "css_element" in the "Category 1" "table_row"Then I should not see "Test assignment two" in the "user-grade" "table"And I should not see "Category 1 total" in the "user-grade" "table"And I should see "Test assignment one" in the "user-grade" "table"And I should see "Course total" in the "user-grade" "table"# Show the grade category 'Category 1'.And I click on ".toggle-category" "css_element" in the "Category 1" "table_row"And I should see "Test assignment two" in the "user-grade" "table"And I should see "Category 1 total" in the "user-grade" "table"And I should see "Test assignment one" in the "user-grade" "table"And I should see "Course total" in the "user-grade" "table"# Hide the grade category 'Course'.And I click on ".toggle-category" "css_element" in the "Course" "table_row"And I should not see "Test assignment two" in the "user-grade" "table"And I should not see "Category 1 total" in the "user-grade" "table"And I should not see "Test assignment one" in the "user-grade" "table"And I should not see "Course total" in the "user-grade" "table"