MDL-78684 Behat: Replace gradebook navigation to use page resolvers

This commit also does other things such as:
- Replace manual steps to setup gradebook by data generators
- Added support for outcomes and scales page resolvers
- Behat clean up
This commit is contained in:
Angelia Dela Cruz 2023-07-12 15:00:31 +08:00
parent 13553c25da
commit efb38571e5
68 changed files with 330 additions and 791 deletions

View file

@ -100,8 +100,7 @@ Feature: Set up contextual data for tests
And the following "course enrolments" exist: And the following "course enrolments" exist:
| user | course | role | | user | course | role |
| student1 | C1 | student | | student1 | C1 | student |
When I log in as "student1" When I am on the "Course 1" course page logged in as student1
And I am on "Course 1" course homepage
Then I should see "Topic 1" Then I should see "Topic 1"
Scenario: Add role assigns Scenario: Add role assigns
@ -135,17 +134,11 @@ Feature: Set up contextual data for tests
When I log in as "user1" When I log in as "user1"
And I am on site homepage And I am on site homepage
Then edit mode should be available on the current page Then edit mode should be available on the current page
And I log out And I am on the "Course 1" course page logged in as user2
And I log in as "user2"
And I am on "Course 1" course homepage
Then edit mode should be available on the current page Then edit mode should be available on the current page
And I log out And I am on the "Course 1" course page logged in as user3
And I log in as "user3"
And I am on "Course 1" course homepage
Then edit mode should be available on the current page Then edit mode should be available on the current page
And I log out And I am on the "Course 1" course page logged in as user4
And I log in as "user4"
And I am on "Course 1" course homepage
Then edit mode should be available on the current page Then edit mode should be available on the current page
And I log out And I log out
And I log in as "user5" And I log in as "user5"
@ -187,8 +180,7 @@ Feature: Set up contextual data for tests
And the following "activities" exist: And the following "activities" exist:
| activity | name | intro | course | idnumber | grade | | activity | name | intro | course | idnumber | grade |
| assign | Test assignment name with scale | Test assignment description | C1 | assign1 | Test Scale 1 | | assign | Test assignment name with scale | Test assignment description | C1 | assign1 | Test Scale 1 |
When I log in as "admin" When I am on the "Course 1" course page logged in as admin
And I am on "Course 1" course homepage
Then I should see "Test assignment name" Then I should see "Test assignment name"
# Assignment 2.2 module type is disabled by default # Assignment 2.2 module type is disabled by default
# And I should see "Test assignment22 name" # And I should see "Test assignment22 name"
@ -304,9 +296,7 @@ Feature: Set up contextual data for tests
And the following "grade categories" exist: And the following "grade categories" exist:
| fullname | course | gradecategory | | fullname | course | gradecategory |
| Grade sub category 2 | C1 | Grade category 1 | | Grade sub category 2 | C1 | Grade category 1 |
When I log in as "admin" When I am on the "Course 1" "grades > Grader report > View" page logged in as "admin"
And I am on "Course 1" course homepage
And I navigate to "View > Grader report" in the course gradebook
Then I should see "Grade category 1" Then I should see "Grade category 1"
And I should see "Grade sub category 2" And I should see "Grade sub category 2"
@ -327,9 +317,7 @@ Feature: Set up contextual data for tests
| itemname | course | gradecategory | | itemname | course | gradecategory |
| Test Grade Item 2 | C1 | Grade category 1 | | Test Grade Item 2 | C1 | Grade category 1 |
| Test Grade Item 3 | C1 | Grade sub category 2 | | Test Grade Item 3 | C1 | Grade sub category 2 |
When I log in as "admin" When I am on the "Course 1" "grades > gradebook setup" page logged in as "admin"
And I am on "Course 1" course homepage
And I navigate to "Setup > Gradebook setup" in the course gradebook
Then I should see "Test Grade Item 1" Then I should see "Test Grade Item 1"
And I open the action menu in "Test Grade Item 1" "table_row" And I open the action menu in "Test Grade Item 1" "table_row"
And I choose "Edit" in the open action menu And I choose "Edit" in the open action menu
@ -358,9 +346,7 @@ Feature: Set up contextual data for tests
And the following "scales" exist: And the following "scales" exist:
| name | scale | | name | scale |
| Test Scale 1 | Disappointing, Good, Very good, Excellent | | Test Scale 1 | Disappointing, Good, Very good, Excellent |
When I log in as "admin" When I am on the "Course 1" "grades > scales" page logged in as admin
And I am on "Course 1" course homepage
And I navigate to "Scales" in the course gradebook
Then I should see "Test Scale 1" Then I should see "Test Scale 1"
And I should see "Disappointing, Good, Very good, Excellent" And I should see "Disappointing, Good, Very good, Excellent"
@ -379,9 +365,7 @@ Feature: Set up contextual data for tests
| Grade outcome 2 | OT2 | C1 | Test Scale 1 | | Grade outcome 2 | OT2 | C1 | Test Scale 1 |
And the following config values are set as admin: And the following config values are set as admin:
| enableoutcomes | 1 | | enableoutcomes | 1 |
When I log in as "admin" When I am on the "Course 1" "grades > outcomes" page logged in as admin
And I am on "Course 1" course homepage
And I navigate to "More > Outcomes" in the course gradebook
Then I should see "Grade outcome 1" in the "#addoutcomes" "css_element" Then I should see "Grade outcome 1" in the "#addoutcomes" "css_element"
And I should see "Grade outcome 2" in the "#removeoutcomes" "css_element" And I should see "Grade outcome 2" in the "#removeoutcomes" "css_element"
And I press "Manage outcomes" And I press "Manage outcomes"
@ -407,9 +391,7 @@ Feature: Set up contextual data for tests
| Test Outcome Grade Item 1 | C1 | OT1 | Grade category 1 | | Test Outcome Grade Item 1 | C1 | OT1 | Grade category 1 |
And the following config values are set as admin: And the following config values are set as admin:
| enableoutcomes | 1 | | enableoutcomes | 1 |
When I log in as "admin" When I am on the "Course 1" "grades > gradebook setup" page logged in as "admin"
And I am on "Course 1" course homepage
And I navigate to "Setup > Gradebook setup" in the course gradebook
Then I should see "Test Outcome Grade Item 1" Then I should see "Test Outcome Grade Item 1"
And I open the action menu in "Test Outcome Grade Item 1" "table_row" And I open the action menu in "Test Outcome Grade Item 1" "table_row"
And I choose "Edit" in the open action menu And I choose "Edit" in the open action menu
@ -425,6 +407,5 @@ Feature: Set up contextual data for tests
And the following "blocks" exist: And the following "blocks" exist:
| blockname | contextlevel | reference | pagetypepattern | defaultregion | | blockname | contextlevel | reference | pagetypepattern | defaultregion |
| online_users | Course | C1 | course-view-* | site-pre | | online_users | Course | C1 | course-view-* | site-pre |
When I log in as "admin" When I am on the "Course 1" course page logged in as admin
And I am on "Course 1" course homepage
Then I should see "Online users" Then I should see "Online users"

View file

@ -54,10 +54,7 @@ Feature: Backup user data
And I navigate to "Recycle bin" in current page administration And I navigate to "Recycle bin" in current page administration
And I should see "Quiz 1" And I should see "Quiz 1"
And I click on "Restore" "link" in the "region-main" "region" And I click on "Restore" "link" in the "region-main" "region"
And I log out When I am on the "Course 1" "grades > User report > View" page logged in as "student1"
And I log in as "student1"
And I am on "Course 1" course homepage
When I navigate to "User report" in the course gradebook
Then "Quiz 1" row "Grade" column of "user-grade" table should contain "50" Then "Quiz 1" row "Grade" column of "user-grade" table should contain "50"
And "Quiz 1" row "Percentage" column of "user-grade" table should contain "50" And "Quiz 1" row "Percentage" column of "user-grade" table should contain "50"

View file

@ -32,18 +32,15 @@ Feature: The activity results block displays student scores
And the following "activities" exist: And the following "activities" exist:
| activity | name | content | course | section | idnumber | | activity | name | content | course | section | idnumber |
| page | Test page name | This is a page | C1 | 1 | page1 | | page | Test page name | This is a page | C1 | 1 | page1 |
And the following "grade grades" exist:
| gradeitem | user | grade |
| Test assignment 1 | student1 | 90.00 |
| Test assignment 1 | student2 | 80.00 |
| Test assignment 1 | student3 | 70.00 |
| Test assignment 1 | student4 | 60.00 |
| Test assignment 1 | student5 | 50.00 |
And I log in as "teacher1" And I log in as "teacher1"
And I am on "Course 1" course homepage with editing mode on And I am on "Course 1" course homepage with editing mode on
And I should see "Test page name"
And I navigate to "View > Grader report" in the course gradebook
And I change window size to "large"
And I give the grade "90.00" to the user "Student 1" for the grade item "Test assignment 1"
And I give the grade "80.00" to the user "Student 2" for the grade item "Test assignment 1"
And I give the grade "70.00" to the user "Student 3" for the grade item "Test assignment 1"
And I give the grade "60.00" to the user "Student 4" for the grade item "Test assignment 1"
And I give the grade "50.00" to the user "Student 5" for the grade item "Test assignment 1"
And I press "Save changes"
And I am on "Course 1" course homepage
Scenario: Configure the block on a non-graded activity to show 3 high scores Scenario: Configure the block on a non-graded activity to show 3 high scores
Given I am on the "Test page name" "page activity" page Given I am on the "Test page name" "page activity" page

View file

@ -27,16 +27,15 @@ Feature: The activity results block displays student high scores
And the following "activities" exist: And the following "activities" exist:
| activity | name | intro | course | section | idnumber | assignsubmission_file_enabled | | activity | name | intro | course | section | idnumber | assignsubmission_file_enabled |
| assign | Test assignment | Offline text | C1 | 1 | assign1 | 0 | | assign | Test assignment | Offline text | C1 | 1 | assign1 | 0 |
And the following "grade grades" exist:
| gradeitem | user | grade |
| Test assignment | student1 | 90.00 |
| Test assignment | student2 | 80.00 |
| Test assignment | student3 | 70.00 |
| Test assignment | student4 | 60.00 |
| Test assignment | student5 | 50.00 |
And I log in as "teacher1" And I log in as "teacher1"
And I am on "Course 1" course homepage with editing mode on And I am on "Course 1" course homepage with editing mode on
And I navigate to "View > Grader report" in the course gradebook
And I give the grade "90.00" to the user "Student 1" for the grade item "Test assignment"
And I give the grade "80.00" to the user "Student 2" for the grade item "Test assignment"
And I give the grade "70.00" to the user "Student 3" for the grade item "Test assignment"
And I give the grade "60.00" to the user "Student 4" for the grade item "Test assignment"
And I give the grade "50.00" to the user "Student 5" for the grade item "Test assignment"
And I press "Save changes"
And I am on "Course 1" course homepage
Scenario: Configure the block on the course page to show 0 high scores Scenario: Configure the block on the course page to show 0 high scores
Given I add the "Activity results" block Given I add the "Activity results" block

View file

@ -31,23 +31,15 @@ Feature: The activity results block displays students high scores in group as sc
| name | Test assignment | | name | Test assignment |
| intro | Offline text | | intro | Offline text |
| assignsubmission_file_enabled | 0 | | assignsubmission_file_enabled | 0 |
And I log in as "teacher1" And the following "scales" exist:
And I am on "Course 1" course homepage | name | scale |
And I navigate to "Scales" in the course gradebook | My Scale | Disappointing, Not good enough, Average, Good, Very good, Excellent! |
And I press "Add a new scale" And I am on the "Test assignment" "assign activity editing" page logged in as teacher1
And I set the following fields to these values:
| Name | My Scale |
| Scale | Disappointing, Not good enough, Average, Good, Very good, Excellent! |
And I press "Save changes"
And I am on "Course 1" course homepage
And I follow "Test assignment"
And I navigate to "Settings" in current page administration
And I set the following fields to these values: And I set the following fields to these values:
| id_grade_modgrade_type | Scale | | id_grade_modgrade_type | Scale |
| id_grade_modgrade_scale | My Scale | | id_grade_modgrade_scale | My Scale |
And I press "Save and return to course" And I press "Save and return to course"
And I am on "Course 1" course homepage And I am on the "Course 1" "grades > Grader report > View" page
And I navigate to "View > Grader report" in the course gradebook
And I turn editing mode on And I turn editing mode on
And I give the grade "Excellent!" to the user "Student 1" for the grade item "Test assignment" And I give the grade "Excellent!" to the user "Student 1" for the grade item "Test assignment"
And I give the grade "Very good" to the user "Student 2" for the grade item "Test assignment" And I give the grade "Very good" to the user "Student 2" for the grade item "Test assignment"

View file

@ -44,25 +44,19 @@ Feature: The activity results block displays student in group high scores as sca
And the following "activities" exist: And the following "activities" exist:
| activity | name | intro | course | section | idnumber | | activity | name | intro | course | section | idnumber |
| assign | Test assignment | Offline text | C1 | 1 | assign1 | | assign | Test assignment | Offline text | C1 | 1 | assign1 |
And I log in as "teacher1" And the following "scales" exist:
And I am on "Course 1" course homepage with editing mode on | name | scale |
And I navigate to "Scales" in the course gradebook | My Scale | Disappointing, Not good enough, Average, Good, Very good, Excellent! |
And I press "Add a new scale" And I change window size to "large"
And I set the following fields to these values: And I am on the "Test assignment" "assign activity editing" page logged in as teacher1
| Name | My Scale |
| Scale | Disappointing, Not good enough, Average, Good, Very good, Excellent! |
And I press "Save changes"
And I am on "Course 1" course homepage
And I am on the "Test assignment" "assign activity" page
And I navigate to "Settings" in current page administration
And I set the following fields to these values: And I set the following fields to these values:
| assignsubmission_file_enabled | 0 | | assignsubmission_file_enabled | 0 |
| id_grade_modgrade_type | Scale | | id_grade_modgrade_type | Scale |
| id_grade_modgrade_scale | My Scale | | id_grade_modgrade_scale | My Scale |
| Group mode | Separate groups | | Group mode | Separate groups |
And I press "Save and return to course" And I press "Save and return to course"
And I am on "Course 1" course homepage And I turn editing mode on
And I navigate to "View > Grader report" in the course gradebook And I am on the "Course 1" "grades > Grader report > View" page
And I give the grade "Excellent!" to the user "Student 1" for the grade item "Test assignment" And I give the grade "Excellent!" to the user "Student 1" for the grade item "Test assignment"
And I give the grade "Very good" to the user "Student 2" for the grade item "Test assignment" And I give the grade "Very good" to the user "Student 2" for the grade item "Test assignment"
And I give the grade "Very good" to the user "Student 3" for the grade item "Test assignment" And I give the grade "Very good" to the user "Student 3" for the grade item "Test assignment"
@ -83,9 +77,7 @@ Feature: The activity results block displays student in group high scores as sca
And I press "Save changes" And I press "Save changes"
Then I should see "Group 1" in the "Activity results" "block" Then I should see "Group 1" in the "Activity results" "block"
And I should see "Excellent!" in the "Activity results" "block" And I should see "Excellent!" in the "Activity results" "block"
And I log out And I am on the "Course 1" course page logged in as student1
And I log in as "student1"
And I am on "Course 1" course homepage
And I should see "Student 1" in the "Activity results" "block" And I should see "Student 1" in the "Activity results" "block"
And I should see "Excellent!" in the "Activity results" "block" And I should see "Excellent!" in the "Activity results" "block"
@ -104,9 +96,7 @@ Feature: The activity results block displays student in group high scores as sca
And I should see "Very good" in the "Activity results" "block" And I should see "Very good" in the "Activity results" "block"
And I should see "Group 3" in the "Activity results" "block" And I should see "Group 3" in the "Activity results" "block"
And I should see "Good" in the "Activity results" "block" And I should see "Good" in the "Activity results" "block"
And I log out And I am on the "Course 1" course page logged in as student3
And I log in as "student3"
And I am on "Course 1" course homepage
And I should see "Student 3" in the "Activity results" "block" And I should see "Student 3" in the "Activity results" "block"
And I should see "Very good" in the "Activity results" "block" And I should see "Very good" in the "Activity results" "block"
And I should see "Student 4" in the "Activity results" "block" And I should see "Student 4" in the "Activity results" "block"
@ -127,10 +117,8 @@ Feature: The activity results block displays student in group high scores as sca
And I should see "Excellent!" in the "Activity results" "block" And I should see "Excellent!" in the "Activity results" "block"
And I should see "Very good" in the "Activity results" "block" And I should see "Very good" in the "Activity results" "block"
And I should see "Good" in the "Activity results" "block" And I should see "Good" in the "Activity results" "block"
And I log out
# Students cannot see user identity fields. # Students cannot see user identity fields.
And I log in as "student1" And I am on the "Course 1" course page logged in as student1
And I am on "Course 1" course homepage
And I should see "User" in the "Activity results" "block" And I should see "User" in the "Activity results" "block"
And I should not see "User S1" in the "Activity results" "block" And I should not see "User S1" in the "Activity results" "block"
And I should see "Excellent!" in the "Activity results" "block" And I should see "Excellent!" in the "Activity results" "block"
@ -150,9 +138,7 @@ Feature: The activity results block displays student in group high scores as sca
And I should see "Excellent!" in the "Activity results" "block" And I should see "Excellent!" in the "Activity results" "block"
And I should see "Very good" in the "Activity results" "block" And I should see "Very good" in the "Activity results" "block"
And I should see "Good" in the "Activity results" "block" And I should see "Good" in the "Activity results" "block"
And I log out And I am on the "Course 1" course page logged in as student1
And I log in as "student1"
And I am on "Course 1" course homepage
And I should see "User" in the "Activity results" "block" And I should see "User" in the "Activity results" "block"
And I should see "Excellent!" in the "Activity results" "block" And I should see "Excellent!" in the "Activity results" "block"
And I should see "Very good" in the "Activity results" "block" And I should see "Very good" in the "Activity results" "block"

View file

@ -46,21 +46,19 @@ Feature: The activity results block displays student in separate groups scores
| course | C1 | | course | C1 |
| idnumber | 0001 | | idnumber | 0001 |
| name | Test assignment | | name | Test assignment |
| intro | Offline text |
| section | 1 | | section | 1 |
| assignsubmission_file_enabled | 0 | | assignsubmission_file_enabled | 0 |
| groupmode | 1 | | groupmode | 1 |
And the following "grade grades" exist:
| gradeitem | user | grade |
| Test assignment | student1 | 100.00 |
| Test assignment | student2 | 90.00 |
| Test assignment | student3 | 90.00 |
| Test assignment | student4 | 80.00 |
| Test assignment | student5 | 80.00 |
| Test assignment | student6 | 70.00 |
And I log in as "teacher1" And I log in as "teacher1"
And I am on "Course 1" course homepage with editing mode on And I am on "Course 1" course homepage with editing mode on
And I navigate to "View > Grader report" in the course gradebook
And I give the grade "100.00" to the user "Student 1" for the grade item "Test assignment"
And I give the grade "90.00" to the user "Student 2" for the grade item "Test assignment"
And I give the grade "90.00" to the user "Student 3" for the grade item "Test assignment"
And I give the grade "80.00" to the user "Student 4" for the grade item "Test assignment"
And I give the grade "80.00" to the user "Student 5" for the grade item "Test assignment"
And I give the grade "70.00" to the user "Student 6" for the grade item "Test assignment"
And I press "Save changes"
And I am on "Course 1" course homepage
Scenario: Configure the block on the course page to show 1 high score Scenario: Configure the block on the course page to show 1 high score
Given I add the "Activity results" block Given I add the "Activity results" block
@ -88,9 +86,7 @@ Feature: The activity results block displays student in separate groups scores
And I press "Save changes" And I press "Save changes"
Then I should see "Group 1" in the "Activity results" "block" Then I should see "Group 1" in the "Activity results" "block"
And I should see "95.00/100.00" in the "Activity results" "block" And I should see "95.00/100.00" in the "Activity results" "block"
And I log out And I am on the "Course 1" course page logged in as student1
And I log in as "student1"
And I am on "Course 1" course homepage
And I should see "Student 1" in the "Activity results" "block" And I should see "Student 1" in the "Activity results" "block"
And I should see "100.00/100.00" in the "Activity results" "block" And I should see "100.00/100.00" in the "Activity results" "block"
@ -106,9 +102,7 @@ Feature: The activity results block displays student in separate groups scores
And I press "Save changes" And I press "Save changes"
Then I should see "Group 1" in the "Activity results" "block" Then I should see "Group 1" in the "Activity results" "block"
And I should see "95.00" in the "Activity results" "block" And I should see "95.00" in the "Activity results" "block"
And I log out And I am on the "Course 1" course page logged in as student1
And I log in as "student1"
And I am on "Course 1" course homepage
And I should see "Student 1" in the "Activity results" "block" And I should see "Student 1" in the "Activity results" "block"
And I should see "100.00" in the "Activity results" "block" And I should see "100.00" in the "Activity results" "block"
@ -129,9 +123,7 @@ Feature: The activity results block displays student in separate groups scores
And I should see "85%" in the "Activity results" "block" And I should see "85%" in the "Activity results" "block"
And I should see "Group 3" in the "Activity results" "block" And I should see "Group 3" in the "Activity results" "block"
And I should see "75%" in the "Activity results" "block" And I should see "75%" in the "Activity results" "block"
And I log out And I am on the "Course 1" course page logged in as student1
And I log in as "student1"
And I am on "Course 1" course homepage
And I should see "Student 1" in the "Activity results" "block" And I should see "Student 1" in the "Activity results" "block"
And I should see "100%" in the "Activity results" "block" And I should see "100%" in the "Activity results" "block"
And I should see "Student 2" in the "Activity results" "block" And I should see "Student 2" in the "Activity results" "block"
@ -153,9 +145,7 @@ Feature: The activity results block displays student in separate groups scores
And I should see "85.00/100.00" in the "Activity results" "block" And I should see "85.00/100.00" in the "Activity results" "block"
And I should see "Group 3" in the "Activity results" "block" And I should see "Group 3" in the "Activity results" "block"
And I should see "75.00/100.00" in the "Activity results" "block" And I should see "75.00/100.00" in the "Activity results" "block"
And I log out And I am on the "Course 1" course page logged in as student3
And I log in as "student3"
And I am on "Course 1" course homepage
And I should see "Student 3" in the "Activity results" "block" And I should see "Student 3" in the "Activity results" "block"
And I should see "90.00/100.00" in the "Activity results" "block" And I should see "90.00/100.00" in the "Activity results" "block"
And I should see "Student 4" in the "Activity results" "block" And I should see "Student 4" in the "Activity results" "block"
@ -177,9 +167,7 @@ Feature: The activity results block displays student in separate groups scores
And I should see "85.00" in the "Activity results" "block" And I should see "85.00" in the "Activity results" "block"
And I should see "Group 3" in the "Activity results" "block" And I should see "Group 3" in the "Activity results" "block"
And I should see "75.00" in the "Activity results" "block" And I should see "75.00" in the "Activity results" "block"
And I log out And I am on the "Course 1" course page logged in as student1
And I log in as "student1"
And I am on "Course 1" course homepage
And I should see "Student 1" in the "Activity results" "block" And I should see "Student 1" in the "Activity results" "block"
And I should see "100.00" in the "Activity results" "block" And I should see "100.00" in the "Activity results" "block"
And I should see "Student 2" in the "Activity results" "block" And I should see "Student 2" in the "Activity results" "block"
@ -201,10 +189,8 @@ Feature: The activity results block displays student in separate groups scores
And I should see "95.00%" in the "Activity results" "block" And I should see "95.00%" in the "Activity results" "block"
And I should see "85.00%" in the "Activity results" "block" And I should see "85.00%" in the "Activity results" "block"
And I should see "75.00%" in the "Activity results" "block" And I should see "75.00%" in the "Activity results" "block"
And I log out
# Students cannot see user identity fields. # Students cannot see user identity fields.
And I log in as "student1" And I am on the "Course 1" course page logged in as student1
And I am on "Course 1" course homepage
And I should see "User" in the "Activity results" "block" And I should see "User" in the "Activity results" "block"
And I should not see "User S1" in the "Activity results" "block" And I should not see "User S1" in the "Activity results" "block"
And I should see "100.00%" in the "Activity results" "block" And I should see "100.00%" in the "Activity results" "block"
@ -225,9 +211,7 @@ Feature: The activity results block displays student in separate groups scores
And I should see "95.00%" in the "Activity results" "block" And I should see "95.00%" in the "Activity results" "block"
And I should see "85.00%" in the "Activity results" "block" And I should see "85.00%" in the "Activity results" "block"
And I should see "75.00%" in the "Activity results" "block" And I should see "75.00%" in the "Activity results" "block"
And I log out And I am on the "Course 1" course page logged in as student1
And I log in as "student1"
And I am on "Course 1" course homepage
And I should see "User" in the "Activity results" "block" And I should see "User" in the "Activity results" "block"
And I should see "100.00%" in the "Activity results" "block" And I should see "100.00%" in the "Activity results" "block"
And I should see "90.00%" in the "Activity results" "block" And I should see "90.00%" in the "Activity results" "block"

View file

@ -42,17 +42,13 @@ Feature: The activity results block displays student in visible groups scores
| student5 | G3 | | student5 | G3 |
| student6 | G3 | | student6 | G3 |
And the following "activities" exist: And the following "activities" exist:
| activity | name | intro | course | idnumber | section | assignsubmission_file_enabled | | activity | name | course | idnumber | section | assignsubmission_file_enabled |
| assign | Test assignment | Test assignment | C1 | assign1 | 1 | 0 | | assign | Test assignment | C1 | assign1 | 1 | 0 |
And I log in as "teacher1" And I am on the "Test assignment" "assign activity editing" page logged in as teacher1
And I am on "Course 1" course homepage with editing mode on
And I am on the "Test assignment" "assign activity" page
And I navigate to "Settings" in current page administration
And I set the following fields to these values: And I set the following fields to these values:
| Group mode | Visible groups | | Group mode | Visible groups |
And I press "Save and return to course" And I press "Save and return to course"
And I am on "Course 1" course homepage And I am on the "Course 1" "grades > Grader report > View" page
And I navigate to "View > Grader report" in the course gradebook
And I turn editing mode on And I turn editing mode on
And I give the grade "100.00" to the user "Student 1" for the grade item "Test assignment" And I give the grade "100.00" to the user "Student 1" for the grade item "Test assignment"
And I give the grade "90.00" to the user "Student 2" for the grade item "Test assignment" And I give the grade "90.00" to the user "Student 2" for the grade item "Test assignment"
@ -61,7 +57,7 @@ Feature: The activity results block displays student in visible groups scores
And I give the grade "80.00" to the user "Student 5" for the grade item "Test assignment" And I give the grade "80.00" to the user "Student 5" for the grade item "Test assignment"
And I give the grade "70.00" to the user "Student 6" for the grade item "Test assignment" And I give the grade "70.00" to the user "Student 6" for the grade item "Test assignment"
And I press "Save changes" And I press "Save changes"
And I am on "Course 1" course homepage And I am on "Course 1" course homepage with editing mode on
Scenario: Configure the block on the course page to show 1 high score Scenario: Configure the block on the course page to show 1 high score
Given I add the "Activity results" block Given I add the "Activity results" block
@ -87,9 +83,7 @@ Feature: The activity results block displays student in visible groups scores
| config_nameformat | Display full names | | config_nameformat | Display full names |
| config_usegroups | Yes | | config_usegroups | Yes |
And I press "Save changes" And I press "Save changes"
And I log out Then I am on the "Course 1" course page logged in as student1
Then I log in as "student1"
And I am on "Course 1" course homepage
And I should see "Group 1" in the "Activity results" "block" And I should see "Group 1" in the "Activity results" "block"
And I should see "95.00/100.00" in the "Activity results" "block" And I should see "95.00/100.00" in the "Activity results" "block"
@ -103,9 +97,7 @@ Feature: The activity results block displays student in visible groups scores
| config_nameformat | Display full names | | config_nameformat | Display full names |
| config_usegroups | Yes | | config_usegroups | Yes |
And I press "Save changes" And I press "Save changes"
And I log out Then I am on the "Course 1" course page logged in as student1
Then I log in as "student1"
And I am on "Course 1" course homepage
And I should see "Group 1" in the "Activity results" "block" And I should see "Group 1" in the "Activity results" "block"
And I should see "95.00" in the "Activity results" "block" And I should see "95.00" in the "Activity results" "block"
@ -120,9 +112,7 @@ Feature: The activity results block displays student in visible groups scores
| config_decimalpoints | 0 | | config_decimalpoints | 0 |
| config_usegroups | Yes | | config_usegroups | Yes |
And I press "Save changes" And I press "Save changes"
And I log out Then I am on the "Course 1" course page logged in as student1
Then I log in as "student1"
And I am on "Course 1" course homepage
And I should see "Group 1" in the "Activity results" "block" And I should see "Group 1" in the "Activity results" "block"
And I should see "95%" in the "Activity results" "block" And I should see "95%" in the "Activity results" "block"
And I should see "Group 2" in the "Activity results" "block" And I should see "Group 2" in the "Activity results" "block"
@ -140,9 +130,7 @@ Feature: The activity results block displays student in visible groups scores
| config_nameformat | Display full names | | config_nameformat | Display full names |
| config_usegroups | Yes | | config_usegroups | Yes |
And I press "Save changes" And I press "Save changes"
And I log out Then I am on the "Course 1" course page logged in as student1
Then I log in as "student1"
And I am on "Course 1" course homepage
And I should see "Group 1" in the "Activity results" "block" And I should see "Group 1" in the "Activity results" "block"
And I should see "95.00/100.00" in the "Activity results" "block" And I should see "95.00/100.00" in the "Activity results" "block"
And I should see "Group 2" in the "Activity results" "block" And I should see "Group 2" in the "Activity results" "block"
@ -160,9 +148,7 @@ Feature: The activity results block displays student in visible groups scores
| config_nameformat | Display full names | | config_nameformat | Display full names |
| config_usegroups | Yes | | config_usegroups | Yes |
And I press "Save changes" And I press "Save changes"
And I log out Then I am on the "Course 1" course page logged in as student1
Then I log in as "student1"
And I am on "Course 1" course homepage
And I should see "Group 1" in the "Activity results" "block" And I should see "Group 1" in the "Activity results" "block"
And I should see "95.00" in the "Activity results" "block" And I should see "95.00" in the "Activity results" "block"
And I should see "Group 2" in the "Activity results" "block" And I should see "Group 2" in the "Activity results" "block"
@ -182,9 +168,7 @@ Feature: The activity results block displays student in visible groups scores
| config_nameformat | Display only ID numbers | | config_nameformat | Display only ID numbers |
| config_usegroups | Yes | | config_usegroups | Yes |
And I press "Save changes" And I press "Save changes"
And I log out Then I am on the "Course 1" course page logged in as student1
Then I log in as "student1"
And I am on "Course 1" course homepage
And I should see "Group" in the "Activity results" "block" And I should see "Group" in the "Activity results" "block"
And I should see "95.00%" in the "Activity results" "block" And I should see "95.00%" in the "Activity results" "block"
And I should see "85.00%" in the "Activity results" "block" And I should see "85.00%" in the "Activity results" "block"
@ -200,9 +184,7 @@ Feature: The activity results block displays student in visible groups scores
| config_nameformat | Anonymous results | | config_nameformat | Anonymous results |
| config_usegroups | Yes | | config_usegroups | Yes |
And I press "Save changes" And I press "Save changes"
And I log out Then I am on the "Course 1" course page logged in as student1
Then I log in as "student1"
And I am on "Course 1" course homepage
And I should see "Group" in the "Activity results" "block" And I should see "Group" in the "Activity results" "block"
And I should see "95.00%" in the "Activity results" "block" And I should see "95.00%" in the "Activity results" "block"
And I should see "85.00%" in the "Activity results" "block" And I should see "85.00%" in the "Activity results" "block"

View file

@ -29,19 +29,16 @@ Feature: The activity results block displays student low scores
| course | C1 | | course | C1 |
| idnumber | 0001 | | idnumber | 0001 |
| name | Test assignment | | name | Test assignment |
| intro | Offline text |
| section | 1 |
| assignsubmission_file_enabled | 0 | | assignsubmission_file_enabled | 0 |
And the following "grade grades" exist:
| gradeitem | user | grade |
| Test assignment | student1 | 90.00 |
| Test assignment | student2 | 80.00 |
| Test assignment | student3 | 70.00 |
| Test assignment | student4 | 60.00 |
| Test assignment | student5 | 50.00 |
And I log in as "teacher1" And I log in as "teacher1"
And I am on "Course 1" course homepage with editing mode on And I am on "Course 1" course homepage with editing mode on
And I navigate to "View > Grader report" in the course gradebook
And I give the grade "90.00" to the user "Student 1" for the grade item "Test assignment"
And I give the grade "80.00" to the user "Student 2" for the grade item "Test assignment"
And I give the grade "70.00" to the user "Student 3" for the grade item "Test assignment"
And I give the grade "60.00" to the user "Student 4" for the grade item "Test assignment"
And I give the grade "50.00" to the user "Student 5" for the grade item "Test assignment"
And I press "Save changes"
And I am on "Course 1" course homepage
Scenario: Configure the block on the course page to show 1 low score Scenario: Configure the block on the course page to show 1 low score
Given I add the "Activity results" block Given I add the "Activity results" block

View file

@ -32,23 +32,16 @@ Feature: The activity results block displays student low scores as scales
| idnumber | 0001 | | idnumber | 0001 |
| section | 1 | | section | 1 |
| assignsubmission_file_enabled | 0 | | assignsubmission_file_enabled | 0 |
And I log in as "teacher1" And the following "scales" exist:
And I am on "Course 1" course homepage | name | scale |
And I navigate to "Scales" in the course gradebook | My Scale | Disappointing, Not good enough, Average, Good, Very good, Excellent! |
And I press "Add a new scale" And I am on the "Test assignment" "assign activity editing" page logged in as teacher1
And I set the following fields to these values:
| Name | My Scale |
| Scale | Disappointing, Not good enough, Average, Good, Very good, Excellent! |
And I press "Save changes"
And I am on "Course 1" course homepage with editing mode on
And I am on the "Test assignment" "assign activity" page
And I navigate to "Settings" in current page administration
And I set the following fields to these values: And I set the following fields to these values:
| id_grade_modgrade_type | Scale | | id_grade_modgrade_type | Scale |
| id_grade_modgrade_scale | My Scale | | id_grade_modgrade_scale | My Scale |
And I press "Save and return to course" And I press "Save and return to course"
And I am on "Course 1" course homepage And I turn editing mode on
And I navigate to "View > Grader report" in the course gradebook And I am on the "Course 1" "grades > Grader report > View" page
And I give the grade "Excellent!" to the user "Student 1" for the grade item "Test assignment" And I give the grade "Excellent!" to the user "Student 1" for the grade item "Test assignment"
And I give the grade "Very good" to the user "Student 2" for the grade item "Test assignment" And I give the grade "Very good" to the user "Student 2" for the grade item "Test assignment"
And I give the grade "Good" to the user "Student 3" for the grade item "Test assignment" And I give the grade "Good" to the user "Student 3" for the grade item "Test assignment"

View file

@ -49,23 +49,16 @@ Feature: The activity results block displays students in groups low scores as sc
| description | Offline text | | description | Offline text |
| assignsubmission_file_enabled | 0 | | assignsubmission_file_enabled | 0 |
| groupmode | 1 | | groupmode | 1 |
And I log in as "teacher1" And the following "scales" exist:
And I am on "Course 1" course homepage | name | scale |
And I navigate to "Scales" in the course gradebook | My Scale | Disappointing, Not good enough, Average, Good, Very good, Excellent! |
And I press "Add a new scale" And I change window size to "large"
And I set the following fields to these values: And I am on the "Test assignment" "assign activity editing" page logged in as teacher1
| Name | My Scale |
| Scale | Disappointing, Not good enough, Average, Good, Very good, Excellent! |
And I press "Save changes"
And I am on "Course 1" course homepage
And I follow "Test assignment"
And I navigate to "Settings" in current page administration
And I set the following fields to these values: And I set the following fields to these values:
| id_grade_modgrade_type | Scale | | id_grade_modgrade_type | Scale |
| id_grade_modgrade_scale | My Scale | | id_grade_modgrade_scale | My Scale |
And I press "Save and return to course" And I press "Save and return to course"
And I am on "Course 1" course homepage And I am on the "Course 1" "grades > Grader report > View" page
And I navigate to "View > Grader report" in the course gradebook
And I turn editing mode on And I turn editing mode on
And I give the grade "Excellent!" to the user "Student 1" for the grade item "Test assignment" And I give the grade "Excellent!" to the user "Student 1" for the grade item "Test assignment"
And I give the grade "Very good" to the user "Student 2" for the grade item "Test assignment" And I give the grade "Very good" to the user "Student 2" for the grade item "Test assignment"
@ -87,9 +80,7 @@ Feature: The activity results block displays students in groups low scores as sc
And I press "Save changes" And I press "Save changes"
Then I should see "Group 3" in the "Activity results" "block" Then I should see "Group 3" in the "Activity results" "block"
And I should see "Good" in the "Activity results" "block" And I should see "Good" in the "Activity results" "block"
And I log out And I am on the "Course 1" course page logged in as student5
And I log in as "student5"
And I am on "Course 1" course homepage
And I should see "Student 6" in the "Activity results" "block" And I should see "Student 6" in the "Activity results" "block"
And I should see "Average" in the "Activity results" "block" And I should see "Average" in the "Activity results" "block"
@ -106,9 +97,7 @@ Feature: The activity results block displays students in groups low scores as sc
And I should see "Very good" in the "Activity results" "block" And I should see "Very good" in the "Activity results" "block"
And I should see "Group 3" in the "Activity results" "block" And I should see "Group 3" in the "Activity results" "block"
And I should see "Good" in the "Activity results" "block" And I should see "Good" in the "Activity results" "block"
And I log out And I am on the "Course 1" course page logged in as student3
And I log in as "student3"
And I am on "Course 1" course homepage
And I should see "Student 3" in the "Activity results" "block" And I should see "Student 3" in the "Activity results" "block"
And I should see "Very good" in the "Activity results" "block" And I should see "Very good" in the "Activity results" "block"
And I should see "Student 4" in the "Activity results" "block" And I should see "Student 4" in the "Activity results" "block"
@ -128,10 +117,8 @@ Feature: The activity results block displays students in groups low scores as sc
Then I should see "Group" in the "Activity results" "block" Then I should see "Group" in the "Activity results" "block"
And I should see "Very good" in the "Activity results" "block" And I should see "Very good" in the "Activity results" "block"
And I should see "Good" in the "Activity results" "block" And I should see "Good" in the "Activity results" "block"
And I log out
# Students cannot see user identity fields. # Students cannot see user identity fields.
And I log in as "student5" And I am on the "Course 1" course page logged in as student5
And I am on "Course 1" course homepage
And I should see "User" in the "Activity results" "block" And I should see "User" in the "Activity results" "block"
And I should not see "User S5" in the "Activity results" "block" And I should not see "User S5" in the "Activity results" "block"
And I should see "Good" in the "Activity results" "block" And I should see "Good" in the "Activity results" "block"
@ -150,9 +137,7 @@ Feature: The activity results block displays students in groups low scores as sc
Then I should see "Group" in the "Activity results" "block" Then I should see "Group" in the "Activity results" "block"
And I should see "Very good" in the "Activity results" "block" And I should see "Very good" in the "Activity results" "block"
And I should see "Good" in the "Activity results" "block" And I should see "Good" in the "Activity results" "block"
And I log out And I am on the "Course 1" course page logged in as student5
And I log in as "student5"
And I am on "Course 1" course homepage
And I should see "User" in the "Activity results" "block" And I should see "User" in the "Activity results" "block"
And I should see "Good" in the "Activity results" "block" And I should see "Good" in the "Activity results" "block"
And I should see "Average" in the "Activity results" "block" And I should see "Average" in the "Activity results" "block"

View file

@ -42,19 +42,18 @@ Feature: The activity results block displays students in separate groups scores
| student5 | G3 | | student5 | G3 |
| student6 | G3 | | student6 | G3 |
And the following "activities" exist: And the following "activities" exist:
| activity | course | idnumber | name | intro | assignsubmission_file_enabled | groupmode | | activity | course | idnumber | name | assignsubmission_file_enabled | groupmode |
| assign | C1 | a1 | Test assignment | Offline text | 0 | 1 | | assign | C1 | a1 | Test assignment | 0 | 1 |
And the following "grade grades" exist:
| gradeitem | user | grade |
| Test assignment | student1 | 100.00 |
| Test assignment | student2 | 90.00 |
| Test assignment | student3 | 90.00 |
| Test assignment | student4 | 80.00 |
| Test assignment | student5 | 80.00 |
| Test assignment | student6 | 70.00 |
And I log in as "teacher1" And I log in as "teacher1"
And I am on "Course 1" course homepage with editing mode on And I am on "Course 1" course homepage with editing mode on
And I navigate to "View > Grader report" in the course gradebook
And I give the grade "100.00" to the user "Student 1" for the grade item "Test assignment"
And I give the grade "90.00" to the user "Student 2" for the grade item "Test assignment"
And I give the grade "90.00" to the user "Student 3" for the grade item "Test assignment"
And I give the grade "80.00" to the user "Student 4" for the grade item "Test assignment"
And I give the grade "80.00" to the user "Student 5" for the grade item "Test assignment"
And I give the grade "70.00" to the user "Student 6" for the grade item "Test assignment"
And I press "Save changes"
And I am on "Course 1" course homepage
Scenario: Configure the block on the course page to show 1 low score Scenario: Configure the block on the course page to show 1 low score
Given I add the "Activity results" block Given I add the "Activity results" block
@ -82,9 +81,7 @@ Feature: The activity results block displays students in separate groups scores
And I press "Save changes" And I press "Save changes"
Then I should see "Group 3" in the "Activity results" "block" Then I should see "Group 3" in the "Activity results" "block"
And I should see "75.00/100.00" in the "Activity results" "block" And I should see "75.00/100.00" in the "Activity results" "block"
And I log out And I am on the "Course 1" course page logged in as student5
And I log in as "student5"
And I am on "Course 1" course homepage
And I should see "Student 6" in the "Activity results" "block" And I should see "Student 6" in the "Activity results" "block"
And I should see "70.00/100.00" in the "Activity results" "block" And I should see "70.00/100.00" in the "Activity results" "block"
@ -100,9 +97,7 @@ Feature: The activity results block displays students in separate groups scores
And I press "Save changes" And I press "Save changes"
Then I should see "Group 3" in the "Activity results" "block" Then I should see "Group 3" in the "Activity results" "block"
And I should see "75.00" in the "Activity results" "block" And I should see "75.00" in the "Activity results" "block"
And I log out And I am on the "Course 1" course page logged in as student5
And I log in as "student5"
And I am on "Course 1" course homepage
And I should see "Student 6" in the "Activity results" "block" And I should see "Student 6" in the "Activity results" "block"
And I should see "70.00" in the "Activity results" "block" And I should see "70.00" in the "Activity results" "block"
@ -121,9 +116,7 @@ Feature: The activity results block displays students in separate groups scores
And I should see "85%" in the "Activity results" "block" And I should see "85%" in the "Activity results" "block"
And I should see "Group 3" in the "Activity results" "block" And I should see "Group 3" in the "Activity results" "block"
And I should see "75%" in the "Activity results" "block" And I should see "75%" in the "Activity results" "block"
And I log out And I am on the "Course 1" course page logged in as student5
And I log in as "student5"
And I am on "Course 1" course homepage
And I should see "Student 6" in the "Activity results" "block" And I should see "Student 6" in the "Activity results" "block"
And I should see "70%" in the "Activity results" "block" And I should see "70%" in the "Activity results" "block"
And I should see "Student 5" in the "Activity results" "block" And I should see "Student 5" in the "Activity results" "block"
@ -143,9 +136,7 @@ Feature: The activity results block displays students in separate groups scores
And I should see "85.00/100.00" in the "Activity results" "block" And I should see "85.00/100.00" in the "Activity results" "block"
And I should see "Group 3" in the "Activity results" "block" And I should see "Group 3" in the "Activity results" "block"
And I should see "75.00/100.00" in the "Activity results" "block" And I should see "75.00/100.00" in the "Activity results" "block"
And I log out And I am on the "Course 1" course page logged in as student3
And I log in as "student3"
And I am on "Course 1" course homepage
And I should see "Student 3" in the "Activity results" "block" And I should see "Student 3" in the "Activity results" "block"
And I should see "90.00/100.00" in the "Activity results" "block" And I should see "90.00/100.00" in the "Activity results" "block"
And I should see "Student 4" in the "Activity results" "block" And I should see "Student 4" in the "Activity results" "block"
@ -165,9 +156,7 @@ Feature: The activity results block displays students in separate groups scores
And I should see "85.00" in the "Activity results" "block" And I should see "85.00" in the "Activity results" "block"
And I should see "Group 3" in the "Activity results" "block" And I should see "Group 3" in the "Activity results" "block"
And I should see "75.00" in the "Activity results" "block" And I should see "75.00" in the "Activity results" "block"
And I log out And I am on the "Course 1" course page logged in as student5
And I log in as "student5"
And I am on "Course 1" course homepage
And I should see "Student 5" in the "Activity results" "block" And I should see "Student 5" in the "Activity results" "block"
And I should see "80.00" in the "Activity results" "block" And I should see "80.00" in the "Activity results" "block"
And I should see "Student 6" in the "Activity results" "block" And I should see "Student 6" in the "Activity results" "block"
@ -188,10 +177,8 @@ Feature: The activity results block displays students in separate groups scores
Then I should see "Group" in the "Activity results" "block" Then I should see "Group" in the "Activity results" "block"
And I should see "85.00%" in the "Activity results" "block" And I should see "85.00%" in the "Activity results" "block"
And I should see "75.00%" in the "Activity results" "block" And I should see "75.00%" in the "Activity results" "block"
And I log out
# Students cannot see user identity fields. # Students cannot see user identity fields.
And I log in as "student1" And I am on the "Course 1" course page logged in as student1
And I am on "Course 1" course homepage
And I should see "User" in the "Activity results" "block" And I should see "User" in the "Activity results" "block"
And I should not see "User S1" in the "Activity results" "block" And I should not see "User S1" in the "Activity results" "block"
And I should see "100.00%" in the "Activity results" "block" And I should see "100.00%" in the "Activity results" "block"
@ -211,9 +198,7 @@ Feature: The activity results block displays students in separate groups scores
Then I should see "Group" in the "Activity results" "block" Then I should see "Group" in the "Activity results" "block"
And I should see "85.00%" in the "Activity results" "block" And I should see "85.00%" in the "Activity results" "block"
And I should see "75.00%" in the "Activity results" "block" And I should see "75.00%" in the "Activity results" "block"
And I log out And I am on the "Course 1" course page logged in as student1
And I log in as "student1"
And I am on "Course 1" course homepage
And I should see "User" in the "Activity results" "block" And I should see "User" in the "Activity results" "block"
And I should see "100.00%" in the "Activity results" "block" And I should see "100.00%" in the "Activity results" "block"
And I should see "90.00%" in the "Activity results" "block" And I should see "90.00%" in the "Activity results" "block"

View file

@ -46,21 +46,18 @@ Feature: The activity results block displays student in visible groups low score
| course | C1 | | course | C1 |
| idnumber | 0001 | | idnumber | 0001 |
| name | Test assignment | | name | Test assignment |
| intro | Offline text |
| section | 1 |
| assignsubmission_file_enabled | 0 | | assignsubmission_file_enabled | 0 |
| groupmode | 2 | | groupmode | 2 |
And the following "grade grades" exist:
| gradeitem | user | grade |
| Test assignment | student1 | 100.00 |
| Test assignment | student2 | 90.00 |
| Test assignment | student3 | 90.00 |
| Test assignment | student4 | 80.00 |
| Test assignment | student5 | 80.00 |
| Test assignment | student6 | 70.00 |
And I log in as "teacher1" And I log in as "teacher1"
And I am on "Course 1" course homepage with editing mode on And I am on "Course 1" course homepage with editing mode on
And I navigate to "View > Grader report" in the course gradebook
And I give the grade "100.00" to the user "Student 1" for the grade item "Test assignment"
And I give the grade "90.00" to the user "Student 2" for the grade item "Test assignment"
And I give the grade "90.00" to the user "Student 3" for the grade item "Test assignment"
And I give the grade "80.00" to the user "Student 4" for the grade item "Test assignment"
And I give the grade "80.00" to the user "Student 5" for the grade item "Test assignment"
And I give the grade "70.00" to the user "Student 6" for the grade item "Test assignment"
And I press "Save changes"
And I am on "Course 1" course homepage
Scenario: Configure the block on the course page to show 1 low score Scenario: Configure the block on the course page to show 1 low score
Given I add the "Activity results" block Given I add the "Activity results" block
@ -86,9 +83,7 @@ Feature: The activity results block displays student in visible groups low score
| config_nameformat | Display full names | | config_nameformat | Display full names |
| config_usegroups | Yes | | config_usegroups | Yes |
And I press "Save changes" And I press "Save changes"
And I log out Then I am on the "Course 1" course page logged in as student1
Then I log in as "student1"
And I am on "Course 1" course homepage
And I should see "Group 3" in the "Activity results" "block" And I should see "Group 3" in the "Activity results" "block"
And I should see "75.00/100.00" in the "Activity results" "block" And I should see "75.00/100.00" in the "Activity results" "block"
@ -102,9 +97,7 @@ Feature: The activity results block displays student in visible groups low score
| config_nameformat | Display full names | | config_nameformat | Display full names |
| config_usegroups | Yes | | config_usegroups | Yes |
And I press "Save changes" And I press "Save changes"
And I log out Then I am on the "Course 1" course page logged in as student1
Then I log in as "student1"
And I am on "Course 1" course homepage
And I should see "Group 3" in the "Activity results" "block" And I should see "Group 3" in the "Activity results" "block"
And I should see "75.00" in the "Activity results" "block" And I should see "75.00" in the "Activity results" "block"
@ -123,9 +116,7 @@ Feature: The activity results block displays student in visible groups low score
And I should see "85%" in the "Activity results" "block" And I should see "85%" in the "Activity results" "block"
And I should see "Group 3" in the "Activity results" "block" And I should see "Group 3" in the "Activity results" "block"
And I should see "75%" in the "Activity results" "block" And I should see "75%" in the "Activity results" "block"
And I log out And I am on the "Course 1" course page logged in as student5
And I log in as "student5"
And I am on "Course 1" course homepage
Then I should see "Group 2" in the "Activity results" "block" Then I should see "Group 2" in the "Activity results" "block"
And I should see "85%" in the "Activity results" "block" And I should see "85%" in the "Activity results" "block"
And I should see "Group 3" in the "Activity results" "block" And I should see "Group 3" in the "Activity results" "block"
@ -141,9 +132,7 @@ Feature: The activity results block displays student in visible groups low score
| config_nameformat | Display full names | | config_nameformat | Display full names |
| config_usegroups | Yes | | config_usegroups | Yes |
And I press "Save changes" And I press "Save changes"
And I log out Then I am on the "Course 1" course page logged in as student1
Then I log in as "student1"
And I am on "Course 1" course homepage
And I should see "Group 2" in the "Activity results" "block" And I should see "Group 2" in the "Activity results" "block"
And I should see "85.00/100.00" in the "Activity results" "block" And I should see "85.00/100.00" in the "Activity results" "block"
And I should see "Group 3" in the "Activity results" "block" And I should see "Group 3" in the "Activity results" "block"
@ -159,9 +148,7 @@ Feature: The activity results block displays student in visible groups low score
| config_nameformat | Display full names | | config_nameformat | Display full names |
| config_usegroups | Yes | | config_usegroups | Yes |
And I press "Save changes" And I press "Save changes"
And I log out Then I am on the "Course 1" course page logged in as student1
Then I log in as "student1"
And I am on "Course 1" course homepage
And I should see "Group 2" in the "Activity results" "block" And I should see "Group 2" in the "Activity results" "block"
And I should see "85.00" in the "Activity results" "block" And I should see "85.00" in the "Activity results" "block"
And I should see "Group 3" in the "Activity results" "block" And I should see "Group 3" in the "Activity results" "block"
@ -179,9 +166,7 @@ Feature: The activity results block displays student in visible groups low score
| config_nameformat | Display only ID numbers | | config_nameformat | Display only ID numbers |
| config_usegroups | Yes | | config_usegroups | Yes |
And I press "Save changes" And I press "Save changes"
And I log out Then I am on the "Course 1" course page logged in as student1
Then I log in as "student1"
And I am on "Course 1" course homepage
And I should see "Group" in the "Activity results" "block" And I should see "Group" in the "Activity results" "block"
And I should see "85.00%" in the "Activity results" "block" And I should see "85.00%" in the "Activity results" "block"
And I should see "75.00%" in the "Activity results" "block" And I should see "75.00%" in the "Activity results" "block"
@ -196,9 +181,7 @@ Feature: The activity results block displays student in visible groups low score
| config_nameformat | Anonymous results | | config_nameformat | Anonymous results |
| config_usegroups | Yes | | config_usegroups | Yes |
And I press "Save changes" And I press "Save changes"
And I log out Then I am on the "Course 1" course page logged in as student1
Then I log in as "student1"
And I am on "Course 1" course homepage
And I should see "Group" in the "Activity results" "block" And I should see "Group" in the "Activity results" "block"
And I should see "85.00%" in the "Activity results" "block" And I should see "85.00%" in the "Activity results" "block"
And I should see "75.00%" in the "Activity results" "block" And I should see "75.00%" in the "Activity results" "block"

View file

@ -22,7 +22,6 @@ Feature: Allow to mark course as completed without cron for activity completion
| course | CC1 | | course | CC1 |
| name | Test assignment name | | name | Test assignment name |
| idnumber | assign1 | | idnumber | assign1 |
| description | Test assignment description |
And the following "blocks" exist: And the following "blocks" exist:
| blockname | contextlevel | reference | pagetypepattern | defaultregion | | blockname | contextlevel | reference | pagetypepattern | defaultregion |
| completionstatus | Course | CC1 | course-view-* | side-pre | | completionstatus | Course | CC1 | course-view-* | side-pre |
@ -87,7 +86,6 @@ Feature: Allow to mark course as completed without cron for activity completion
And I click on "Grade" "link" in the "student1@example.com" "table_row" And I click on "Grade" "link" in the "student1@example.com" "table_row"
And I set the field "Grade out of 100" to "40" And I set the field "Grade out of 100" to "40"
And I click on "Save changes" "button" And I click on "Save changes" "button"
And I am on "Completion course" course homepage
And I am on the "Completion course" course page logged in as student1 And I am on the "Completion course" course page logged in as student1
And I should see "Status: In progress" And I should see "Status: In progress"
And I am on the "Test assignment name2" "assign activity" page logged in as teacher1 And I am on the "Test assignment name2" "assign activity" page logged in as teacher1
@ -95,14 +93,12 @@ Feature: Allow to mark course as completed without cron for activity completion
And I click on "Grade" "link" in the "student1@example.com" "table_row" And I click on "Grade" "link" in the "student1@example.com" "table_row"
And I set the field "Grade out of 100" to "40" And I set the field "Grade out of 100" to "40"
And I click on "Save changes" "button" And I click on "Save changes" "button"
And I am on "Completion course" course homepage
When I am on the "Completion course" course page logged in as student1 When I am on the "Completion course" course page logged in as student1
Then I should see "Status: Complete" Then I should see "Status: Complete"
@javascript @javascript
Scenario: Course completion should not be updated when teacher grades assignment on course grader report page Scenario: Course completion should not be updated when teacher grades assignment on course grader report page
Given I am on the "Completion course" course page logged in as teacher1 Given I am on the "Completion course" "grades > Grader report > View" page logged in as "teacher1"
And I navigate to "View > Grader report" in the course gradebook
And I turn editing mode on And I turn editing mode on
And I give the grade "57" to the user "Student First" for the grade item "Test assignment name" And I give the grade "57" to the user "Student First" for the grade item "Test assignment name"
And I press "Save changes" And I press "Save changes"
@ -116,8 +112,7 @@ Feature: Allow to mark course as completed without cron for activity completion
@javascript @javascript
Scenario: Course completion should not be updated when teacher grades assignment on activity grader report page Scenario: Course completion should not be updated when teacher grades assignment on activity grader report page
Given I am on the "Completion course" course page logged in as teacher1 Given I am on the "Completion course" "grades > Single View > View" page logged in as "teacher1"
And I navigate to "View > Single view" in the course gradebook
And I click on "Users" "link" in the ".page-toggler" "css_element" And I click on "Users" "link" in the ".page-toggler" "css_element"
And I turn editing mode on And I turn editing mode on
And I click on "Student First" in the "user" search widget And I click on "Student First" in the "user" search widget

View file

@ -27,26 +27,18 @@ Feature: Students will be marked as completed if they have achieved a passing gr
| completionpassgrade | 1 | | completionpassgrade | 1 |
| completionusegrade | 1 | | completionusegrade | 1 |
| gradepass | 50 | | gradepass | 50 |
And I log in as "teacher1" And I am on the "Course 1" course page logged in as teacher1
And I am on "Course 1" course homepage
And "Student First" user has not completed "Test assignment name" activity And "Student First" user has not completed "Test assignment name" activity
And I log out
Scenario: Passing grade completion Scenario: Passing grade completion
Given I log in as "teacher1" Given I am on the "Course 1" "grades > Grader report > View" page
And I am on "Course 1" course homepage
And I navigate to "View > Grader report" in the course gradebook
And I turn editing mode on And I turn editing mode on
And I give the grade "21" to the user "Student First" for the grade item "Test assignment name" And I give the grade "21" to the user "Student First" for the grade item "Test assignment name"
And I give the grade "50" to the user "Student Second" for the grade item "Test assignment name" And I give the grade "50" to the user "Student Second" for the grade item "Test assignment name"
And I press "Save changes" And I press "Save changes"
And I log out When I am on the "Course 1" course page logged in as student1
When I log in as "student1" Then the "Receive a grade" completion condition of "Test assignment name" is displayed as "done"
And I am on "Course 1" course homepage
And the "Receive a grade" completion condition of "Test assignment name" is displayed as "done"
And the "Receive a passing grade" completion condition of "Test assignment name" is displayed as "failed" And the "Receive a passing grade" completion condition of "Test assignment name" is displayed as "failed"
And I log out And I am on the "Course 1" course page logged in as student2
And I log in as "student2"
And I am on "Course 1" course homepage
And the "Receive a grade" completion condition of "Test assignment name" is displayed as "done" And the "Receive a grade" completion condition of "Test assignment name" is displayed as "done"
And the "Receive a passing grade" completion condition of "Test assignment name" is displayed as "done" And the "Receive a passing grade" completion condition of "Test assignment name" is displayed as "done"

View file

@ -23,7 +23,6 @@ Feature: Students will be marked as completed and pass/fail
| course | C1 | | course | C1 |
| idnumber | a1 | | idnumber | a1 |
| name | Test assignment name | | name | Test assignment name |
| intro | Submit your online text |
| assignsubmission_onlinetext_enabled | 1 | | assignsubmission_onlinetext_enabled | 1 |
| assignsubmission_file_enabled | 0 | | assignsubmission_file_enabled | 0 |
| completion | 2 | | completion | 2 |
@ -31,61 +30,43 @@ Feature: Students will be marked as completed and pass/fail
| completionusegrade | 1 | | completionusegrade | 1 |
| gradepass | 50 | | gradepass | 50 |
| completionpassgrade | 1 | | completionpassgrade | 1 |
And I log in as "teacher1" And I am on the "Course 1" course page logged in as teacher1
And I am on "Course 1" course homepage
And "Student First" user has not completed "Test assignment name" activity And "Student First" user has not completed "Test assignment name" activity
And I log out
And I am on the "Test assignment name" "assign activity" page logged in as student2 And I am on the "Test assignment name" "assign activity" page logged in as student2
And I log out
And I am on the "Test assignment name" "assign activity" page logged in as student1 And I am on the "Test assignment name" "assign activity" page logged in as student1
And I log out
Scenario: Confirm completion (incomplete/pass/fail) are set correctly Scenario: Confirm completion (incomplete/pass/fail) are set correctly
Given I log in as "teacher1" Given the following "grade grades" exist:
And I am on "Course 1" course homepage | gradeitem | user | grade |
And I navigate to "View > Grader report" in the course gradebook | Test assignment name | student1 | 21.00 |
And I turn editing mode on | Test assignment name | student2 | 50.00 |
And I give the grade "21" to the user "Student First" for the grade item "Test assignment name" | Test assignment name | student3 | 30.00 |
And I give the grade "50" to the user "Student Second" for the grade item "Test assignment name" When I am on "Course 1" course homepage
And I give the grade "30" to the user "Student Third" for the grade item "Test assignment name" Then the "View" completion condition of "Test assignment name" is displayed as "done"
And I press "Save changes"
And I log out
When I log in as "student1"
And I am on "Course 1" course homepage
And the "View" completion condition of "Test assignment name" is displayed as "done"
And the "Receive a grade" completion condition of "Test assignment name" is displayed as "done" And the "Receive a grade" completion condition of "Test assignment name" is displayed as "done"
And the "Receive a passing grade" completion condition of "Test assignment name" is displayed as "failed" And the "Receive a passing grade" completion condition of "Test assignment name" is displayed as "failed"
And I log out And I am on the "Course 1" course page logged in as student2
And I log in as "student2"
And I am on "Course 1" course homepage
And the "View" completion condition of "Test assignment name" is displayed as "done" And the "View" completion condition of "Test assignment name" is displayed as "done"
And the "Receive a grade" completion condition of "Test assignment name" is displayed as "done" And the "Receive a grade" completion condition of "Test assignment name" is displayed as "done"
And the "Receive a passing grade" completion condition of "Test assignment name" is displayed as "done" And the "Receive a passing grade" completion condition of "Test assignment name" is displayed as "done"
And I log out And I am on the "Course 1" course page logged in as student3
And I log in as "student3"
And I am on "Course 1" course homepage
And the "View" completion condition of "Test assignment name" is displayed as "todo" And the "View" completion condition of "Test assignment name" is displayed as "todo"
And the "Receive a grade" completion condition of "Test assignment name" is displayed as "done" And the "Receive a grade" completion condition of "Test assignment name" is displayed as "done"
And the "Receive a passing grade" completion condition of "Test assignment name" is displayed as "failed" And the "Receive a passing grade" completion condition of "Test assignment name" is displayed as "failed"
@javascript @javascript
Scenario: Keep current view completion condition when the teacher does the action 'Unlock completion settings'. Scenario: Keep current view completion condition when the teacher does the action 'Unlock completion settings'.
Given I am on the "Course 1" course page logged in as teacher1 Given the following "grade grades" exist:
And I navigate to "View > Grader report" in the course gradebook | gradeitem | user | grade |
And I turn editing mode on | Test assignment name | student1 | 21.00 |
And I give the grade "21" to the user "Student First" for the grade item "Test assignment name" | Test assignment name | student2 | 50.00 |
And I give the grade "50" to the user "Student Second" for the grade item "Test assignment name" And I am on the "Test assignment name" "assign activity editing" page logged in as teacher1
And I press "Save changes"
And I am on the "Test assignment name" "assign activity" page logged in as teacher1
And I navigate to "Settings" in current page administration
And I expand all fieldsets And I expand all fieldsets
And I press "Unlock completion settings" And I press "Unlock completion settings"
And I expand all fieldsets And I expand all fieldsets
And I should see "Completion options unlocked" And I should see "Completion options unlocked"
And I click on "Save and display" "button" And I click on "Save and display" "button"
And I log out
When I am on the "Course 1" course page logged in as student1 When I am on the "Course 1" course page logged in as student1
Then the "View" completion condition of "Test assignment name" is displayed as "done" Then the "View" completion condition of "Test assignment name" is displayed as "done"
And I log out And I am on the "Course 1" course page logged in as student2
When I am on the "Course 1" course page logged in as student2 And the "View" completion condition of "Test assignment name" is displayed as "done"
Then the "View" completion condition of "Test assignment name" is displayed as "done"

View file

@ -22,7 +22,6 @@ Feature: Students will be shown relevant completion state based on grade item vi
| activity | assign | | activity | assign |
| course | C1 | | course | C1 |
| name | Test assignment name | | name | Test assignment name |
| intro | Submit your online text |
| assignsubmission_onlinetext_enabled | 1 | | assignsubmission_onlinetext_enabled | 1 |
| assignsubmission_file_enabled | 0 | | assignsubmission_file_enabled | 0 |
| completion | 2 | | completion | 2 |
@ -31,34 +30,27 @@ Feature: Students will be shown relevant completion state based on grade item vi
| gradepass | 50 | | gradepass | 50 |
And I am on the "Course 1" course page logged in as teacher1 And I am on the "Course 1" course page logged in as teacher1
And "Student First" user has not completed "Test assignment name" activity And "Student First" user has not completed "Test assignment name" activity
And I log out
And I am on the "Course 1" course page logged in as student1 And I am on the "Course 1" course page logged in as student1
And the "Receive a grade" completion condition of "Test assignment name" is displayed as "todo" And the "Receive a grade" completion condition of "Test assignment name" is displayed as "todo"
And the "Receive a passing grade" completion condition of "Test assignment name" is displayed as "todo" And the "Receive a passing grade" completion condition of "Test assignment name" is displayed as "todo"
And I log out
Scenario: Passing grade and receive a grade completions for visible grade item (passgrade completion enabled) Scenario: Passing grade and receive a grade completions for visible grade item (passgrade completion enabled)
Given I am on the "Course 1" course page logged in as teacher1 Given the following "grade grades" exist:
And I navigate to "View > Grader report" in the course gradebook | gradeitem | user | grade |
And I turn editing mode on | Test assignment name | student1 | 21.00 |
And I give the grade "21" to the user "Student First" for the grade item "Test assignment name" | Test assignment name | student2 | 50.00 |
And I give the grade "50" to the user "Student Second" for the grade item "Test assignment name" And I am on the "Course 1" course page logged in as teacher1
And I press "Save changes"
And I am on "Course 1" course homepage
And "Student First" user has completed "Test assignment name" activity And "Student First" user has completed "Test assignment name" activity
And "Student Second" user has completed "Test assignment name" activity And "Student Second" user has completed "Test assignment name" activity
And I log out
When I am on the "Course 1" course page logged in as student1 When I am on the "Course 1" course page logged in as student1
And the "Receive a grade" completion condition of "Test assignment name" is displayed as "done" And the "Receive a grade" completion condition of "Test assignment name" is displayed as "done"
And the "Receive a passing grade" completion condition of "Test assignment name" is displayed as "failed" And the "Receive a passing grade" completion condition of "Test assignment name" is displayed as "failed"
And I log out
And I am on the "Course 1" course page logged in as student2 And I am on the "Course 1" course page logged in as student2
Then the "Receive a grade" completion condition of "Test assignment name" is displayed as "done" Then the "Receive a grade" completion condition of "Test assignment name" is displayed as "done"
And the "Receive a passing grade" completion condition of "Test assignment name" is displayed as "done" And the "Receive a passing grade" completion condition of "Test assignment name" is displayed as "done"
Scenario: Passing grade and receive a grade completions for hidden grade item (passgrade completion enabled) Scenario: Passing grade and receive a grade completions for hidden grade item (passgrade completion enabled)
Given I am on the "Course 1" course page logged in as teacher1 Given I am on the "Course 1" "grades > gradebook setup" page logged in as "teacher1"
And I navigate to "Setup > Gradebook setup" in the course gradebook
And I hide the grade item "Test assignment name" And I hide the grade item "Test assignment name"
And I navigate to "View > Grader report" in the course gradebook And I navigate to "View > Grader report" in the course gradebook
And I turn editing mode on And I turn editing mode on
@ -68,28 +60,22 @@ Feature: Students will be shown relevant completion state based on grade item vi
And I am on "Course 1" course homepage And I am on "Course 1" course homepage
And "Student First" user has not completed "Test assignment name" activity And "Student First" user has not completed "Test assignment name" activity
And "Student Second" user has completed "Test assignment name" activity And "Student Second" user has completed "Test assignment name" activity
And I log out
And I am on the "Course 1" course page logged in as student1 And I am on the "Course 1" course page logged in as student1
And the "Receive a grade" completion condition of "Test assignment name" is displayed as "done" And the "Receive a grade" completion condition of "Test assignment name" is displayed as "done"
And the "Receive a passing grade" completion condition of "Test assignment name" is displayed as "todo" And the "Receive a passing grade" completion condition of "Test assignment name" is displayed as "todo"
And I log out
And I am on the "Course 1" course page logged in as student2 And I am on the "Course 1" course page logged in as student2
And the "Receive a grade" completion condition of "Test assignment name" is displayed as "done" And the "Receive a grade" completion condition of "Test assignment name" is displayed as "done"
And the "Receive a passing grade" completion condition of "Test assignment name" is displayed as "done" And the "Receive a passing grade" completion condition of "Test assignment name" is displayed as "done"
Scenario: Receive a grade completion for visible grade item (passgrade completion disabled) Scenario: Receive a grade completion for visible grade item (passgrade completion disabled)
Given I am on the "Test assignment name" Activity page logged in as teacher1 Given I am on the "Test assignment name" "assign activity editing" page logged in as teacher1
When I navigate to "Settings" in current page administration
And I set the following fields to these values: And I set the following fields to these values:
| completionpassgrade | 0 | | completionpassgrade | 0 |
And I press "Save and display" And I press "Save and display"
And I log out
And I am on the "Course 1" course page logged in as student1 And I am on the "Course 1" course page logged in as student1
And the "Receive a grade" completion condition of "Test assignment name" is displayed as "todo" And the "Receive a grade" completion condition of "Test assignment name" is displayed as "todo"
And I should not see "Receive a passing grade" And I should not see "Receive a passing grade"
And I log out And I am on the "Course 1" "grades > Grader report > View" page logged in as "teacher1"
And I am on the "Course 1" course page logged in as teacher1
And I navigate to "View > Grader report" in the course gradebook
And I turn editing mode on And I turn editing mode on
And I give the grade "21" to the user "Student First" for the grade item "Test assignment name" And I give the grade "21" to the user "Student First" for the grade item "Test assignment name"
And I give the grade "50" to the user "Student Second" for the grade item "Test assignment name" And I give the grade "50" to the user "Student Second" for the grade item "Test assignment name"
@ -97,28 +83,22 @@ Feature: Students will be shown relevant completion state based on grade item vi
And I am on "Course 1" course homepage And I am on "Course 1" course homepage
And "Student First" user has completed "Test assignment name" activity And "Student First" user has completed "Test assignment name" activity
And "Student Second" user has completed "Test assignment name" activity And "Student Second" user has completed "Test assignment name" activity
And I log out
When I am on the "Course 1" course page logged in as student1 When I am on the "Course 1" course page logged in as student1
# Once MDL-75582 is fixed "failed" should be changed to "done" # Once MDL-75582 is fixed "failed" should be changed to "done"
And the "Receive a grade" completion condition of "Test assignment name" is displayed as "failed" And the "Receive a grade" completion condition of "Test assignment name" is displayed as "failed"
And I should not see "Receive a passing grade" And I should not see "Receive a passing grade"
And I log out
And I am on the "Course 1" course page logged in as student2 And I am on the "Course 1" course page logged in as student2
Then the "Receive a grade" completion condition of "Test assignment name" is displayed as "done" Then the "Receive a grade" completion condition of "Test assignment name" is displayed as "done"
Scenario: Receive a grade completion for hidden grade item (passgrade completion disabled) Scenario: Receive a grade completion for hidden grade item (passgrade completion disabled)
Given I am on the "Test assignment name" Activity page logged in as teacher1 Given I am on the "Test assignment name" "assign activity editing" page logged in as teacher1
When I navigate to "Settings" in current page administration
And I set the following fields to these values: And I set the following fields to these values:
| completionpassgrade | 0 | | completionpassgrade | 0 |
And I press "Save and display" And I press "Save and display"
And I log out
And I am on the "Course 1" course page logged in as student1 And I am on the "Course 1" course page logged in as student1
And the "Receive a grade" completion condition of "Test assignment name" is displayed as "todo" And the "Receive a grade" completion condition of "Test assignment name" is displayed as "todo"
And I should not see "Receive a passing grade" And I should not see "Receive a passing grade"
And I log out And I am on the "Course 1" "grades > gradebook setup" page logged in as "teacher1"
And I am on the "Course 1" course page logged in as teacher1
And I navigate to "Setup > Gradebook setup" in the course gradebook
And I hide the grade item "Test assignment name" And I hide the grade item "Test assignment name"
And I navigate to "View > Grader report" in the course gradebook And I navigate to "View > Grader report" in the course gradebook
And I turn editing mode on And I turn editing mode on
@ -128,10 +108,8 @@ Feature: Students will be shown relevant completion state based on grade item vi
And I am on "Course 1" course homepage And I am on "Course 1" course homepage
And "Student First" user has completed "Test assignment name" activity And "Student First" user has completed "Test assignment name" activity
And "Student Second" user has completed "Test assignment name" activity And "Student Second" user has completed "Test assignment name" activity
And I log out
When I am on the "Course 1" course page logged in as student1 When I am on the "Course 1" course page logged in as student1
Then the "Receive a grade" completion condition of "Test assignment name" is displayed as "done" Then the "Receive a grade" completion condition of "Test assignment name" is displayed as "done"
And I should not see "Receive a passing grade" And I should not see "Receive a passing grade"
And I log out
And I am on the "Course 1" course page logged in as student2 And I am on the "Course 1" course page logged in as student2
And the "Receive a grade" completion condition of "Test assignment name" is displayed as "done" And the "Receive a grade" completion condition of "Test assignment name" is displayed as "done"

View file

@ -20,13 +20,10 @@ Feature: I need to export grades as text
| activity | course | idnumber | name | intro | assignsubmission_onlinetext_enabled | | activity | course | idnumber | name | intro | assignsubmission_onlinetext_enabled |
| assign | C1 | a1 | Test assignment name | Submit your online text | 1 | | assign | C1 | a1 | Test assignment name | Submit your online text | 1 |
| assign | C1 | a2 | Test assignment name 2 | Submit your online text | 1 | | assign | C1 | a2 | Test assignment name 2 | Submit your online text | 1 |
And I log in as "teacher1" And the following "grade grades" exist:
And I am on "Course 1" course homepage | gradeitem | user | grade |
And I navigate to "View > Grader report" in the course gradebook | Test assignment name | student1 | 80.00 |
And I turn editing mode on And I am on the "Course 1" course page logged in as teacher1
And I change window size to "large"
And I give the grade "80.00" to the user "Student 1" for the grade item "Test assignment name"
And I press "Save changes"
@javascript @javascript
Scenario: Export grades as text Scenario: Export grades as text

View file

@ -19,15 +19,13 @@ Feature: I need to export grades as xml
| student1 | C1 | student | | student1 | C1 | student |
| student2 | C1 | student | | student2 | C1 | student |
And the following "activities" exist: And the following "activities" exist:
| activity | course | idnumber | name | intro | | activity | course | idnumber | name |
| assign | C1 | a1 | Test assignment name | Submit something! | | assign | C1 | a1 | Test assignment name |
And I log in as "teacher1" And the following "grade grades" exist:
And I am on "Course 1" course homepage | gradeitem | user | grade |
And I navigate to "View > Grader report" in the course gradebook | Test assignment name | student1 | 80.00 |
And I turn editing mode on | Test assignment name | student2 | 42.00 |
And I give the grade "80.00" to the user "Student 1" for the grade item "Test assignment name" And I am on the "Course 1" course page logged in as teacher1
And I give the grade "42.00" to the user "Student 2" for the grade item "Test assignment name"
And I press "Save changes"
@javascript @javascript
Scenario: Export grades as XML Scenario: Export grades as XML

View file

@ -75,8 +75,7 @@ Feature: We can change what we are viewing on the grader report
And the following "role capability" exists: And the following "role capability" exists:
| role | editingteacher | | role | editingteacher |
| moodle/grade:viewhidden | prevent | | moodle/grade:viewhidden | prevent |
And I am on the "C1" "course" page logged in as "teacher1" And I am on the "Course 1" "grades > Grader report > View" page logged in as "teacher1"
And I navigate to "View > Grader report" in the course gradebook
Then I should see "Test assignment name 1" in the "user-grades" "table" Then I should see "Test assignment name 1" in the "user-grades" "table"
And I should see "Test assignment name 2" in the "user-grades" "table" And I should see "Test assignment name 2" in the "user-grades" "table"
And I should see "Manual grade" And I should see "Manual grade"

View file

@ -25,14 +25,12 @@ Feature: A teacher checks the grade history report in a course
| student1 | C1 | student | | student1 | C1 | student |
| student2 | C1 | student | | student2 | C1 | student |
And the following "activities" exist: And the following "activities" exist:
| activity | course | section | name | intro | | activity | course | name |
| assign | C1 | 1 | The greatest assignment ever | Write a behat test for Moodle - it's amazing | | assign | C1 | The greatest assignment ever |
| assign | C1 | 1 | Rewarding assignment | After writing your behat test go grab a beer! | | assign | C1 | Rewarding assignment |
Given the following config values are set as admin: Given the following config values are set as admin:
| showuseridentity | email,profile_field_food | | showuseridentity | email,profile_field_food |
And I log in as "teacher1" And I am on the "Course 1" "grades > Grader report > View" page logged in as "teacher1"
And I am on "Course 1" course homepage with editing mode on
And I navigate to "View > Grader report" in the course gradebook
And I should see "apple" in the "student1" "table_row" And I should see "apple" in the "student1" "table_row"
And I should see "orange" in the "student2" "table_row" And I should see "orange" in the "student2" "table_row"
And I turn editing mode on And I turn editing mode on
@ -41,10 +39,7 @@ Feature: A teacher checks the grade history report in a course
And I give the grade "50.00" to the user "Student 2" for the grade item "The greatest assignment ever" And I give the grade "50.00" to the user "Student 2" for the grade item "The greatest assignment ever"
And I give the grade "60.00" to the user "Student 2" for the grade item "Rewarding assignment" And I give the grade "60.00" to the user "Student 2" for the grade item "Rewarding assignment"
And I press "Save changes" And I press "Save changes"
And I log out And I am on the "Course 1" "grades > Grader report > View" page logged in as "teacher2"
And I log in as "teacher2"
And I am on "Course 1" course homepage
And I navigate to "View > Grader report" in the course gradebook
And I should see "apple" in the "student1" "table_row" And I should see "apple" in the "student1" "table_row"
And I should see "orange" in the "student2" "table_row" And I should see "orange" in the "student2" "table_row"
And I turn editing mode on And I turn editing mode on

View file

@ -16,11 +16,9 @@ Feature: Given we have opted to search for a grade item, Lets find and search th
| activity | course | idnumber | name | | activity | course | idnumber | name |
| assign | C1 | a1 | Test assignment one | | assign | C1 | a1 | Test assignment one |
| assign | C1 | a2 | Test assignment two | | assign | C1 | a2 | Test assignment two |
And I am on the "Course 1" "Course" page logged in as "teacher1"
And I change window size to "large"
Scenario: A teacher can search for and find a grade item to view Scenario: A teacher can search for and find a grade item to view
Given I navigate to "View > Single view" in the course gradebook Given I am on the "Course 1" "grades > Single view > View" page logged in as "teacher1"
And I click on "Grade items" "link" in the ".page-toggler" "css_element" And I click on "Grade items" "link" in the ".page-toggler" "css_element"
When I click on ".search-widget[data-searchtype='grade']" "css_element" When I click on ".search-widget[data-searchtype='grade']" "css_element"
Then I confirm "Test assignment one" in "grade" search within the gradebook widget exists Then I confirm "Test assignment one" in "grade" search within the gradebook widget exists

View file

@ -15,11 +15,9 @@ Feature: Given we land on the index page, select what type of report we wish to
And the following "activities" exist: And the following "activities" exist:
| activity | course | idnumber | name | | activity | course | idnumber | name |
| assign | C1 | a1 | Test assignment one | | assign | C1 | a1 | Test assignment one |
And I am on the "Course 1" "Course" page logged in as "teacher1"
And I change window size to "large"
Scenario: I switch between the two report types within singleview Scenario: I switch between the two report types within singleview
Given I navigate to "View > Single view" in the course gradebook Given I am on the "Course 1" "grades > Single view > View" page logged in as "teacher1"
And I click on "Grade items" "link" in the ".page-toggler" "css_element" And I click on "Grade items" "link" in the ".page-toggler" "css_element"
And ".search-widget[data-searchtype='user']" "css_element" should not exist And ".search-widget[data-searchtype='user']" "css_element" should not exist
And ".search-widget[data-searchtype='grade']" "css_element" should exist And ".search-widget[data-searchtype='grade']" "css_element" should exist

View file

@ -55,9 +55,7 @@ Feature: We can use Single view
And the following config values are set as admin: And the following config values are set as admin:
| fullnamedisplay | firstnamephonetic,lastnamephonetic | | fullnamedisplay | firstnamephonetic,lastnamephonetic |
| alternativefullnameformat | middlename, alternatename, firstname, lastname | | alternativefullnameformat | middlename, alternatename, firstname, lastname |
And I log in as "teacher1" And I am on the "Course 1" "grades > Grader report > View" page logged in as "teacher1"
And I am on "Course 1" course homepage
Given I navigate to "View > Grader report" in the course gradebook
Scenario: I can update grades, add feedback and exclude grades. Scenario: I can update grades, add feedback and exclude grades.
Given I navigate to "View > Single view" in the course gradebook Given I navigate to "View > Single view" in the course gradebook
@ -97,10 +95,7 @@ Feature: We can use Single view
And the following should exist in the "generaltable" table: And the following should exist in the "generaltable" table:
| First name (Alternate name) Last name | Grade | | First name (Alternate name) Last name | Grade |
| Ann, Jill, Grainne, Beauchamp | Very good | | Ann, Jill, Grainne, Beauchamp | Very good |
And I log out And I am on the "Course 1" "grades > Single view > View" page logged in as "teacher2"
And I log in as "teacher2"
And I am on "Course 1" course homepage
Given I navigate to "View > Single view" in the course gradebook
And I click on "Users" "link" in the ".page-toggler" "css_element" And I click on "Users" "link" in the ".page-toggler" "css_element"
And I click on "Student" in the "user" search widget And I click on "Student" in the "user" search widget
And I turn editing mode on And I turn editing mode on
@ -173,27 +168,19 @@ Feature: We can use Single view
And I should see "Select a user above to view all their grades" in the "region-main" "region" And I should see "Select a user above to view all their grades" in the "region-main" "region"
And I click on "Grade items" "link" And I click on "Grade items" "link"
And I should see "Select a grade item above" in the "region-main" "region" And I should see "Select a grade item above" in the "region-main" "region"
And I am on "Course 1" course homepage When I am on the "Course 1" "grades > Single view > View" page
When I navigate to "View > Single view" in the course gradebook
Then I should see "Select a grade item above" in the "region-main" "region" Then I should see "Select a grade item above" in the "region-main" "region"
And I log out And I am on the "Course 1" "grades > Single view > View" page logged in as "teacher3"
And I log in as "teacher3"
And I am on "Course 1" course homepage
And I navigate to "View > Single view" in the course gradebook
And I should see "Select a user above to view all their grades" in the "region-main" "region" And I should see "Select a user above to view all their grades" in the "region-main" "region"
Scenario: Teacher sees his last viewed user report when navigating back to the gradebook singleview report. Scenario: Teacher sees his last viewed user report when navigating back to the gradebook singleview report.
Given I navigate to "View > Single view" in the course gradebook Given I navigate to "View > Single view" in the course gradebook
And I click on "Gronya,Beecham" in the "user" search widget And I click on "Gronya,Beecham" in the "user" search widget
And I should see "Gronya,Beecham" in the "region-main" "region" And I should see "Gronya,Beecham" in the "region-main" "region"
And I am on "Course 1" course homepage When I am on the "Course 1" "grades > Single view > View" page
When I navigate to "View > Single view" in the course gradebook
Then I should not see "Select a user above to view all their grades" in the "region-main" "region" Then I should not see "Select a user above to view all their grades" in the "region-main" "region"
And I should see "Gronya,Beecham" in the "region-main" "region" And I should see "Gronya,Beecham" in the "region-main" "region"
And I log out And I am on the "Course 1" "grades > Single view > View" page logged in as "teacher3"
And I log in as "teacher3"
And I am on "Course 1" course homepage
And I navigate to "View > Single view" in the course gradebook
And I should see "Select a user above to view all their grades" in the "region-main" "region" And I should see "Select a user above to view all their grades" in the "region-main" "region"
Scenario: Teacher sees his last viewed grade item report when navigating back to the gradebook singleview report. Scenario: Teacher sees his last viewed grade item report when navigating back to the gradebook singleview report.
@ -201,14 +188,10 @@ Feature: We can use Single view
And I click on "Grade items" "link" And I click on "Grade items" "link"
And I click on "Test assignment one" in the "grade" search widget And I click on "Test assignment one" in the "grade" search widget
And I should see "Test assignment one" in the "region-main" "region" And I should see "Test assignment one" in the "region-main" "region"
And I am on "Course 1" course homepage When I am on the "Course 1" "grades > Single view > View" page
When I navigate to "View > Single view" in the course gradebook
Then I should not see "Select a grade item above" in the "region-main" "region" Then I should not see "Select a grade item above" in the "region-main" "region"
And I should see "Test assignment one" in the "region-main" "region" And I should see "Test assignment one" in the "region-main" "region"
And I log out And I am on the "Course 1" "grades > Single view > View" page logged in as "teacher3"
And I log in as "teacher3"
And I am on "Course 1" course homepage
And I navigate to "View > Single view" in the course gradebook
And I should see "Select a user above to view all their grades" in the "region-main" "region" And I should see "Select a user above to view all their grades" in the "region-main" "region"
Scenario: Teacher sees his last viewed user report if the user is a part of the the current group. Scenario: Teacher sees his last viewed user report if the user is a part of the the current group.
@ -237,8 +220,7 @@ Feature: We can use Single view
And the following "group members" exist: And the following "group members" exist:
| user | group | | user | group |
| student2 | G1 | | student2 | G1 |
And I am on "Course 1" course homepage And I am on the "Course 1" "course editing" page
And I navigate to "Settings" in current page administration
And I expand all fieldsets And I expand all fieldsets
And I set the field "Group mode" to "Visible groups" And I set the field "Group mode" to "Visible groups"
And I press "Save and display" And I press "Save and display"
@ -256,8 +238,7 @@ Feature: We can use Single view
And I navigate to course participants And I navigate to course participants
And I click on "Unenrol" "icon" in the "Gronya,Beecham" "table_row" And I click on "Unenrol" "icon" in the "Gronya,Beecham" "table_row"
And I click on "Unenrol" "button" in the "Unenrol" "dialogue" And I click on "Unenrol" "button" in the "Unenrol" "dialogue"
And I am on "Course 1" course homepage When I am on the "Course 1" "grades > Single view > View" page
When I navigate to "View > Single view" in the course gradebook
Then I should see "Select a user above to view all their grades" in the "region-main" "region" Then I should see "Select a user above to view all their grades" in the "region-main" "region"
And I should not see "Gronya,Beecham" in the "region-main" "region" And I should not see "Gronya,Beecham" in the "region-main" "region"

View file

@ -16,11 +16,9 @@ Feature: Within the singleview report, a teacher can search for users.
| student1 | C1 | student | | student1 | C1 | student |
| student2 | C1 | student | | student2 | C1 | student |
| student32 | C1 | student | | student32 | C1 | student |
And I am on the "Course 1" "Course" page logged in as "teacher1"
And I change window size to "large"
Scenario: A teacher can search for and find a user to view Scenario: A teacher can search for and find a user to view
Given I navigate to "View > Single view" in the course gradebook Given I am on the "Course 1" "grades > Single view > View" page logged in as "teacher1"
When I click on "Users" "link" in the ".page-toggler" "css_element" When I click on "Users" "link" in the ".page-toggler" "css_element"
And I wait until the page is ready And I wait until the page is ready
And I click on ".search-widget[data-searchtype='user']" "css_element" And I click on ".search-widget[data-searchtype='user']" "css_element"

View file

@ -25,14 +25,11 @@ Feature: Group searching functionality within the user report.
| student1 | dg | | student1 | dg |
And the "multilang" filter is "on" And the "multilang" filter is "on"
And the "multilang" filter applies to "content and headings" And the "multilang" filter applies to "content and headings"
And I am on the "C1" "Course" page logged in as "teacher1" And I am on the "Course 1" "grades > User report > View" page logged in as "teacher1"
And I change window size to "large"
Scenario: A teacher can see the 'group' search widget only when group mode is enabled in the course Scenario: A teacher can see the 'group' search widget only when group mode is enabled in the course
Given I navigate to "View > User report" in the course gradebook Given ".search-widget[data-searchtype='group']" "css_element" should exist
And ".search-widget[data-searchtype='group']" "css_element" should exist And I am on the "Course 1" "course editing" page
And I am on "Course 1" course homepage
And I navigate to "Settings" in current page administration
And I set the following fields to these values: And I set the following fields to these values:
| id_groupmode | No groups | | id_groupmode | No groups |
And I press "Save and display" And I press "Save and display"
@ -40,8 +37,7 @@ Feature: Group searching functionality within the user report.
Then ".search-widget[data-searchtype='group']" "css_element" should not exist Then ".search-widget[data-searchtype='group']" "css_element" should not exist
Scenario: A teacher can search for and find a group to find a user in Scenario: A teacher can search for and find a group to find a user in
Given I navigate to "View > User report" in the course gradebook Given I click on ".search-widget[data-searchtype='group']" "css_element"
And I click on ".search-widget[data-searchtype='group']" "css_element"
And I confirm "Tutor group" in "group" search within the gradebook widget exists And I confirm "Tutor group" in "group" search within the gradebook widget exists
And I confirm "Marker group" in "group" search within the gradebook widget exists And I confirm "Marker group" in "group" search within the gradebook widget exists
When I set the field "Search groups" to "tutor" When I set the field "Search groups" to "tutor"
@ -50,9 +46,8 @@ Feature: Group searching functionality within the user report.
And I confirm "Marker group" in "group" search within the gradebook widget does not exist And I confirm "Marker group" in "group" search within the gradebook widget does not exist
Scenario: A teacher can only see the group members in the 'user' search widget after selecting a group option Scenario: A teacher can only see the group members in the 'user' search widget after selecting a group option
Given I navigate to "View > User report" in the course gradebook
# Confirm that all users are initially displayed in the 'user' search widget. # Confirm that all users are initially displayed in the 'user' search widget.
And I confirm "Student 1" in "user" search within the gradebook widget exists Given I confirm "Student 1" in "user" search within the gradebook widget exists
And I confirm "Student 2" in "user" search within the gradebook widget exists And I confirm "Student 2" in "user" search within the gradebook widget exists
# Select a particular group from the 'group' search widget. # Select a particular group from the 'group' search widget.
When I click on "Default group" in the "group" search widget When I click on "Default group" in the "group" search widget

View file

@ -23,13 +23,11 @@ Feature: User can toggle the visibility of the grade categories within the user
| activity | course | idnumber | name | intro | grade | | activity | course | idnumber | name | intro | grade |
| assign | C1 | a1 | Test assignment one | Submit something! | 300 | | assign | C1 | a1 | Test assignment one | Submit something! | 300 |
And the following "activities" exist: And the following "activities" exist:
| activity | course | idnumber | name | intro | gradecategory | grade | gradepass | | activity | course | idnumber | name | gradecategory | grade | gradepass |
| assign | C1 | a2 | Test assignment two | Submit something! | Category 1 | 100 | 50 | | assign | C1 | a2 | Test assignment two | Category 1 | 100 | 50 |
And I log in as "teacher1"
And I am on "Course" course homepage
Scenario: A teacher can search for and find a user to view Scenario: A teacher can search for and find a user to view
Given I navigate to "View > User report" in the course gradebook Given I am on the "Course" "grades > User report > View" page logged in as "teacher1"
And I click on "Student 1" in the "user" search widget And I click on "Student 1" in the "user" search widget
And I should see "Test assignment one" in the "user-grade" "table" And 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 "Test assignment two" in the "user-grade" "table"

View file

@ -21,14 +21,12 @@ Feature: Teacher can navigate to the previous or next user report.
| student2 | C1 | student | | student2 | C1 | student |
| student3 | C1 | student | | student3 | C1 | student |
And the following "activities" exist: And the following "activities" exist:
| activity | course | idnumber | name | intro | grade | | activity | course | idnumber | name | grade |
| assign | C1 | a1 | Test assignment one | Submit something! | 300 | | assign | C1 | a1 | Test assignment one | 300 |
And I log in as "teacher1" And I am on the "Course" "grades > User report > View" page logged in as "teacher1"
And I am on "Course" course homepage
Scenario: A teacher can navigate to the next user report Scenario: A teacher can navigate to the next user report
Given I navigate to "View > User report" in the course gradebook Given I click on "Student 1" in the "user" search widget
And I click on "Student 1" in the "user" search widget
And I should see "Student 1" in the ".user-heading" "css_element" And I should see "Student 1" in the ".user-heading" "css_element"
And ".previous" "css_element" should not exist in the ".user-navigation" "css_element" And ".previous" "css_element" should not exist in the ".user-navigation" "css_element"
And ".next" "css_element" should exist in the ".user-navigation" "css_element" And ".next" "css_element" should exist in the ".user-navigation" "css_element"
@ -46,8 +44,7 @@ Feature: Teacher can navigate to the previous or next user report.
And ".next" "css_element" should not exist in the ".user-navigation" "css_element" And ".next" "css_element" should not exist in the ".user-navigation" "css_element"
Scenario: A teacher can navigate to the previous user report Scenario: A teacher can navigate to the previous user report
Given I navigate to "View > User report" in the course gradebook Given I click on "Student 3" in the "user" search widget
And I click on "Student 3" in the "user" search widget
And I should see "Student 3" in the ".user-heading" "css_element" And I should see "Student 3" in the ".user-heading" "css_element"
And ".previous" "css_element" should exist in the ".user-navigation" "css_element" And ".previous" "css_element" should exist in the ".user-navigation" "css_element"
And I should see "Student 2" in the ".previous" "css_element" And I should see "Student 2" in the ".previous" "css_element"

View file

@ -32,8 +32,7 @@ Feature: View the user report as the student will see it
| assign | C1 | a6 | Test assignment six | Submit something! | 100 | | assign | C1 | a6 | Test assignment six | Submit something! | 100 |
And the "multilang" filter is "on" And the "multilang" filter is "on"
And the "multilang" filter applies to "content and headings" And the "multilang" filter applies to "content and headings"
When I am on the "C1" "Course" page logged in as "teacher1" When I am on the "C1" "grades > gradebook setup" page logged in as "teacher1"
And I navigate to "Setup > Gradebook setup" in the course gradebook
And I hide the grade item "Test assignment six" And I hide the grade item "Test assignment six"
And I hide the grade item "Sub category 2" And I hide the grade item "Sub category 2"
And I navigate to "View > Grader report" in the course gradebook And I navigate to "View > Grader report" in the course gradebook

View file

@ -16,11 +16,9 @@ Feature: Within the User report, a teacher can search for users.
| student1 | C1 | student | | student1 | C1 | student |
| student2 | C1 | student | | student2 | C1 | student |
| student32 | C1 | student | | student32 | C1 | student |
And I am on the "Course 1" "Course" page logged in as "teacher1"
And I change window size to "large"
Scenario: A teacher can search for and find a user to view Scenario: A teacher can search for and find a user to view
Given I navigate to "View > User report" in the course gradebook Given I am on the "Course 1" "grades > User report > View" page logged in as "teacher1"
When I click on ".search-widget[data-searchtype='user']" "css_element" When I click on ".search-widget[data-searchtype='user']" "css_element"
Then I confirm "Student 1" in "user" search within the gradebook widget exists Then I confirm "Student 1" in "user" search within the gradebook widget exists
And I confirm "Student 2" in "user" search within the gradebook widget exists And I confirm "Student 2" in "user" search within the gradebook widget exists

View file

@ -9,9 +9,7 @@ Feature: We can use the user report
| Course 1 | C1 | 0 | 1 | | Course 1 | C1 | 0 | 1 |
Scenario: Verify we can view a user grade report with no users enrolled. Scenario: Verify we can view a user grade report with no users enrolled.
Given I log in as "admin" When I am on the "Course 1" "grades > User report > View" page logged in as "admin"
And I am on "Course 1" course homepage
And I navigate to "View > User report" in the course gradebook
And I click on "All users (0)" in the "user" search widget And I click on "All users (0)" in the "user" search widget
Then I should see "There are no students enrolled in this course." Then I should see "There are no students enrolled in this course."
@ -26,20 +24,14 @@ Feature: We can use the user report
| teacher1 | C1 | editingteacher | | teacher1 | C1 | editingteacher |
| teacher2 | C1 | editingteacher | | teacher2 | C1 | editingteacher |
| student1 | C1 | student | | student1 | C1 | student |
And I log in as "teacher1" And I am on the "Course 1" "grades > User report > View" page logged in as "teacher1"
And I am on "Course 1" course homepage
And I navigate to "View > User report" in the course gradebook
And I should see "Select a user above to view their report" in the "region-main" "region" And I should see "Select a user above to view their report" in the "region-main" "region"
And I click on "Student 1" in the "user" search widget And I click on "Student 1" in the "user" search widget
And I should see "Student 1" in the "region-main" "region" And I should see "Student 1" in the "region-main" "region"
And I am on "Course 1" course homepage When I am on the "Course 1" "grades > User report > View" page
When I navigate to "View > User report" in the course gradebook
Then I should not see "Select a user above to view their report" in the "region-main" "region" Then I should not see "Select a user above to view their report" in the "region-main" "region"
And I should see "Student 1" in the "region-main" "region" And I should see "Student 1" in the "region-main" "region"
And I log out And I am on the "Course 1" "grades > User report > View" page logged in as "teacher2"
And I log in as "teacher2"
And I am on "Course 1" course homepage
And I navigate to "View > User report" in the course gradebook
And I should see "Select a user above to view their report" in the "region-main" "region" And I should see "Select a user above to view their report" in the "region-main" "region"
Scenario: Teacher sees his last viewed user report if the user is a part of the the current group. Scenario: Teacher sees his last viewed user report if the user is a part of the the current group.
@ -59,9 +51,7 @@ Feature: We can use the user report
And the following "group members" exist: And the following "group members" exist:
| user | group | | user | group |
| student2 | G1 | | student2 | G1 |
And I log in as "teacher1" And I am on the "Course 1" "grades > User report > View" page logged in as "teacher1"
And I am on "Course 1" course homepage
And I navigate to "View > User report" in the course gradebook
And I click on "Student 2" in the "user" search widget And I click on "Student 2" in the "user" search widget
And I navigate to "View > Grader report" in the course gradebook And I navigate to "View > Grader report" in the course gradebook
And I select "Group 1" from the "group" singleselect And I select "Group 1" from the "group" singleselect
@ -86,9 +76,7 @@ Feature: We can use the user report
And the following "group members" exist: And the following "group members" exist:
| user | group | | user | group |
| student2 | G1 | | student2 | G1 |
And I log in as "teacher1" And I am on the "Course 1" "grades > User report > View" page logged in as "teacher1"
And I am on "Course 1" course homepage
And I navigate to "View > User report" in the course gradebook
And I click on "Student 1" in the "user" search widget And I click on "Student 1" in the "user" search widget
And I navigate to "View > Grader report" in the course gradebook And I navigate to "View > Grader report" in the course gradebook
And I select "Group 1" from the "group" singleselect And I select "Group 1" from the "group" singleselect
@ -107,9 +95,7 @@ Feature: We can use the user report
| teacher1 | C1 | editingteacher | | teacher1 | C1 | editingteacher |
| student1 | C1 | student | | student1 | C1 | student |
| student2 | C1 | student | | student2 | C1 | student |
And I log in as "teacher1" And I am on the "Course 1" "grades > User report > View" page logged in as "teacher1"
And I am on "Course 1" course homepage
And I navigate to "View > User report" in the course gradebook
And I click on "Student 1" in the "user" search widget And I click on "Student 1" in the "user" search widget
And I should see "Student 1" in the "region-main" "region" And I should see "Student 1" in the "region-main" "region"
And I navigate to course participants And I navigate to course participants

View file

@ -35,6 +35,8 @@ class behat_grades extends behat_base {
* | [report] view | Course name | The view page for the specified course and report | * | [report] view | Course name | The view page for the specified course and report |
* | gradebook setup | Course name | The gradebook setup page for the specified course | * | gradebook setup | Course name | The gradebook setup page for the specified course |
* | course grade settings | Course name | The grade settings page | * | course grade settings | Course name | The grade settings page |
* | outcomes | Course name | The grade outcomes page |
* | scales | Course name | The grade scales page |
* *
* @param string $type identifies which type of page this is - for example "Grader > View" * @param string $type identifies which type of page this is - for example "Grader > View"
* @param string $identifier identifies the particular page - for example "Course name" * @param string $identifier identifies the particular page - for example "Course name"
@ -84,6 +86,16 @@ class behat_grades extends behat_base {
"/grade/edit/settings/index.php", "/grade/edit/settings/index.php",
['id' => $this->get_course_id($identifier)] ['id' => $this->get_course_id($identifier)]
); );
case 'outcomes':
return new moodle_url(
"/grade/edit/outcome/course.php",
['id' => $this->get_course_id($identifier)]
);
case 'scales':
return new moodle_url(
"/grade/edit/scale/index.php",
['id' => $this->get_course_id($identifier)]
);
default: default:
throw new \coding_exception( throw new \coding_exception(
"Unknown page type '$type' for page identifier '$identifier'" "Unknown page type '$type' for page identifier '$identifier'"

View file

@ -17,9 +17,7 @@ Feature: Site settings can be used to hide parts of the gradebook UI
And the following "activities" exist: And the following "activities" exist:
| activity | course | idnumber | name | intro | | activity | course | idnumber | name | intro |
| assign | C1 | assign1 | Assignment1 | Assignment 1 intro | | assign | C1 | assign1 | Assignment1 | Assignment 1 intro |
And I log in as "admin" And I am on the "Course 1" "grades > Grader report > View" page logged in as "admin"
And I am on "Course 1" course homepage
And I navigate to "View > Grader report" in the course gradebook
And I turn editing mode on And I turn editing mode on
@javascript @javascript
@ -29,8 +27,7 @@ Feature: Site settings can be used to hide parts of the gradebook UI
Then I navigate to "Grades > General settings" in site administration Then I navigate to "Grades > General settings" in site administration
And I set the field "Show minimum grade" to "0" And I set the field "Show minimum grade" to "0"
And I press "Save changes" And I press "Save changes"
And I am on "Course 1" course homepage And I am on the "Course 1" "grades > Grader report > View" page
And I navigate to "View > Grader report" in the course gradebook
And I click on "Edit assign Assignment1" "link" And I click on "Edit assign Assignment1" "link"
And I should not see "Minimum grade" And I should not see "Minimum grade"
@ -50,6 +47,5 @@ Feature: Site settings can be used to hide parts of the gradebook UI
Then I navigate to "Grades > Grade category settings" in site administration Then I navigate to "Grades > Grade category settings" in site administration
And I set the field "Allow category grades to be manually overridden" to "0" And I set the field "Allow category grades to be manually overridden" to "0"
And I press "Save changes" And I press "Save changes"
And I am on "Course 1" course homepage And I am on the "Course 1" "grades > Grader report > View" page
And I navigate to "View > Grader report" in the course gradebook
And "tr .course input[type='text']" "css_element" should not exist And "tr .course input[type='text']" "css_element" should not exist

View file

@ -39,21 +39,18 @@ Feature: We can use calculated grade totals
And I log in as "admin" And I log in as "admin"
And I set the following administration settings values: 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 | | 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 log out And the following "grade grades" exist:
And I log in as "teacher1" | gradeitem | user | grade |
And I am on "Course 1" course homepage | Test assignment one & | student1 | 60.00 |
And I navigate to "View > Grader report" in the course gradebook | Test assignment two | student1 | 20.00 |
| Test assignment three | student1 | 40.00 |
| Test assignment five | student1 | 10.00 |
| Test assignment six | student1 | 5.00 |
| Test assignment eight | student1 | 10.00 |
| Test assignment nine | student1 | 5.00 |
And I am on the "Course 1" "grades > Grader report > View" page logged in as "teacher1"
And I turn editing mode on And I turn editing mode on
And I change window size to "large" And I change window size to "large"
And I give the grade "60.00" to the user "Student 1" for the grade item "Test assignment one &"
And I give the grade "20.00" to the user "Student 1" for the grade item "Test assignment two"
And I give the grade "40.00" to the user "Student 1" for the grade item "Test assignment three"
And I give the grade "10.00" to the user "Student 1" for the grade item "Test assignment five"
And I give the grade "5.00" to the user "Student 1" for the grade item "Test assignment six"
And I give the grade "10.00" to the user "Student 1" for the grade item "Test assignment eight"
And I give the grade "5.00" to the user "Student 1" for the grade item "Test assignment nine"
And I press "Save changes"
And I change window size to "large"
And I set the following settings for grade item "Test assignment two": And I set the following settings for grade item "Test assignment two":
| Hidden | 1 | | Hidden | 1 |
And I set the following settings for grade item "Test assignment five": And I set the following settings for grade item "Test assignment five":
@ -264,10 +261,7 @@ Feature: We can use calculated grade totals
Then I should see "114.82 (18.27 %)" in the "overview-grade" "table" Then I should see "114.82 (18.27 %)" in the "overview-grade" "table"
And I click on "Course 1" "link" in the "region-main" "region" And I click on "Course 1" "link" in the "region-main" "region"
And "Test outcome item one" row "Grade" column of "user-grade" table should contain "Excellent (100.00 %)" And "Test outcome item one" row "Grade" column of "user-grade" table should contain "Excellent (100.00 %)"
And I log out And I am on the "Course 1" "grades > gradebook setup" page logged in as "teacher1"
And I log in as "teacher1"
And I am on "Course 1" course homepage
And I navigate to "Setup > Gradebook setup" in the course gradebook
And I set the following settings for grade item "Test outcome item one": And I set the following settings for grade item "Test outcome item one":
| Extra credit | 1 | | Extra credit | 1 |
And I log out And I log out
@ -276,10 +270,7 @@ Feature: We can use calculated grade totals
Then I should see "114.00 (18.39 %)" in the "overview-grade" "table" Then I should see "114.00 (18.39 %)" in the "overview-grade" "table"
And I click on "Course 1" "link" in the "region-main" "region" And I click on "Course 1" "link" in the "region-main" "region"
And "Test outcome item one" row "Grade" column of "user-grade" table should contain "Excellent (100.00 %)" And "Test outcome item one" row "Grade" column of "user-grade" table should contain "Excellent (100.00 %)"
And I log out And I am on the "Course 1" "grades > gradebook setup" page logged in as "teacher1"
And I log in as "teacher1"
And I am on "Course 1" course homepage
And I navigate to "Setup > Gradebook setup" in the course gradebook
And I set the following settings for grade item "Course 1": And I set the following settings for grade item "Course 1":
| Aggregation | Natural | | Aggregation | Natural |
| Include outcomes in aggregation | 0 | | Include outcomes in aggregation | 0 |
@ -380,10 +371,7 @@ Feature: We can use calculated grade totals
| Test assignment four | 30.93 % | - | 0150 | 0.00 % | | Test assignment four | 30.93 % | - | 0150 | 0.00 % |
Scenario: Natural aggregation with drop lowest Scenario: Natural aggregation with drop lowest
When I log out When I am on the "Course 1" "grades > Grader report > View" page logged in as "admin"
And I log in as "admin"
And I am on "Course 1" course homepage
And I navigate to "View > Grader report" in the course gradebook
And I turn editing mode on And I turn editing mode on
And I set the following settings for grade item "Sub category 1": And I set the following settings for grade item "Sub category 1":
| Aggregation | Natural | | Aggregation | Natural |

View file

@ -34,8 +34,7 @@ Feature: Changing the aggregation of an item affects its weight and extra credit
And I change window size to "large" And I change window size to "large"
And I set the following administration settings values: 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 | | 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 "Course 1" course homepage And I am on the "Course 1" "grades > Grader report > View" page
And I navigate to "View > Grader report" in the course gradebook
And I turn editing mode on And I turn editing mode on
And I follow "Edit Cat mean" And I follow "Edit Cat mean"
And I set the following fields to these values: And I set the following fields to these values:

View file

@ -18,9 +18,7 @@ Feature: Calculated grade items can be used in the gradebook
| teacher1 | C1 | editingteacher | | teacher1 | C1 | editingteacher |
| student1 | C1 | student | | student1 | C1 | student |
| student2 | C1 | student | | student2 | C1 | student |
And I log in as "admin" And I am on the "Course 1" "grades > gradebook setup" page logged in as "admin"
And I am on "Course 1" course homepage
And I navigate to "Setup > Gradebook setup" in the course gradebook
@javascript @javascript
Scenario: The max grade for a category item, with a calculation using Natural aggregation, can be changed Scenario: The max grade for a category item, with a calculation using Natural aggregation, can be changed

View file

@ -19,9 +19,7 @@ Feature: Gradebook calculations for calculated grade items before the fix 201506
| teacher1 | C1 | editingteacher | | teacher1 | C1 | editingteacher |
| student1 | C1 | student | | student1 | C1 | student |
| student2 | C1 | student | | student2 | C1 | student |
And I log in as "admin" And I am on the "Course 1" "grades > gradebook setup" page logged in as "admin"
And I am on "Course 1" course homepage
And I navigate to "Setup > Gradebook setup" in the course gradebook
@javascript @javascript
Scenario: The max grade for a category item, with a calculation using Natural aggregation, can be changed Scenario: The max grade for a category item, with a calculation using Natural aggregation, can be changed

View file

@ -29,10 +29,7 @@ Feature: We can understand the gradebook user report
And I log in as "admin" And I log in as "admin"
And I set the following administration settings values: 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 | | 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 log out And I am on the "Course 1" "grades > Grader report > View" page logged in as teacher1
And I log in as "teacher1"
And I am on "Course 1" course homepage
And I navigate to "View > Grader report" in the course gradebook
And I turn editing mode on And I turn editing mode on
And I give the grade "60.00" to the user "Student 1" for the grade item "EN Test assignment one" And I give the grade "60.00" to the user "Student 1" for the grade item "EN Test assignment one"
And I give the grade "20.00" to the user "Student 1" for the grade item "EN Test assignment two" And I give the grade "20.00" to the user "Student 1" for the grade item "EN Test assignment two"

View file

@ -16,41 +16,22 @@ Feature: Editing a grade item
| user | course | role | | user | course | role |
| teacher1 | C1 | editingteacher | | teacher1 | C1 | editingteacher |
| student1 | C1 | student | | student1 | C1 | student |
And the following "scales" exist:
| name | scale |
| <span lang="en" class="multilang">EN</span><span lang="fr" class="multilang">FR</span> ABCDEF | F,E,D,C,B,A |
| <span lang="en" class="multilang">EN</span><span lang="fr" class="multilang">FR</span> Letter scale | Disappointing, Good, Very good, Excellent |
And the following "grade categories" exist:
| fullname | course | aggregation |
| <span lang="en" class="multilang">EN</span><span lang="fr" class="multilang">FR</span> Cat 1 | C1 | 6 |
And the following "grade items" exist:
| itemname | course | category |
| <span lang="en" class="multilang">EN</span><span lang="fr" class="multilang">FR</span> Item 1 | C1 | <span lang="en" class="multilang">EN</span><span lang="fr" class="multilang">FR</span> Cat 1 |
| <span lang="en" class="multilang">EN</span><span lang="fr" class="multilang">FR</span> Item 2 | C1 | <span lang="en" class="multilang">EN</span><span lang="fr" class="multilang">FR</span> Cat 1 |
And I am on the "Course 1" "grades > gradebook setup" page logged in as "admin"
And I log in as "admin" And I log in as "admin"
And the "multilang" filter is "on" And the "multilang" filter is "on"
And the "multilang" filter applies to "content and headings" And the "multilang" filter applies to "content and headings"
And I navigate to "Grades > Scales" in site administration And I am on the "Course 1" "grades > gradebook setup" page logged in as "admin"
And I press "Add a new scale"
And I set the following fields to these values:
| Name | <span lang="en" class="multilang">EN</span><span lang="fr" class="multilang">FR</span> ABCDEF |
| Scale | F,E,D,C,B,A |
And I press "Save changes"
And I press "Add a new scale"
And I set the following fields to these values:
| Name | <span lang="en" class="multilang">EN</span><span lang="fr" class="multilang">FR</span> Letter scale |
| Scale | Disappointing, Good, Very good, Excellent |
And I press "Save changes"
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 log out
And I log in as "teacher1"
And I am on "Course 1" course homepage
And I navigate to "Setup > Gradebook setup" in the course gradebook
And I press "Add category"
And I set the following fields to these values:
| Category name | <span lang="en" class="multilang">EN</span><span lang="fr" class="multilang">FR</span> Cat 1 |
| Aggregation | Highest grade |
And I press "Save changes"
And I press "Add grade item"
And I set the following fields to these values:
| Item name | <span lang="en" class="multilang">EN</span><span lang="fr" class="multilang">FR</span> Item 1 |
| Grade category | EN Cat 1 |
And I press "Save changes"
And I press "Add grade item"
And I set the following fields to these values:
| Item name | <span lang="en" class="multilang">EN</span><span lang="fr" class="multilang">FR</span> Item 2 |
| Grade category | EN Cat 1 |
And I press "Save changes"
Scenario: Being able to change the grade type, scale and maximum grade for a grade category when there are no overridden grades Scenario: Being able to change the grade type, scale and maximum grade for a grade category when there are no overridden grades
When I open the action menu in "EN Cat 1" "table_row" When I open the action menu in "EN Cat 1" "table_row"

View file

@ -19,8 +19,7 @@ Feature: Extra credit contributions are normalised when going out of bounds
And I log in as "admin" And I log in as "admin"
And I set the following administration settings values: And I set the following administration settings values:
| grade_aggregations_visible | Simple weighted mean of grades,Mean of grades (with extra credits),Natural | | grade_aggregations_visible | Simple weighted mean of grades,Mean of grades (with extra credits),Natural |
And I am on "Course 1" course homepage And I am on the "Course 1" "grades > gradebook setup" page
And I navigate to "Setup > Gradebook setup" in the course gradebook
And I press "Add grade item" And I press "Add grade item"
And I set the following fields to these values: And I set the following fields to these values:
| Item name | Manual item 1 | | Item name | Manual item 1 |
@ -42,10 +41,7 @@ Feature: Extra credit contributions are normalised when going out of bounds
And I set the field "Show weighting" to "Show" And I set the field "Show weighting" to "Show"
And I set the field "Show contribution to course total" to "Show" And I set the field "Show contribution to course total" to "Show"
And I press "Save changes" And I press "Save changes"
And I log out And I am on the "Course 1" "grades > Grader report > View" page logged in as "teacher1"
And I log in as "teacher1"
And I am on "Course 1" course homepage
And I navigate to "View > Grader report" in the course gradebook
And I turn editing mode on And I turn editing mode on
And I give the grade "80.00" to the user "Student 1" for the grade item "Manual item 1" And I give the grade "80.00" to the user "Student 1" for the grade item "Manual item 1"
And I give the grade "10.00" to the user "Student 1" for the grade item "Manual item 2" And I give the grade "10.00" to the user "Student 1" for the grade item "Manual item 2"

View file

@ -19,9 +19,7 @@ Feature: We can change the maximum and minimum number of points for manual items
| teacher1 | C1 | editingteacher | | teacher1 | C1 | editingteacher |
| student1 | C1 | student | | student1 | C1 | student |
| student2 | C1 | student | | student2 | C1 | student |
And I log in as "teacher1" And I am on the "Course 1" "grades > gradebook setup" page logged in as "teacher1"
And I am on "Course 1" course homepage
And I navigate to "Setup > Gradebook setup" in the course gradebook
And I press "Add grade item" And I press "Add grade item"
And I set the following fields to these values: And I set the following fields to these values:
| Item name | Manual item 1 | | Item name | Manual item 1 |
@ -34,8 +32,7 @@ Feature: We can change the maximum and minimum number of points for manual items
And I press "Save changes" And I press "Save changes"
Scenario: Change maximum number of points on a graded item. Scenario: Change maximum number of points on a graded item.
And I am on "Course 1" course homepage Given I am on the "Course 1" "grades > Grader report > View" page
And I navigate to "View > Grader report" in the course gradebook
And I turn editing mode on And I turn editing mode on
And I give the grade "10.00" to the user "Student 1" for the grade item "Manual item 1" And I give the grade "10.00" to the user "Student 1" for the grade item "Manual item 1"
And I give the grade "8.00" to the user "Student 2" for the grade item "Manual item 1" And I give the grade "8.00" to the user "Student 2" for the grade item "Manual item 1"

View file

@ -29,8 +29,7 @@ Feature: Student and teacher's view of aggregated grade items is consistent when
And I log in as "admin" And I log in as "admin"
And the "multilang" filter is "on" And the "multilang" filter is "on"
And the "multilang" filter applies to "content and headings" And the "multilang" filter applies to "content and headings"
And I am on "Course 1" course homepage And I am on the "Course 1" "grades > gradebook setup" page
And I navigate to "Setup > Gradebook setup" in the course gradebook
And I press "Add grade item" And I press "Add grade item"
And I set the following fields to these values: And I set the following fields to these values:
| Item name | calculated | | Item name | calculated |
@ -42,10 +41,7 @@ Feature: Student and teacher's view of aggregated grade items is consistent when
And I navigate to "Grades > Report settings > User report" in site administration And I navigate to "Grades > Report settings > User report" in site administration
And I set the field "s__grade_report_user_showtotalsifcontainhidden" to "Show totals excluding hidden items" And I set the field "s__grade_report_user_showtotalsifcontainhidden" to "Show totals excluding hidden items"
And I press "Save changes" And I press "Save changes"
When I log out When I am on the "Course 1" "grades > Grader report > View" page logged in as teacher1
And I log in as "teacher1"
And I am on "Course 1" course homepage
And I navigate to "View > Grader report" in the course gradebook
And I turn editing mode on And I turn editing mode on
And I give the grade "50.00" to the user "Student 1" for the grade item "Test assignment one" And I give the grade "50.00" to the user "Student 1" for the grade item "Test assignment one"
And I give the grade "50.00" to the user "Student 1" for the grade item "Test assignment three" And I give the grade "50.00" to the user "Student 1" for the grade item "Test assignment three"
@ -53,8 +49,7 @@ Feature: Student and teacher's view of aggregated grade items is consistent when
And I set the following settings for grade item "Test assignment four": And I set the following settings for grade item "Test assignment four":
| Hidden | 1 | | Hidden | 1 |
And I press "Save changes" And I press "Save changes"
And I am on "Course 1" course homepage And I am on the "Course 1" "grades > User report > View" page
And I navigate to "View > User report" in the course gradebook
And I click on "Student 1" in the "user" search widget And I click on "Student 1" in the "user" search widget
And I set the field "View report as" to "Myself" And I set the field "View report as" to "Myself"
Then the following should exist in the "user-grade" table: Then the following should exist in the "user-grade" table:
@ -63,10 +58,7 @@ Feature: Student and teacher's view of aggregated grade items is consistent when
| Test assignment two | 0.00 %( Empty ) | - | 0100 | - | 0.00 % | | Test assignment two | 0.00 %( Empty ) | - | 0100 | - | 0.00 % |
| Test assignment three | 100.00 % | 50.00 | 0100 | 50.00 % | 25.00 % | | Test assignment three | 100.00 % | 50.00 | 0100 | 50.00 % | 25.00 % |
| Course total | - | 100.00 | 0200 | 50.00 % | - | | Course total | - | 100.00 | 0200 | 50.00 % | - |
When I log out When I am on the "Course 1" "grades > User report > View" page logged in as student1
And I log in as "student1"
And I am on "Course 1" course homepage
And I navigate to "User report" in the course gradebook
Then the following should exist in the "user-grade" table: Then the following should exist in the "user-grade" table:
| Grade item | Calculated weight | Grade | Range | Percentage | Contribution to course total | | Grade item | Calculated weight | Grade | Range | Percentage | Contribution to course total |
| Test assignment one | 100.00 % | 50.00 | 0100 | 50.00 % | 25.00 % | | Test assignment one | 100.00 % | 50.00 | 0100 | 50.00 % | 25.00 % |

View file

@ -17,9 +17,7 @@ Feature: Hidden grade items should be hidden when grade category is locked, but
| user | course | role | | user | course | role |
| teacher1 | C1 | editingteacher | | teacher1 | C1 | editingteacher |
| student1 | C1 | student | | student1 | C1 | student |
And I log in as "admin" And I am on the "Course 1" "grades > gradebook setup" page logged in as "admin"
And I am on "Course 1" course homepage
And I navigate to "Setup > Gradebook setup" in the course gradebook
And I press "Add category" And I press "Add category"
And I set the following fields to these values: And I set the following fields to these values:
| Category name | Test locked category | | Category name | Test locked category |
@ -30,23 +28,16 @@ Feature: Hidden grade items should be hidden when grade category is locked, but
| Hidden | 1 | | Hidden | 1 |
| Grade category | Test locked category | | Grade category | Test locked category |
And I press "Save changes" And I press "Save changes"
And I log out And I am on the "Course 1" "grades > Grader report > View" page logged in as "teacher1"
And I log in as "teacher1"
And I am on "Course 1" course homepage
And I navigate to "View > Grader report" in the course gradebook
And I turn editing mode on And I turn editing mode on
And I give the grade "50.00" to the user "Student 1" for the grade item "Hidden item" And I give the grade "50.00" to the user "Student 1" for the grade item "Hidden item"
And I press "Save changes" And I press "Save changes"
And I navigate to "Setup > Gradebook setup" in the course gradebook And I navigate to "Setup > Gradebook setup" in the course gradebook
And I set the following settings for grade item "Test locked category": And I set the following settings for grade item "Test locked category":
| Locked | 1 | | Locked | 1 |
And I press "Save changes"
And I log out
Scenario: Hidden grade items in locked category is hidden for teacher Scenario: Hidden grade items in locked category is hidden for teacher
Given I log in as "teacher1" Given I am on the "Course 1" "grades > User report > View" page logged in as teacher1
And I am on "Course 1" course homepage
And I navigate to "View > User report" in the course gradebook
And I click on "Student 1" in the "user" search widget And I click on "Student 1" in the "user" search widget
When I set the field "View report as" to "Myself" When I set the field "View report as" to "Myself"
Then the following should exist in the "user-grade" table: Then the following should exist in the "user-grade" table:
@ -55,9 +46,7 @@ Feature: Hidden grade items should be hidden when grade category is locked, but
| Course total | - | 50.00 | 0100 | 50.00 % | - | | Course total | - | 50.00 | 0100 | 50.00 % | - |
Scenario: Hidden grade items in locked category is hidden for student Scenario: Hidden grade items in locked category is hidden for student
Given I log in as "student1" When I am on the "Course 1" "grades > User report > View" page logged in as student1
And I am on "Course 1" course homepage
When I navigate to "User report" in the course gradebook
Then the following should exist in the "user-grade" table: Then the following should exist in the "user-grade" table:
| Grade item | Calculated weight | Grade | Range | Percentage | Contribution to course total | | Grade item | Calculated weight | Grade | Range | Percentage | Contribution to course total |
| Test locked category total | 100.00 % | - | 0100 | - | - | | Test locked category total | 100.00 % | - | 0100 | - | - |
@ -65,9 +54,7 @@ Feature: Hidden grade items should be hidden when grade category is locked, but
And I should not see "Hidden item" And I should not see "Hidden item"
Scenario: Hidden grade items in overridden category should show Scenario: Hidden grade items in overridden category should show
Given I log in as "teacher1" Given I am on the "Course 1" "grades > gradebook setup" page
And I am on "Course 1" course homepage
And I navigate to "Setup > Gradebook setup" in the course gradebook
And I press "Add category" And I press "Add category"
And I set the following fields to these values: And I set the following fields to these values:
| Category name | Test overridden category B| | Category name | Test overridden category B|
@ -81,10 +68,7 @@ Feature: Hidden grade items should be hidden when grade category is locked, but
And I turn editing mode on And I turn editing mode on
And I give the grade "50.00" to the user "Student 1" for the grade item "Test overridden category B total" And I give the grade "50.00" to the user "Student 1" for the grade item "Test overridden category B total"
And I press "Save changes" And I press "Save changes"
And I log out And I am on the "Course 1" "grades > User report > View" page logged in as "student1"
And I log in as "student1"
And I am on "Course 1" course homepage
And I navigate to "User report" in the course gradebook
Then the following should exist in the "user-grade" table: Then the following should exist in the "user-grade" table:
| Grade item | Calculated weight | Grade | Range | Percentage | Contribution to course total | | Grade item | Calculated weight | Grade | Range | Percentage | Contribution to course total |
| Test locked category total | 50.00 % | - | 0100 | - | - | | Test locked category total | 50.00 % | - | 0100 | - | - |

View file

@ -25,9 +25,7 @@ Feature: We can duplicate grade items that already exist.
| Item1 | C1 | Category1 | 001 | Value | 80.00 | 5.00 | 40.00 | 1 | 1 | 0 | 1 | | Item1 | C1 | Category1 | 001 | Value | 80.00 | 5.00 | 40.00 | 1 | 1 | 0 | 1 |
Scenario: Ensure the duplicated grade item settings match the original grade item Scenario: Ensure the duplicated grade item settings match the original grade item
Given I log in as "teacher1" Given I am on the "Course 1" "grades > gradebook setup" page logged in as "teacher1"
And I am on "Course 1" course homepage
And I navigate to "Setup > Gradebook setup" in the course gradebook
And I should not see "Duplicate Category1" And I should not see "Duplicate Category1"
And I should not see "Duplicate Assignment1" And I should not see "Duplicate Assignment1"
When I duplicate the grade item "Item1" When I duplicate the grade item "Item1"

View file

@ -26,28 +26,19 @@ Feature: Teacher can unhide grades on the edit page allowing students to view th
| Grade out of 100 | 50 | | Grade out of 100 | 50 |
| Feedback comments | I'm the teacher feedback | | Feedback comments | I'm the teacher feedback |
And I press "Save changes" And I press "Save changes"
And I am on "Course 1" course homepage
And I log out
And I am on the "Test assignment name" "assign activity" page logged in as student1 And I am on the "Test assignment name" "assign activity" page logged in as student1
And I should see "50.00" And I should see "50.00"
And I should see "I'm the teacher feedback" in the "Feedback comments" "table_row" And I should see "I'm the teacher feedback" in the "Feedback comments" "table_row"
And I log out And I am on the "Course 1" "grades > gradebook setup" page logged in as "teacher1"
And I log in as "teacher1"
And I am on "Course 1" course homepage
And I navigate to "Setup > Gradebook setup" in the course gradebook
@javascript @javascript
Scenario: Hiding the activity using the drop-down hide link and then unhiding the activity using the edit settings form page Scenario: Hiding the activity using the drop-down hide link and then unhiding the activity using the edit settings form page
Given I click on "Edit" "link" in the "Test assignment name" "table_row" Given I click on "Edit" "link" in the "Test assignment name" "table_row"
And I click on "Hide" "link" in the "Test assignment name" "table_row" And I click on "Hide" "link" in the "Test assignment name" "table_row"
And I log out
And I am on the "Test assignment name" "assign activity" page logged in as student1 And I am on the "Test assignment name" "assign activity" page logged in as student1
And I should not see "50.00" And I should not see "50.00"
And I should not see "I'm the teacher feedback" And I should not see "I'm the teacher feedback"
And I log out And I am on the "Course 1" "grades > gradebook setup" page logged in as "teacher1"
And I log in as "teacher1"
And I am on "Course 1" course homepage
And I navigate to "Setup > Gradebook setup" in the course gradebook
And I click on "Edit" "link" in the "Test assignment name" "table_row" And I click on "Edit" "link" in the "Test assignment name" "table_row"
And I click on "Edit settings" "link" in the "Test assignment name" "table_row" And I click on "Edit settings" "link" in the "Test assignment name" "table_row"
And the field "Hidden" matches value "1" And the field "Hidden" matches value "1"
@ -68,13 +59,9 @@ Feature: Teacher can unhide grades on the edit page allowing students to view th
And I am on the "Test assignment name" "assign activity" page logged in as student1 And I am on the "Test assignment name" "assign activity" page logged in as student1
And I should not see "50.00" And I should not see "50.00"
And I should not see "I'm the teacher feedback" And I should not see "I'm the teacher feedback"
And I log out And I am on the "Course 1" "grades > gradebook setup" page logged in as "teacher1"
And I log in as "teacher1"
And I am on "Course 1" course homepage
And I navigate to "Setup > Gradebook setup" in the course gradebook
And I click on "Edit" "link" in the "Test assignment name" "table_row" And I click on "Edit" "link" in the "Test assignment name" "table_row"
And I click on "Show" "link" in the "Test assignment name" "table_row" And I click on "Show" "link" in the "Test assignment name" "table_row"
And I log out
And I am on the "Test assignment name" "assign activity" page logged in as student1 And I am on the "Test assignment name" "assign activity" page logged in as student1
Then I should see "50.00" Then I should see "50.00"
And I should see "I'm the teacher feedback" in the "Feedback comments" "table_row" And I should see "I'm the teacher feedback" in the "Feedback comments" "table_row"
@ -83,20 +70,15 @@ Feature: Teacher can unhide grades on the edit page allowing students to view th
Scenario: Hiding the category using the drop-down hide link and then unhiding the category using the edit settings form page Scenario: Hiding the category using the drop-down hide link and then unhiding the category using the edit settings form page
Given I click on "Edit" "link" in the "Course 1" "table_row" Given I click on "Edit" "link" in the "Course 1" "table_row"
And I click on "Hide" "link" in the "Course 1" "table_row" And I click on "Hide" "link" in the "Course 1" "table_row"
And I log out
And I am on the "Test assignment name" "assign activity" page logged in as student1 And I am on the "Test assignment name" "assign activity" page logged in as student1
And I should not see "50.00" And I should not see "50.00"
And I should not see "I'm the teacher feedback" And I should not see "I'm the teacher feedback"
And I log out And I am on the "Course 1" "grades > gradebook setup" page logged in as "teacher1"
And I log in as "teacher1"
And I am on "Course 1" course homepage
And I navigate to "Setup > Gradebook setup" in the course gradebook
And I click on "Edit" "link" in the "Course 1" "table_row" And I click on "Edit" "link" in the "Course 1" "table_row"
And I click on "Edit settings" "link" in the "Course 1" "table_row" And I click on "Edit settings" "link" in the "Course 1" "table_row"
And the field "Hidden" matches value "1" And the field "Hidden" matches value "1"
And I set the field "Hidden" to "0" And I set the field "Hidden" to "0"
And I press "Save changes" And I press "Save changes"
And I log out
And I am on the "Test assignment name" "assign activity" page logged in as student1 And I am on the "Test assignment name" "assign activity" page logged in as student1
Then I should see "50.00" Then I should see "50.00"
And I should see "I'm the teacher feedback" in the "Feedback comments" "table_row" And I should see "I'm the teacher feedback" in the "Feedback comments" "table_row"
@ -107,17 +89,12 @@ Feature: Teacher can unhide grades on the edit page allowing students to view th
And I click on "Edit settings" "link" in the "Course 1" "table_row" And I click on "Edit settings" "link" in the "Course 1" "table_row"
And I set the field "Hidden" to "1" And I set the field "Hidden" to "1"
And I press "Save changes" And I press "Save changes"
And I log out
And I am on the "Test assignment name" "assign activity" page logged in as student1 And I am on the "Test assignment name" "assign activity" page logged in as student1
And I should not see "50.00" And I should not see "50.00"
And I should not see "I'm the teacher feedback" And I should not see "I'm the teacher feedback"
And I log out And I am on the "Course 1" "grades > gradebook setup" page logged in as "teacher1"
And I log in as "teacher1"
And I am on "Course 1" course homepage
And I navigate to "Setup > Gradebook setup" in the course gradebook
And I click on "Edit" "link" in the "Course 1" "table_row" And I click on "Edit" "link" in the "Course 1" "table_row"
And I click on "Show" "link" in the "Course 1" "table_row" And I click on "Show" "link" in the "Course 1" "table_row"
And I log out
And I am on the "Test assignment name" "assign activity" page logged in as student1 And I am on the "Test assignment name" "assign activity" page logged in as student1
Then I should see "50.00" Then I should see "50.00"
And I should see "I'm the teacher feedback" in the "Feedback comments" "table_row" And I should see "I'm the teacher feedback" in the "Feedback comments" "table_row"

View file

@ -30,8 +30,7 @@ Feature: Grade item validation
| Name | <span lang="en" class="multilang">EN</span><span lang="fr" class="multilang">FR</span> Letter scale | | Name | <span lang="en" class="multilang">EN</span><span lang="fr" class="multilang">FR</span> Letter scale |
| Scale | Disappointing, Good, Very good, Excellent | | Scale | Disappointing, Good, Very good, Excellent |
And I press "Save changes" And I press "Save changes"
And I am on "Course 1" course homepage And I am on the "Course 1" "grades > gradebook setup" page
And I navigate to "Setup > Gradebook setup" in the course gradebook
And I press "Add grade item" And I press "Add grade item"
And I set the following fields to these values: And I set the following fields to these values:
| Item name | <span lang="en" class="multilang">EN</span><span lang="fr" class="multilang">FR</span> MI 1 | | Item name | <span lang="en" class="multilang">EN</span><span lang="fr" class="multilang">FR</span> MI 1 |

View file

@ -20,9 +20,7 @@ Feature: We can customise the letter boundary of a course.
And the following "activities" exist: And the following "activities" exist:
| activity | course | idnumber | name | intro | grade | | activity | course | idnumber | name | intro | grade |
| assign | C1 | a1 | Test assignment one | Submit something! | 100 | | assign | C1 | a1 | Test assignment one | Submit something! | 100 |
And I log in as "teacher1" And I am on the "Course 1" "grades > course grade settings" page logged in as "teacher1"
And I am on "Course 1" course homepage
And I navigate to "Setup > Course grade settings" in the course gradebook
And I set the following fields to these values: And I set the following fields to these values:
| Grade display type | Letter | | Grade display type | Letter |
And I press "Save changes" And I press "Save changes"

View file

@ -21,9 +21,7 @@ Feature: We can customise the letter boundary of a course in gradebook version 2
And the following "activities" exist: And the following "activities" exist:
| activity | course | idnumber | name | intro | grade | | activity | course | idnumber | name | intro | grade |
| assign | C1 | a1 | Test assignment one | Submit something! | 100 | | assign | C1 | a1 | Test assignment one | Submit something! | 100 |
And I log in as "teacher1" And I am on the "Course 1" "grades > course grade settings" page logged in as "teacher1"
And I am on "Course 1" course homepage
And I navigate to "Setup > Course grade settings" in the course gradebook
And I set the following fields to these values: And I set the following fields to these values:
| Grade display type | Letter | | Grade display type | Letter |
And I press "Save changes" And I press "Save changes"

View file

@ -8,9 +8,7 @@ Feature: We can view the logs for any changes to grade letters.
Given the following "courses" exist: Given the following "courses" exist:
| fullname | shortname | category | | fullname | shortname | category |
| Course 1 | C1 | 0 | | Course 1 | C1 | 0 |
And I log in as "admin" And I am on the "Course 1" "grades > course grade settings" page logged in as "admin"
And I am on "Course 1" course homepage
And I navigate to "Setup > Course grade settings" in the course gradebook
And I set the following fields to these values: And I set the following fields to these values:
| Grade display type | Letter | | Grade display type | Letter |
And I press "Save changes" And I press "Save changes"

View file

@ -25,8 +25,7 @@ Feature: We can use a minimum grade different than zero
And I log in as "admin" And I log in as "admin"
And I set the following administration settings values: 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 | | 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 "Course 1" course homepage And I am on the "Course 1" "grades > gradebook setup" page
And I navigate to "Setup > Gradebook setup" in the course gradebook
And I press "Add grade item" And I press "Add grade item"
And I set the following fields to these values: And I set the following fields to these values:
| Item name | Manual item 1 | | Item name | Manual item 1 |
@ -81,10 +80,7 @@ Feature: We can use a minimum grade different than zero
And I set the following settings for grade item "Course 1": And I set the following settings for grade item "Course 1":
| Aggregation | Natural | | Aggregation | Natural |
| Exclude empty grades | 0 | | Exclude empty grades | 0 |
And I log out And I am on the "Course 1" "grades > Grader report > View" page logged in as "teacher1"
And I log in as "teacher1"
And I am on "Course 1" course homepage
And I navigate to "View > Grader report" in the course gradebook
And I turn editing mode on And I turn editing mode on
When I give the grade "-25.00" to the user "Student 1" for the grade item "Manual item 1" When I give the grade "-25.00" to the user "Student 1" for the grade item "Manual item 1"
And I give the grade "50.00" to the user "Student 1" for the grade item "Manual item 2" And I give the grade "50.00" to the user "Student 1" for the grade item "Manual item 2"

View file

@ -24,8 +24,7 @@ Feature: We can choose what min or max grade to use when aggregating grades.
And I log in as "admin" And I log in as "admin"
And I set the following administration settings values: And I set the following administration settings values:
| grade_minmaxtouse | Min and max grades as specified in grade item settings | | grade_minmaxtouse | Min and max grades as specified in grade item settings |
And I am on "C1" course homepage And I am on the "C1" "grades > gradebook setup" page
And I navigate to "Setup > Gradebook setup" in the course gradebook
And I press "Add grade item" And I press "Add grade item"
And I set the following fields to these values: And I set the following fields to these values:
| Item name | MI 1 | | Item name | MI 1 |
@ -63,10 +62,7 @@ Feature: We can choose what min or max grade to use when aggregating grades.
And I navigate to "Setup > Gradebook setup" in the course gradebook And I navigate to "Setup > Gradebook setup" in the course gradebook
And I set the following settings for grade item "CAT1": And I set the following settings for grade item "CAT1":
| Aggregation | Natural | | Aggregation | Natural |
And I log out And I am on the "C1" "grades > Grader report > View" page logged in as "teacher1"
And I log in as "teacher1"
And I am on "C1" course homepage
And I navigate to "View > Grader report" in the course gradebook
And I turn editing mode on And I turn editing mode on
And I give the grade "75.00" to the user "Student 1" for the grade item "MI 1" And I give the grade "75.00" to the user "Student 1" for the grade item "MI 1"
And I give the grade "25.00" to the user "Student 1" for the grade item "MI 2" And I give the grade "25.00" to the user "Student 1" for the grade item "MI 2"

View file

@ -23,9 +23,7 @@ Feature: Weights in natural aggregation are adjusted if the items are excluded f
| assign | C1 | a3 | Test assignment three | x | 200 | | assign | C1 | a3 | Test assignment three | x | 200 |
| assign | C1 | a4 | Test assignment four (extra) | x | 20 | | assign | C1 | a4 | Test assignment four (extra) | x | 20 |
| assign | C1 | a5 | Test assignment five (extra) | x | 10 | | assign | C1 | a5 | Test assignment five (extra) | x | 10 |
And I log in as "teacher1" And I am on the "Course 1" "grades > gradebook setup" page logged in as "teacher1"
And I am on "Course 1" course homepage
And I navigate to "Setup > Gradebook setup" in the course gradebook
And I set the following settings for grade item "Test assignment four (extra)": And I set the following settings for grade item "Test assignment four (extra)":
| Extra credit | 1 | | Extra credit | 1 |
And I set the following settings for grade item "Test assignment five (extra)": And I set the following settings for grade item "Test assignment five (extra)":

View file

@ -24,9 +24,7 @@ Feature: Gradebook calculations for extra credit items before the fix 20150619
| assign | C1 | a3 | Test assignment three | x | 200 | | assign | C1 | a3 | Test assignment three | x | 200 |
| assign | C1 | a4 | Test assignment four (extra) | x | 20 | | assign | C1 | a4 | Test assignment four (extra) | x | 20 |
| assign | C1 | a5 | Test assignment five (extra) | x | 10 | | assign | C1 | a5 | Test assignment five (extra) | x | 10 |
And I log in as "teacher1" And I am on the "Course 1" "grades > gradebook setup" page logged in as "teacher1"
And I am on "Course 1" course homepage
And I navigate to "Setup > Gradebook setup" in the course gradebook
And I set the following settings for grade item "Test assignment four (extra)": And I set the following settings for grade item "Test assignment four (extra)":
| Extra credit | 1 | | Extra credit | 1 |
And I set the following settings for grade item "Test assignment five (extra)": And I set the following settings for grade item "Test assignment five (extra)":

View file

@ -32,9 +32,7 @@ Feature: We can use natural aggregation and weights will be normalised to a tota
| assign | C1 | a7 | Test assignment seven | Submit nothing! | <span lang="en" class="multilang">EN</span><span lang="fr" class="multilang">FR</span> Sub category 1 | 15 | | assign | C1 | a7 | Test assignment seven | Submit nothing! | <span lang="en" class="multilang">EN</span><span lang="fr" class="multilang">FR</span> Sub category 1 | 15 |
And the "multilang" filter is "on" And the "multilang" filter is "on"
And the "multilang" filter applies to "content and headings" And the "multilang" filter applies to "content and headings"
And I log in as "teacher1" And I am on the "Course 1" "grades > gradebook setup" page logged in as "teacher1"
And I am on "Course 1" course homepage
And I navigate to "Setup > Gradebook setup" in the course gradebook
@javascript @javascript
Scenario: Setting all weights in a category to exactly one hundred in total. Scenario: Setting all weights in a category to exactly one hundred in total.

View file

@ -31,9 +31,7 @@ Feature: Gradebook calculations for natural weights normalisation before the fix
| assign | C1 | a5 | Test assignment five | Submit something! | Sub category 1 | 20 | | assign | C1 | a5 | Test assignment five | Submit something! | Sub category 1 | 20 |
| assign | C1 | a6 | Test assignment six | Submit something! | Sub category 1 | 10 | | assign | C1 | a6 | Test assignment six | Submit something! | Sub category 1 | 10 |
| assign | C1 | a7 | Test assignment seven | Submit nothing! | Sub category 1 | 15 | | assign | C1 | a7 | Test assignment seven | Submit nothing! | Sub category 1 | 15 |
And I log in as "teacher1" And I am on the "Course 1" "grades > gradebook setup" page logged in as "teacher1"
And I am on "Course 1" course homepage
And I navigate to "Setup > Gradebook setup" in the course gradebook
@javascript @javascript
Scenario: Grade items weights are normalised when all grade item weights are overridden (sum exactly 100). Extra credit is set to zero (before the fix 20150619). Scenario: Grade items weights are normalised when all grade item weights are overridden (sum exactly 100). Extra credit is set to zero (before the fix 20150619).

View file

@ -30,8 +30,7 @@ Feature: Regrading grades does not unnecessarily mark some as overriden
And I press "Save and show next" And I press "Save and show next"
And I set the field "Grade out of 100" to "60" And I set the field "Grade out of 100" to "60"
And I press "Save changes" And I press "Save changes"
And I am on "Course 1" course homepage And I am on the "Course 1" "grades > Grader report > View" page
And I navigate to "View > Grader report" in the course gradebook
And the following should exist in the "gradereport-grader-table" table: And the following should exist in the "gradereport-grader-table" table:
| | | | | | | |
| First name / Last name | Assignment 1 | Course total | | First name / Last name | Assignment 1 | Course total |
@ -40,7 +39,6 @@ Feature: Regrading grades does not unnecessarily mark some as overriden
And I turn editing mode on And I turn editing mode on
And I give the grade "80.00" to the user "Student 2" for the grade item "Course total" And I give the grade "80.00" to the user "Student 2" for the grade item "Course total"
And I press "Save changes" And I press "Save changes"
And I navigate to "View > Grader report" in the course gradebook
And I navigate to "Setup > Gradebook setup" in the course gradebook And I navigate to "Setup > Gradebook setup" in the course gradebook
And I click on "Edit" "link" in the ".coursecategory" "css_element" And I click on "Edit" "link" in the ".coursecategory" "css_element"
And I click on "Edit settings" "link" in the ".coursecategory" "css_element" And I click on "Edit settings" "link" in the ".coursecategory" "css_element"
@ -64,8 +62,7 @@ Feature: Regrading grades does not unnecessarily mark some as overriden
And I press "Save and show next" And I press "Save and show next"
And I set the field "Grade out of 100" to "70" And I set the field "Grade out of 100" to "70"
And I press "Save changes" And I press "Save changes"
When I am on "Course 1" course homepage When I am on the "Course 1" "grades > Grader report > View" page
And I navigate to "View > Grader report" in the course gradebook
Then the following should exist in the "gradereport-grader-table" table: Then the following should exist in the "gradereport-grader-table" table:
| | | | | | | |
| First name / Last name | Assignment 1 | Course total | | First name / Last name | Assignment 1 | Course total |

View file

@ -34,12 +34,9 @@ Feature: Control the aggregation of the scales
| Scale me | C1 | Letterscale | | Scale me | C1 | Letterscale |
And the following config values are set as admin: And the following config values are set as admin:
| grade_includescalesinaggregation | 0 | | grade_includescalesinaggregation | 0 |
And I log out
Scenario Outline: Scales can be excluded from aggregation Scenario Outline: Scales can be excluded from aggregation
Given I log in as "teacher1" Given I am on the "Course 1" "grades > Grader report > View" page logged in as "teacher1"
And I am on "Course 1" course homepage
And I navigate to "View > Grader report" in the course gradebook
And I turn editing mode on And I turn editing mode on
When I give the grade "10" to the user "Student 1" for the grade item "Grade me" When I give the grade "10" to the user "Student 1" for the grade item "Grade me"
And I give the grade "B" to the user "Student 1" for the grade item "Scale me" And I give the grade "B" to the user "Student 1" for the grade item "Scale me"
@ -57,10 +54,7 @@ Feature: Control the aggregation of the scales
And I log in as "admin" And I log in as "admin"
And I set the following administration settings values: And I set the following administration settings values:
| grade_includescalesinaggregation | 1 | | grade_includescalesinaggregation | 1 |
And I log out And I am on the "Course 1" "grades > User report > View" page logged in as "teacher1"
And I log in as "teacher1"
And I am on "Course 1" course homepage
And I navigate to "View > User report" in the course gradebook
And I click on "Student 1" in the "user" search widget And I click on "Student 1" in the "user" search widget
And the following should exist in the "user-grade" table: And the following should exist in the "user-grade" table:
| Grade item | Grade | Percentage | Contribution to course total | | Grade item | Grade | Percentage | Contribution to course total |
@ -81,9 +75,7 @@ Feature: Control the aggregation of the scales
| Mode of grades | Mode of grades. | 10.00 | 10.00 % | 10.00 | 0.00 | 75.00 | 75.00 % | 0.00 % | 75.00 % | | Mode of grades | Mode of grades. | 10.00 | 10.00 % | 10.00 | 0.00 | 75.00 | 75.00 % | 0.00 % | 75.00 % |
Scenario: Weights of scales cannot be edited when they are not aggregated Scenario: Weights of scales cannot be edited when they are not aggregated
Given I log in as "teacher1" Given I am on the "Course 1" "grades > Grader report > View" page logged in as "teacher1"
And I am on "Course 1" course homepage
And I navigate to "View > Grader report" in the course gradebook
And I turn editing mode on And I turn editing mode on
When I set the following settings for grade item "Course 1": When I set the following settings for grade item "Course 1":
| Aggregation | Natural | | Aggregation | Natural |

View file

@ -48,8 +48,7 @@ Feature: View gradebook when single item scales are used
And I click on "Grade" "link" in the "Student 1" "table_row" And I click on "Grade" "link" in the "Student 1" "table_row"
And I set the field "Grade" to "A" And I set the field "Grade" to "A"
And I press "Save changes" And I press "Save changes"
And I am on "Course 1" course homepage When I am on the "Course 1" "grades > course grade settings" page
And I navigate to "Setup > Course grade settings" in the course gradebook
And I set the field "Show weightings" to "Show" And I set the field "Show weightings" to "Show"
And I set the field "Show contribution to course total" to "Show" And I set the field "Show contribution to course total" to "Show"
And I press "Save changes" And I press "Save changes"

View file

@ -18,31 +18,13 @@ Feature: We can enter in grades and view reports from the gradebook
| teacher1 | C1 | editingteacher | | teacher1 | C1 | editingteacher |
| student1 | C1 | student | | student1 | C1 | student |
And the following "activities" exist: And the following "activities" exist:
| activity | name | intro | course | section | idnumber | | activity | name | course | idnumber | assignsubmission_onlinetext_enabled |
| assign | Test assignment name 1 | Submit your online text | C1 | 1 | assign1 | | assign | Test assignment name 1 | C1 | assign1 | 1 |
| assign | Test assignment name 2 | Submit your online text | C1 | 1 | assign2 | | assign | Test assignment name 2 | C1 | assign2 | 1 |
And I log in as "admin" And I log in as "admin"
And I set the following administration settings values: 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 | | 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 log out And I am on the "Test assignment name 1" "assign activity" page logged in as student1
And I log in as "teacher1"
And I am on "Course 1" course homepage
And I follow "Test assignment name 1"
And I navigate to "Settings" in current page administration
And I set the following fields to these values:
| Description | Submit your online text |
| assignsubmission_onlinetext_enabled | 1 |
And I press "Save and return to course"
And I follow "Test assignment name 2"
And I navigate to "Settings" in current page administration
And I set the following fields to these values:
| Description | Submit your online text |
| assignsubmission_onlinetext_enabled | 1 |
And I press "Save and return to course"
And I log out
And I log in as "student1"
And I am on "Course 1" course homepage
And I follow "Test assignment name 1"
When I press "Add submission" When I press "Add submission"
And I set the following fields to these values: And I set the following fields to these values:
| Online text | This is a submission for assignment 1 | | Online text | This is a submission for assignment 1 |
@ -50,8 +32,7 @@ Feature: We can enter in grades and view reports from the gradebook
And I press "Submit assignment" And I press "Submit assignment"
And I press "Continue" And I press "Continue"
Then I should see "Submitted for grading" Then I should see "Submitted for grading"
And I am on "Course 1" course homepage And I am on the "Test assignment name 2" "assign activity" page
And I follow "Test assignment name 2"
When I press "Add submission" When I press "Add submission"
And I set the following fields to these values: And I set the following fields to these values:
| Online text | This is a submission for assignment 2 | | Online text | This is a submission for assignment 2 |
@ -59,10 +40,7 @@ Feature: We can enter in grades and view reports from the gradebook
And I press "Submit assignment" And I press "Submit assignment"
And I press "Continue" And I press "Continue"
Then I should see "Submitted for grading" Then I should see "Submitted for grading"
And I log out And I am on the "Course 1" "grades > Grader report > View" page logged in as "teacher1"
And I log in as "teacher1"
And I am on "Course 1" course homepage
And I navigate to "View > Grader report" in the course gradebook
And I turn editing mode on And I turn editing mode on
And I give the grade "80.00" to the user "Student 1" for the grade item "Test assignment name 1" And I give the grade "80.00" to the user "Student 1" for the grade item "Test assignment name 1"
And I give the grade "90.00" to the user "Student 1" for the grade item "Test assignment name 2" And I give the grade "90.00" to the user "Student 1" for the grade item "Test assignment name 2"

View file

@ -23,9 +23,7 @@ Feature: Turn editing mode on
Given the following "activities" exist: Given the following "activities" exist:
| activity | course | idnumber | name | intro | | activity | course | idnumber | name | intro |
| assign | C1 | assign1 | Test Assignment 1 | Test Assignment 1 | | assign | C1 | assign1 | Test Assignment 1 | Test Assignment 1 |
And I log in as "teacher1" And I am on the "Course 1" "grades > Grader report > View" page logged in as "teacher1"
And I am on "Course 1" course homepage
And I navigate to "View > Grader report" in the course gradebook
And I turn editing mode on And I turn editing mode on
And "Edit assign Test Assignment 1" "link" should exist And "Edit assign Test Assignment 1" "link" should exist
And I turn editing mode off And I turn editing mode off

View file

@ -24,7 +24,6 @@ Feature: Bulk released grades should not be sent to gradebook while submissions
| activity | assign | | activity | assign |
| course | C1 | | course | C1 |
| name | Test assignment name | | name | Test assignment name |
| intro | Test assignment description |
| assignsubmission_onlinetext_enabled | 1 | | assignsubmission_onlinetext_enabled | 1 |
| assignsubmission_file_enabled | 0 | | assignsubmission_file_enabled | 0 |
| markingworkflow | 1 | | markingworkflow | 1 |
@ -39,7 +38,6 @@ Feature: Bulk released grades should not be sent to gradebook while submissions
And I set the following fields to these values: And I set the following fields to these values:
| Online text | I'm student1's submission | | Online text | I'm student1's submission |
And I press "Save changes" And I press "Save changes"
And I log out
# Add another submission. # Add another submission.
And I am on the "Test assignment name" "assign activity" page logged in as "student2" And I am on the "Test assignment name" "assign activity" page logged in as "student2"
Then I should not see "Feedback" Then I should not see "Feedback"
@ -48,7 +46,6 @@ Feature: Bulk released grades should not be sent to gradebook while submissions
And I set the following fields to these values: And I set the following fields to these values:
| Online text | I'm student2's submission | | Online text | I'm student2's submission |
And I press "Save changes" And I press "Save changes"
And I log out
# Mark the submissions. # Mark the submissions.
And I am on the "Test assignment name" "assign activity" page logged in as "teacher1" And I am on the "Test assignment name" "assign activity" page logged in as "teacher1"
And I follow "View all submissions" And I follow "View all submissions"
@ -87,35 +84,22 @@ Feature: Bulk released grades should not be sent to gradebook while submissions
And I follow "View all submissions" And I follow "View all submissions"
Then I should see "Released" in the "I'm student1's submission" "table_row" Then I should see "Released" in the "I'm student1's submission" "table_row"
And I should see "Released" in the "I'm student2's submission" "table_row" And I should see "Released" in the "I'm student2's submission" "table_row"
And I log out And I am on the "Course 1" "grades > User report > View" page logged in as "student1"
And I log in as "student1"
And I am on "Course 1" course homepage
And I navigate to "User report" in the course gradebook
Then I should not see "50" Then I should not see "50"
And I should not see "Great job!" And I should not see "Great job!"
And I log out And I am on the "Course 1" "grades > User report > View" page logged in as "student2"
And I log in as "student2"
And I am on "Course 1" course homepage
And I navigate to "User report" in the course gradebook
Then I should not see "50" Then I should not see "50"
And I should not see "Great job!" And I should not see "Great job!"
And I log out
And I am on the "Test assignment name" "assign activity" page logged in as "teacher1" And I am on the "Test assignment name" "assign activity" page logged in as "teacher1"
And I follow "View all submissions" And I follow "View all submissions"
And I set the field "Grading action" to "Reveal student identities" And I set the field "Grading action" to "Reveal student identities"
And I press "Continue" And I press "Continue"
Then I should see "Released" in the "Student 1" "table_row" Then I should see "Released" in the "Student 1" "table_row"
And I should see "Released" in the "Student 2" "table_row" And I should see "Released" in the "Student 2" "table_row"
And I log out And I am on the "Course 1" "grades > User report > View" page logged in as "student1"
And I log in as "student1"
And I am on "Course 1" course homepage
And I navigate to "User report" in the course gradebook
Then I should see "50" Then I should see "50"
And I should see "Great job!" And I should see "Great job!"
And I log out And I am on the "Course 1" "grades > User report > View" page logged in as "student2"
And I log in as "student2"
And I am on "Course 1" course homepage
And I navigate to "User report" in the course gradebook
Then I should see "50" Then I should see "50"
And I should see "Great job!" And I should see "Great job!"
@ -135,15 +119,9 @@ Feature: Bulk released grades should not be sent to gradebook while submissions
And I follow "View all submissions" And I follow "View all submissions"
Then I should see "Released" in the "Student 1" "table_row" Then I should see "Released" in the "Student 1" "table_row"
And I should see "Released" in the "Student 2" "table_row" And I should see "Released" in the "Student 2" "table_row"
And I log out And I am on the "Course 1" "grades > User report > View" page logged in as "student1"
And I log in as "student1"
And I am on "Course 1" course homepage
And I navigate to "User report" in the course gradebook
Then I should see "50" Then I should see "50"
And I should see "Great job!" And I should see "Great job!"
And I log out And I am on the "Course 1" "grades > User report > View" page logged in as "student2"
And I log in as "student2"
And I am on "Course 1" course homepage
And I navigate to "User report" in the course gradebook
Then I should see "50" Then I should see "50"
And I should see "Great job!" And I should see "Great job!"

View file

@ -20,22 +20,13 @@ Feature: Outcome grading
| student1 | C1 | student | | student1 | C1 | student |
And the following config values are set as admin: And the following config values are set as admin:
| enableoutcomes | 1 | | enableoutcomes | 1 |
And I log in as "admin" And the following "scales" exist:
And I navigate to "Grades > Scales" in site administration | name | scale |
And I press "Add a new scale" | Test Scale | Disappointing, Excellent, Good, Very good, Excellent |
And I set the following fields to these values: And the following "grade outcomes" exist:
| Name | Test Scale | | fullname | shortname | scale |
| Scale | Disappointing, Excellent, Good, Very good, Excellent | | Outcome Test | OT | Test Scale |
And I press "Save changes" And I am on the "Course 1" "grades > outcomes" page logged in as admin
And I navigate to "Grades > Outcomes" in site administration
And I press "Add a new outcome"
And I set the following fields to these values:
| Full name | Outcome Test |
| Short name | OT |
| Scale | Test Scale |
And I press "Save changes"
And I am on "Course 1" course homepage
And I navigate to "More > Outcomes" in the course gradebook
And I set the field "Available standard outcomes" to "Outcome Test" And I set the field "Available standard outcomes" to "Outcome Test"
And I click on "#add" "css_element" And I click on "#add" "css_element"
And I log out And I log out
@ -49,13 +40,11 @@ Feature: Outcome grading
| Description | Test assignment description | | Description | Test assignment description |
| assignsubmission_onlinetext_enabled | 1 | | assignsubmission_onlinetext_enabled | 1 |
| Outcome Test | 1 | | Outcome Test | 1 |
And I log out
And I am on the "Test assignment name" "assign activity" page logged in as student1 And I am on the "Test assignment name" "assign activity" page logged in as student1
And I press "Add submission" And I press "Add submission"
And I set the following fields to these values: And I set the following fields to these values:
| Online text | My online text | | Online text | My online text |
And I press "Save changes" And I press "Save changes"
And I log out
When I am on the "Test assignment name" "assign activity" page logged in as teacher1 When I am on the "Test assignment name" "assign activity" page logged in as teacher1
And I follow "View all submissions" And I follow "View all submissions"
And I click on "Grade" "link" in the "Student 0" "table_row" And I click on "Grade" "link" in the "Student 0" "table_row"
@ -92,13 +81,11 @@ Feature: Outcome grading
| Students submit in groups | Yes | | Students submit in groups | Yes |
| Group mode | No groups | | Group mode | No groups |
| Outcome Test | 1 | | Outcome Test | 1 |
And I log out
And I am on the "Test assignment name" "assign activity" page logged in as student1 And I am on the "Test assignment name" "assign activity" page logged in as student1
And I press "Add submission" And I press "Add submission"
And I set the following fields to these values: And I set the following fields to these values:
| Online text | My online text | | Online text | My online text |
And I press "Save changes" And I press "Save changes"
And I log out
When I am on the "Test assignment name" "assign activity" page logged in as teacher1 When I am on the "Test assignment name" "assign activity" page logged in as teacher1
And I follow "View all submissions" And I follow "View all submissions"
And I click on "Grade" "link" in the "Student 0" "table_row" And I click on "Grade" "link" in the "Student 0" "table_row"

View file

@ -52,9 +52,7 @@ Feature: In an assignment, teachers grade multiple students on one page
| student2 | C1 | student | | student2 | C1 | student |
And the following config values are set as admin: And the following config values are set as admin:
| enableoutcomes | 1 | | enableoutcomes | 1 |
When I log in as "teacher1" When I am on the "Course 1" "grades > outcomes" page logged in as teacher1
And I am on "Course 1" course homepage
And I navigate to "More > Outcomes" in the course gradebook
And I press "Manage outcomes" And I press "Manage outcomes"
And I press "Add a new outcome" And I press "Add a new outcome"
And I follow "Add a new scale" And I follow "Add a new scale"
@ -62,8 +60,7 @@ Feature: In an assignment, teachers grade multiple students on one page
| Name | 1337dom scale | | Name | 1337dom scale |
| Scale | Noob, Nub, 1337, HaXor | | Scale | Noob, Nub, 1337, HaXor |
And I press "Save changes" And I press "Save changes"
And I am on "Course 1" course homepage And I am on the "Course 1" "grades > outcomes" page
And I navigate to "More > Outcomes" in the course gradebook
And I press "Manage outcomes" And I press "Manage outcomes"
And I press "Add a new outcome" And I press "Add a new outcome"
And I set the following fields to these values: And I set the following fields to these values:
@ -78,19 +75,16 @@ Feature: In an assignment, teachers grade multiple students on one page
| assignsubmission_onlinetext_enabled | 1 | | assignsubmission_onlinetext_enabled | 1 |
| assignsubmission_file_enabled | 0 | | assignsubmission_file_enabled | 0 |
| M8d skillZ! | 1 | | M8d skillZ! | 1 |
And I log out
And I am on the "Test assignment name" "assign activity" page logged in as student1 And I am on the "Test assignment name" "assign activity" page logged in as student1
And I press "Add submission" And I press "Add submission"
And I set the following fields to these values: And I set the following fields to these values:
| Online text | I'm the student1 submission | | Online text | I'm the student1 submission |
And I press "Save changes" And I press "Save changes"
And I log out
And I am on the "Test assignment name" "assign activity" page logged in as student2 And I am on the "Test assignment name" "assign activity" page logged in as student2
When I press "Add submission" When I press "Add submission"
And I set the following fields to these values: And I set the following fields to these values:
| Online text | I'm the student2 submission | | Online text | I'm the student2 submission |
And I press "Save changes" And I press "Save changes"
And I log out
And I am on the "Test assignment name" "assign activity" page logged in as teacher1 And I am on the "Test assignment name" "assign activity" page logged in as teacher1
And I follow "View all submissions" And I follow "View all submissions"
And I click on "Grade" "link" in the "Student 1" "table_row" And I click on "Grade" "link" in the "Student 1" "table_row"
@ -105,21 +99,18 @@ Feature: In an assignment, teachers grade multiple students on one page
And I press "Save all quick grading changes" And I press "Save all quick grading changes"
And I should see "The grade changes were saved" And I should see "The grade changes were saved"
And I press "Continue" And I press "Continue"
And I log out
And I am on the "Test assignment name" "assign activity" page logged in as student1 And I am on the "Test assignment name" "assign activity" page logged in as student1
And I should see "I'm the teacher first feedback" And I should see "I'm the teacher first feedback"
And I should see "60.0" And I should see "60.0"
And I follow "Grades" in the user menu And I follow "Grades" in the user menu
And I click on "Course 1" "link" in the "region-main" "region" And I click on "Course 1" "link" in the "region-main" "region"
And I should see "1337" And I should see "1337"
And I log out
And I am on the "Test assignment name" "assign activity" page logged in as student2 And I am on the "Test assignment name" "assign activity" page logged in as student2
And I should not see "I'm the teacher first feedback" And I should not see "I'm the teacher first feedback"
And I should not see "60.0" And I should not see "60.0"
And I follow "Grades" in the user menu And I follow "Grades" in the user menu
And I click on "Course 1" "link" in the "region-main" "region" And I click on "Course 1" "link" in the "region-main" "region"
And I should not see "1337" And I should not see "1337"
And I log out
And I am on the "Test assignment name" "assign activity" page logged in as teacher1 And I am on the "Test assignment name" "assign activity" page logged in as teacher1
And I follow "View all submissions" And I follow "View all submissions"
And I click on "Hide User picture" "link" And I click on "Hide User picture" "link"
@ -138,14 +129,12 @@ Feature: In an assignment, teachers grade multiple students on one page
And I press "Save all quick grading changes" And I press "Save all quick grading changes"
And I should see "The grade changes were saved" And I should see "The grade changes were saved"
And I press "Continue" And I press "Continue"
And I log out
And I am on the "Test assignment name" "assign activity" page logged in as student1 And I am on the "Test assignment name" "assign activity" page logged in as student1
And I should see "I'm the teacher first feedback" And I should see "I'm the teacher first feedback"
And I should see "60.0" And I should see "60.0"
And I follow "Grades" in the user menu And I follow "Grades" in the user menu
And I click on "Course 1" "link" in the "region-main" "region" And I click on "Course 1" "link" in the "region-main" "region"
And I should see "1337" And I should see "1337"
And I log out
And I am on the "Test assignment name" "assign activity" page logged in as student2 And I am on the "Test assignment name" "assign activity" page logged in as student2
And I should not see "I'm the teacher first feedback" And I should not see "I'm the teacher first feedback"
And I should not see "60.0" And I should not see "60.0"

View file

@ -60,10 +60,7 @@ Feature: Assignments correctly add feedback to the grade report when workflow an
And I should see "Released" in the "I'm the student's first submission" "table_row" And I should see "Released" in the "I'm the student's first submission" "table_row"
And I set the field "Grading action" to "Reveal student identities" And I set the field "Grading action" to "Reveal student identities"
And I press "Continue" And I press "Continue"
And I log out And I am on the "Course 1" "grades > User report > View" page logged in as "student1"
And I am on the "C1" Course page logged in as student1
And I navigate to "User report" in the course gradebook
Then I should see "50" Then I should see "50"
And I should see "Great job! Lol, not really." And I should see "Great job! Lol, not really."
@ -82,10 +79,7 @@ Feature: Assignments correctly add feedback to the grade report when workflow an
And I press "Save changes" And I press "Save changes"
And I follow "View all submissions" And I follow "View all submissions"
And I should see "Released" in the "Student 1" "table_row" And I should see "Released" in the "Student 1" "table_row"
And I log out And I am on the "Course 1" "grades > User report > View" page logged in as "student1"
And I am on the "C1" Course page logged in as student1
And I navigate to "User report" in the course gradebook
Then I should see "50" Then I should see "50"
And I should see "Great job! Lol, not really." And I should see "Great job! Lol, not really."

View file

@ -41,7 +41,6 @@ Feature: Do a H5P attempt
And I click on "Correct one" "text" in the ".h5p-question-content" "css_element" And I click on "Correct one" "text" in the ".h5p-question-content" "css_element"
And I click on "Check" "button" in the ".h5p-question-buttons" "css_element" And I click on "Check" "button" in the ".h5p-question-buttons" "css_element"
And I switch to the main frame And I switch to the main frame
And I log out
And I am on the "Course 1" course page logged in as teacher1 And I am on the "Course 1" course page logged in as teacher1
And I navigate to course participants And I navigate to course participants
And I follow "Student 1" And I follow "Student 1"
@ -83,8 +82,7 @@ Feature: Do a H5P attempt
And "2" row "Score" column of "table" table should contain "1" And "2" row "Score" column of "table" table should contain "1"
And "3" row "Score" column of "table" table should contain "0" And "3" row "Score" column of "table" table should contain "0"
And "4" row "Score" column of "table" table should contain "1" And "4" row "Score" column of "table" table should contain "1"
And I am on the "Course 1" course page logged in as teacher1 And I am on the "Course 1" "grades > User report > View" page logged in as "teacher1"
And I navigate to "View > User report" in the course gradebook
And I click on "Student 1" in the "user" search widget And I click on "Student 1" in the "user" search widget
Then the following should exist in the "user-grade" table: Then the following should exist in the "user-grade" table:
| Grade item | Grade | Percentage | | Grade item | Grade | Percentage |

View file

@ -30,8 +30,7 @@ Feature: View activity completion information in the LTI activity
Given I am on the "Music history" "lti activity" page logged in as student1 Given I am on the "Music history" "lti activity" page logged in as student1
And the "View" completion condition of "Music history" is displayed as "done" And the "View" completion condition of "Music history" is displayed as "done"
And the "Receive a grade" completion condition of "Music history" is displayed as "todo" And the "Receive a grade" completion condition of "Music history" is displayed as "todo"
And I am on the "Course 1" course page logged in as teacher1 And I am on the "Course 1" "grades > Grader report > View" page logged in as "teacher1"
And I navigate to "View > Grader report" in the course gradebook
And I turn editing mode on And I turn editing mode on
And I give the grade "90.00" to the user "Vinnie Student1" for the grade item "Music history" And I give the grade "90.00" to the user "Vinnie Student1" for the grade item "Music history"
And I press "Save changes" And I press "Save changes"

View file

@ -33,8 +33,7 @@ Feature: Pass grade activity completion information in the LTI activity
And the "View" completion condition of "Music history" is displayed as "done" And the "View" completion condition of "Music history" is displayed as "done"
And the "Receive a grade" completion condition of "Music history" is displayed as "todo" And the "Receive a grade" completion condition of "Music history" is displayed as "todo"
And the "Receive a passing grade" completion condition of "Music history" is displayed as "todo" And the "Receive a passing grade" completion condition of "Music history" is displayed as "todo"
And I am on the "Course 1" course page logged in as teacher1 And I am on the "Course 1" "grades > Grader report > View" page logged in as "teacher1"
And I navigate to "View > Grader report" in the course gradebook
And I turn editing mode on And I turn editing mode on
And I give the grade "90.00" to the user "Vinnie Student1" for the grade item "Music history" And I give the grade "90.00" to the user "Vinnie Student1" for the grade item "Music history"
And I give the grade "20.00" to the user "Vinnie Student2" for the grade item "Music history" And I give the grade "20.00" to the user "Vinnie Student2" for the grade item "Music history"

View file

@ -22,18 +22,15 @@ Feature: The student can navigate to their grades page and user grade report.
| teacher1 | C1 | editingteacher | | teacher1 | C1 | editingteacher |
| student1 | C2 | student | | student1 | C2 | student |
And the following "activities" exist: And the following "activities" exist:
| activity | course | idnumber | name | intro | grade | | activity | course | idnumber | name | grade |
| assign | C1 | a1 | Test assignment one | Submit something! | 300 | | assign | C1 | a1 | Test assignment one | 300 |
| assign | C1 | a2 | Test assignment two | Submit something! | 100 | | assign | C1 | a2 | Test assignment two | 100 |
| assign | C1 | a3 | Test assignment three | Submit something! | 150 | | assign | C1 | a3 | Test assignment three | 150 |
| assign | C2 | a4 | Test assignment four | Submit something! | 150 | | assign | C2 | a4 | Test assignment four | 150 |
And I am on the "Course 1" course page logged in as teacher1 And the following "grade grades" exist:
And I navigate to "View > Grader report" in the course gradebook | gradeitem | user | grade |
And I turn editing mode on | Test assignment one | student1 | 150.00 |
And I give the grade "150.00" to the user "Student 1" for the grade item "Test assignment one" | Test assignment two | student1 | 67.00 |
And I give the grade "67.00" to the user "Student 1" for the grade item "Test assignment two"
And I press "Save changes"
And I log out
Scenario: Navigation to Grades and the user grade report. Scenario: Navigation to Grades and the user grade report.
When I log in as "student1" When I log in as "student1"