From 44f460c32ac22778e4e9a18707d98d0158d67fbd Mon Sep 17 00:00:00 2001 From: Marina Glancy Date: Tue, 6 Dec 2016 11:30:51 +0800 Subject: [PATCH] MDL-56614 behat: rename step for navigating in the gradebook --- .../behat/tests/behat/data_generators.feature | 8 +-- .../tests/behat/backup_user_data.feature | 2 +- .../tests/behat/addblockinactivity.feature | 2 +- .../behat/highscoreswithoutgroups.feature | 2 +- .../tests/behat/highscoreswithscales.feature | 4 +- .../highscoreswithscalesandgroups.feature | 4 +- .../highscoreswithseperategroups.feature | 2 +- .../behat/highscoreswithvisiblegroups.feature | 2 +- .../behat/lowscoreswithoutgroups.feature | 2 +- .../tests/behat/lowscoreswithscales.feature | 4 +- .../lowscoreswithscalesandgroups.feature | 4 +- .../behat/lowscoreswithseperategroups.feature | 2 +- .../behat/lowscoreswithvisiblegroups.feature | 2 +- grade/export/txt/tests/behat/export.feature | 10 ++-- grade/export/xml/tests/behat/export.feature | 4 +- .../grader/tests/behat/ajax_grader.feature | 16 ++--- .../grader/tests/behat/switch_views.feature | 6 +- .../tests/behat/basic_functionality.feature | 4 +- .../tests/behat/bulk_insert_grades.feature | 8 +-- .../singleview/tests/behat/singleview.feature | 8 +-- .../report/user/tests/behat/user_view.feature | 28 ++++----- .../user/tests/behat/view_usereport.feature | 2 +- grade/tests/behat/grade_UI_settings.feature | 8 +-- grade/tests/behat/grade_aggregation.feature | 58 +++++++++---------- .../behat/grade_aggregation_changes.feature | 26 ++++----- grade/tests/behat/grade_average.feature | 10 ++-- .../grade_calculated_grade_items.feature | 32 +++++----- ...de_calculated_grade_items_20150627.feature | 32 +++++----- .../behat/grade_calculated_weights.feature | 26 ++++----- .../behat/grade_category_validation.feature | 14 ++--- ...ade_contribution_with_extra_credit.feature | 10 ++-- .../behat/grade_grade_minmax_change.feature | 14 ++--- grade/tests/behat/grade_hidden_items.feature | 6 +- .../tests/behat/grade_item_validation.feature | 14 ++--- .../tests/behat/grade_letter_boundary.feature | 6 +- .../grade_letter_boundary_20160518.feature | 6 +- grade/tests/behat/grade_mingrade.feature | 10 ++-- grade/tests/behat/grade_minmax.feature | 22 +++---- .../behat/grade_natural_exclude_empty.feature | 42 +++++++------- ...ade_natural_exclude_empty_20150619.feature | 42 +++++++------- .../behat/grade_natural_normalisation.feature | 2 +- ...ade_natural_normalisation_20150619.feature | 2 +- .../tests/behat/grade_override_letter.feature | 2 +- grade/tests/behat/grade_scales.feature | 16 ++--- .../behat/grade_scales_aggregation.feature | 12 ++-- .../behat/grade_single_item_scales.feature | 16 ++--- grade/tests/behat/grade_to_pass.feature | 18 +++--- grade/tests/behat/grade_view.feature | 8 +-- .../tests/behat/steps_blind_marking.feature | 16 ++--- .../tests/behat/user_grade_navigation.feature | 2 +- 50 files changed, 299 insertions(+), 299 deletions(-) diff --git a/admin/tool/behat/tests/behat/data_generators.feature b/admin/tool/behat/tests/behat/data_generators.feature index e4715183fa7..5560c833be8 100644 --- a/admin/tool/behat/tests/behat/data_generators.feature +++ b/admin/tool/behat/tests/behat/data_generators.feature @@ -322,7 +322,7 @@ Feature: Set up contextual data for tests When I log in as "admin" And I am on course index And I follow "Course 1" - And I go to "View > Grader report" in the course gradebook + And I navigate to "View > Grader report" in the course gradebook Then I should see "Grade category 1" And I should see "Grade sub category 2" @@ -346,7 +346,7 @@ Feature: Set up contextual data for tests When I log in as "admin" And I am on site homepage And I follow "Course 1" - And I go to "Setup > Gradebook setup" in the course gradebook + And I navigate to "Setup > Gradebook setup" in the course gradebook Then I should see "Test Grade Item 1" And I follow "Edit Test Grade Item 1" And I expand all fieldsets @@ -375,7 +375,7 @@ Feature: Set up contextual data for tests When I log in as "admin" And I am on site homepage And I follow "Course 1" - And I go to "Scales" in the course gradebook + And I navigate to "Scales" in the course gradebook Then I should see "Test Scale 1" And I should see "Disappointing, Good, Very good, Excellent" @@ -426,7 +426,7 @@ Feature: Set up contextual data for tests When I log in as "admin" And I am on site homepage And I follow "Course 1" - And I go to "Setup > Gradebook setup" in the course gradebook + And I navigate to "Setup > Gradebook setup" in the course gradebook Then I should see "Test Outcome Grade Item 1" And I follow "Edit Test Outcome Grade Item 1" And the field "Outcome" matches value "Grade outcome 1" diff --git a/admin/tool/recyclebin/tests/behat/backup_user_data.feature b/admin/tool/recyclebin/tests/behat/backup_user_data.feature index 9f18cbd5ade..31065d0ae95 100644 --- a/admin/tool/recyclebin/tests/behat/backup_user_data.feature +++ b/admin/tool/recyclebin/tests/behat/backup_user_data.feature @@ -65,6 +65,6 @@ Feature: Backup user data And I log out And I log in as "student1" And I follow "Course 1" - When I go to "User report" in the course gradebook + When I navigate to "User report" in the course gradebook Then "Quiz 1" row "Grade" column of "user-grade" table should contain "5" And "Quiz 1" row "Percentage" column of "user-grade" table should contain "50" diff --git a/blocks/activity_results/tests/behat/addblockinactivity.feature b/blocks/activity_results/tests/behat/addblockinactivity.feature index ef51f1eb85b..7af21b1a1c1 100644 --- a/blocks/activity_results/tests/behat/addblockinactivity.feature +++ b/blocks/activity_results/tests/behat/addblockinactivity.feature @@ -50,7 +50,7 @@ Feature: The activity results block displays student scores And I press "Save and return to course" And I follow "Course 1" And I should see "Test page name" - And I go 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 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" diff --git a/blocks/activity_results/tests/behat/highscoreswithoutgroups.feature b/blocks/activity_results/tests/behat/highscoreswithoutgroups.feature index b99eba42b5a..4a2a8bc5826 100644 --- a/blocks/activity_results/tests/behat/highscoreswithoutgroups.feature +++ b/blocks/activity_results/tests/behat/highscoreswithoutgroups.feature @@ -32,7 +32,7 @@ Feature: The activity results block displays student scores | Description | Offline text | | assignsubmission_file_enabled | 0 | And I follow "Course 1" - And I go 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 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" diff --git a/blocks/activity_results/tests/behat/highscoreswithscales.feature b/blocks/activity_results/tests/behat/highscoreswithscales.feature index 451c12980af..86dee32ce06 100644 --- a/blocks/activity_results/tests/behat/highscoreswithscales.feature +++ b/blocks/activity_results/tests/behat/highscoreswithscales.feature @@ -26,7 +26,7 @@ Feature: The activity results block displays student scores as scales | student5 | C1 | student | And I log in as "teacher1" And I follow "Course 1" - And I go to "Scales" in the course gradebook + And I navigate to "Scales" in the course gradebook And I press "Add a new scale" And I set the following fields to these values: | Name | My Scale | @@ -41,7 +41,7 @@ Feature: The activity results block displays student scores as scales | id_grade_modgrade_type | Scale | | id_grade_modgrade_scale | My Scale | And I follow "Course 1" - And I go 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 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" diff --git a/blocks/activity_results/tests/behat/highscoreswithscalesandgroups.feature b/blocks/activity_results/tests/behat/highscoreswithscalesandgroups.feature index e1f85aafacb..536a00ecec7 100644 --- a/blocks/activity_results/tests/behat/highscoreswithscalesandgroups.feature +++ b/blocks/activity_results/tests/behat/highscoreswithscalesandgroups.feature @@ -43,7 +43,7 @@ Feature: The activity results block displays student scores as scales | student6 | G3 | And I log in as "teacher1" And I follow "Course 1" - And I go to "Scales" in the course gradebook + And I navigate to "Scales" in the course gradebook And I press "Add a new scale" And I set the following fields to these values: | Name | My Scale | @@ -59,7 +59,7 @@ Feature: The activity results block displays student scores as scales | id_grade_modgrade_scale | My Scale | | Group mode | Separate groups | And I follow "Course 1" - And I go 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 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" diff --git a/blocks/activity_results/tests/behat/highscoreswithseperategroups.feature b/blocks/activity_results/tests/behat/highscoreswithseperategroups.feature index e0b81c0d852..c764e806222 100644 --- a/blocks/activity_results/tests/behat/highscoreswithseperategroups.feature +++ b/blocks/activity_results/tests/behat/highscoreswithseperategroups.feature @@ -50,7 +50,7 @@ Feature: The activity results block displays student scores | assignsubmission_file_enabled | 0 | | Group mode | Separate groups | And I follow "Course 1" - And I go 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 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" diff --git a/blocks/activity_results/tests/behat/highscoreswithvisiblegroups.feature b/blocks/activity_results/tests/behat/highscoreswithvisiblegroups.feature index 4abf7216c1e..bf10d7943b0 100644 --- a/blocks/activity_results/tests/behat/highscoreswithvisiblegroups.feature +++ b/blocks/activity_results/tests/behat/highscoreswithvisiblegroups.feature @@ -50,7 +50,7 @@ Feature: The activity results block displays student scores | assignsubmission_file_enabled | 0 | | Group mode | Visible groups | And I follow "Course 1" - And I go 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 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" diff --git a/blocks/activity_results/tests/behat/lowscoreswithoutgroups.feature b/blocks/activity_results/tests/behat/lowscoreswithoutgroups.feature index 8e153e68180..a1496c6e29e 100644 --- a/blocks/activity_results/tests/behat/lowscoreswithoutgroups.feature +++ b/blocks/activity_results/tests/behat/lowscoreswithoutgroups.feature @@ -32,7 +32,7 @@ Feature: The activity results block displays student scores | Description | Offline text | | assignsubmission_file_enabled | 0 | And I follow "Course 1" - And I go 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 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" diff --git a/blocks/activity_results/tests/behat/lowscoreswithscales.feature b/blocks/activity_results/tests/behat/lowscoreswithscales.feature index b13cd8d991b..587f863a53d 100644 --- a/blocks/activity_results/tests/behat/lowscoreswithscales.feature +++ b/blocks/activity_results/tests/behat/lowscoreswithscales.feature @@ -26,7 +26,7 @@ Feature: The activity results block displays student scores as scales | student5 | C1 | student | And I log in as "teacher1" And I follow "Course 1" - And I go to "Scales" in the course gradebook + And I navigate to "Scales" in the course gradebook And I press "Add a new scale" And I set the following fields to these values: | Name | My Scale | @@ -41,7 +41,7 @@ Feature: The activity results block displays student scores as scales | id_grade_modgrade_type | Scale | | id_grade_modgrade_scale | My Scale | And I follow "Course 1" - And I go 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 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" diff --git a/blocks/activity_results/tests/behat/lowscoreswithscalesandgroups.feature b/blocks/activity_results/tests/behat/lowscoreswithscalesandgroups.feature index 54e72a987ec..f43348e814a 100644 --- a/blocks/activity_results/tests/behat/lowscoreswithscalesandgroups.feature +++ b/blocks/activity_results/tests/behat/lowscoreswithscalesandgroups.feature @@ -43,7 +43,7 @@ Feature: The activity results block displays student scores as scales | student6 | G3 | And I log in as "teacher1" And I follow "Course 1" - And I go to "Scales" in the course gradebook + And I navigate to "Scales" in the course gradebook And I press "Add a new scale" And I set the following fields to these values: | Name | My Scale | @@ -59,7 +59,7 @@ Feature: The activity results block displays student scores as scales | id_grade_modgrade_scale | My Scale | | Group mode | Separate groups | And I follow "Course 1" - And I go 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 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" diff --git a/blocks/activity_results/tests/behat/lowscoreswithseperategroups.feature b/blocks/activity_results/tests/behat/lowscoreswithseperategroups.feature index 1c8451b7789..640517edb93 100644 --- a/blocks/activity_results/tests/behat/lowscoreswithseperategroups.feature +++ b/blocks/activity_results/tests/behat/lowscoreswithseperategroups.feature @@ -50,7 +50,7 @@ Feature: The activity results block displays student scores | assignsubmission_file_enabled | 0 | | Group mode | Separate groups | And I follow "Course 1" - And I go 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 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" diff --git a/blocks/activity_results/tests/behat/lowscoreswithvisiblegroups.feature b/blocks/activity_results/tests/behat/lowscoreswithvisiblegroups.feature index 4d53ab6f866..2010dcddcf9 100644 --- a/blocks/activity_results/tests/behat/lowscoreswithvisiblegroups.feature +++ b/blocks/activity_results/tests/behat/lowscoreswithvisiblegroups.feature @@ -50,7 +50,7 @@ Feature: The activity results block displays student scores | assignsubmission_file_enabled | 0 | | Group mode | Visible groups | And I follow "Course 1" - And I go 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 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" diff --git a/grade/export/txt/tests/behat/export.feature b/grade/export/txt/tests/behat/export.feature index f6e84a59bd5..ea92bf6ae29 100644 --- a/grade/export/txt/tests/behat/export.feature +++ b/grade/export/txt/tests/behat/export.feature @@ -22,14 +22,14 @@ Feature: I need to export grades as text | assign | C1 | a2 | Test assignment name 2 | Submit your online text | 1 | And I log in as "teacher1" And I follow "Course 1" - And I go 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 give the grade "80.00" to the user "Student 1" for the grade item "Test assignment name" And I press "Save changes" @javascript Scenario: Export grades as text - When I go to "Export > Plain text file" in the course gradebook + When I navigate to "Export > Plain text file" in the course gradebook And I expand all fieldsets And I click on "Course total" "checkbox" And I set the field "Grade export decimal points" to "1" @@ -41,7 +41,7 @@ Feature: I need to export grades as text @javascript Scenario: Export grades as text using real - When I go to "Export > Plain text file" in the course gradebook + When I navigate to "Export > Plain text file" in the course gradebook And I expand all fieldsets And I set the following fields to these values: | Real | 1 | @@ -52,7 +52,7 @@ Feature: I need to export grades as text @javascript Scenario: Export grades as text using percentages and letters - When I go to "Export > Plain text file" in the course gradebook + When I navigate to "Export > Plain text file" in the course gradebook And I set the following fields to these values: | Percentage | 1 | | Letter | 1 | @@ -65,7 +65,7 @@ Feature: I need to export grades as text @javascript Scenario: Export grades as text using real, percentages and letters - When I go to "Export > Plain text file" in the course gradebook + When I navigate to "Export > Plain text file" in the course gradebook And I set the following fields to these values: | Real | 1 | | Percentage | 1 | diff --git a/grade/export/xml/tests/behat/export.feature b/grade/export/xml/tests/behat/export.feature index abc0e70a051..9e6450a0181 100644 --- a/grade/export/xml/tests/behat/export.feature +++ b/grade/export/xml/tests/behat/export.feature @@ -21,14 +21,14 @@ Feature: I need to export grades as xml | assign | C1 | a1 | Test assignment name | Submit something! | And I log in as "teacher1" And I follow "Course 1" - And I go 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 give the grade "80.00" to the user "Student 1" for the grade item "Test assignment name" And I press "Save changes" @javascript Scenario: Export grades as text - When I go to "Export > XML file" in the course gradebook + When I navigate to "Export > XML file" in the course gradebook And I expand all fieldsets And I set the field "Grade export decimal points" to "1" And I press "Download" diff --git a/grade/report/grader/tests/behat/ajax_grader.feature b/grade/report/grader/tests/behat/ajax_grader.feature index b75a92f1af8..e274a36ef94 100644 --- a/grade/report/grader/tests/behat/ajax_grader.feature +++ b/grade/report/grader/tests/behat/ajax_grader.feature @@ -55,7 +55,7 @@ Feature: Using the AJAX grading feature of Grader report to update grades and fe | grade_report_showquickfeedback | 0 | And I log in as "teacher1" And I follow "Course 1" - And I go to "View > Grader report" in the course gradebook + And I navigate to "View > Grader report" in the course gradebook And I click on student "Student 2" for grade item "Item VU" Then I should see a grade field for "Student 2" and grade item "Item VU" And I should not see a feedback field for "Student 2" and grade item "Item VU" @@ -93,7 +93,7 @@ Feature: Using the AJAX grading feature of Grader report to update grades and fe And the following should exist in the "user-grades" table: | -1- | -16- | | Student 1 | 90.00 | - And I go to "View > Grader report" in the course gradebook + And I navigate to "View > Grader report" in the course gradebook And the following should exist in the "user-grades" table: | -1- | -6- | -7- | -13- | -16- | | Student 1 | - | - | - | 90.00 | @@ -107,7 +107,7 @@ Feature: Using the AJAX grading feature of Grader report to update grades and fe | grade_report_showquickfeedback | 1 | And I log in as "teacher1" And I follow "Course 1" - And I go to "View > Grader report" in the course gradebook + And I navigate to "View > Grader report" in the course gradebook And I click on student "Student 2" for grade item "Item VU" Then I should see a grade field for "Student 2" and grade item "Item VU" And I should see a feedback field for "Student 2" and grade item "Item VU" @@ -127,8 +127,8 @@ Feature: Using the AJAX grading feature of Grader report to update grades and fe And I set the field "ajaxfeedback" to "Student 2 SU feedback" And I press key "13" in the field "ajaxfeedback" # Reload grader report: - And I go to "View > User report" in the course gradebook - And I go to "View > Grader report" in the course gradebook + And I navigate to "View > User report" in the course gradebook + And I navigate to "View > Grader report" in the course gradebook And the following should exist in the "user-grades" table: | -1- | -7- | -13- | -16- | | Student 2 | 33.00 | Very good | 36.00 | @@ -144,7 +144,7 @@ Feature: Using the AJAX grading feature of Grader report to update grades and fe | grade_report_showquickfeedback | 1 | And I log in as "teacher1" And I follow "Course 1" - And I go to "View > Grader report" in the course gradebook + And I navigate to "View > Grader report" in the course gradebook And I click on student "Student 2" for grade item "Item VU" Then I should see a grade field for "Student 2" and grade item "Item VU" And I should see a feedback field for "Student 2" and grade item "Item VU" @@ -164,7 +164,7 @@ Feature: Using the AJAX grading feature of Grader report to update grades and fe | grade_report_showquickfeedback | 1 | And I log in as "teacher1" And I follow "Course 1" - And I go 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 Then I should not see a grade field for "Student 2" and grade item "Item VL" And I should not see a feedback field for "Student 2" and grade item "Item VL" @@ -195,7 +195,7 @@ Feature: Using the AJAX grading feature of Grader report to update grades and fe | grade_report_showquickfeedback | 1 | And I log in as "teacher1" And I follow "Course 1" - And I go 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 change window size to "large" And I set "=[[i1]] + [[i3]] + [[gsc]]" calculation for grade item "Calc Item" with idnumbers: diff --git a/grade/report/grader/tests/behat/switch_views.feature b/grade/report/grader/tests/behat/switch_views.feature index d2256900d3e..775f455c05b 100644 --- a/grade/report/grader/tests/behat/switch_views.feature +++ b/grade/report/grader/tests/behat/switch_views.feature @@ -46,7 +46,7 @@ Feature: We can change what we are viewing on the grader report And I log out And I log in as "teacher1" And I follow "Course 1" - And I go 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 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" @@ -60,7 +60,7 @@ Feature: We can change what we are viewing on the grader report And I open "Test assignment name 2" actions menu And I click on "Hide" "link" in the "Test assignment name 2" activity And I follow "Course 1" - And I go to "View > Grader report" in the course gradebook + And I navigate to "View > Grader report" in the course gradebook And I should see "Test assignment name 1" And I should see "Test assignment name 2" And I should see "Course total" @@ -96,7 +96,7 @@ Feature: We can change what we are viewing on the grader report And I log out And I log in as "teacher1" And I follow "Course 1" - And I go to "View > Grader report" in the course gradebook + And I navigate to "View > Grader report" in the course gradebook And I should see "Test assignment name 1" And I should see "Test assignment name 2" And I should see "Course total" diff --git a/grade/report/history/tests/behat/basic_functionality.feature b/grade/report/history/tests/behat/basic_functionality.feature index 8245157ad66..3704c3ad420 100644 --- a/grade/report/history/tests/behat/basic_functionality.feature +++ b/grade/report/history/tests/behat/basic_functionality.feature @@ -30,7 +30,7 @@ Feature: A teacher checks the grade history report in a course And I add a "Assignment" to section "1" and I fill the form with: | Assignment name | Rewarding assignment | | Description | After writing your behat test go grab a beer! | - And I go 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 give the grade "50.00" to the user "Student 1" for the grade item "The greatest assignment ever" And I give the grade "60.00" to the user "Student 1" for the grade item "Rewarding assignment" @@ -40,7 +40,7 @@ Feature: A teacher checks the grade history report in a course And I log out And I log in as "teacher2" And I follow "Course 1" - And I go 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 give the grade "70.00" to the user "Student 1" for the grade item "The greatest assignment ever" And I give the grade "80.00" to the user "Student 1" for the grade item "Rewarding assignment" diff --git a/grade/report/singleview/tests/behat/bulk_insert_grades.feature b/grade/report/singleview/tests/behat/bulk_insert_grades.feature index f6b05464aa5..47e7a7ab26f 100644 --- a/grade/report/singleview/tests/behat/bulk_insert_grades.feature +++ b/grade/report/singleview/tests/behat/bulk_insert_grades.feature @@ -33,14 +33,14 @@ Feature: We can bulk insert grades for students in a course Given I log in as "teacher1" And I follow "Course 1" And I follow "Test assignment one" - And I navigate to "View all submissions" in current page administration + And I go to "View all submissions" in current page administration And I click on "Grade" "link" in the "Student 1" "table_row" And I set the following fields to these values: | Grade out of 100 | 50 | And I press "Save changes" And I press "Ok" And I follow "Course 1" - And I go to "View > Grader report" in the course gradebook + And I navigate to "View > Grader report" in the course gradebook And I follow "Single view for Test assignment one" Then the field "Grade for james (Student) 1" matches value "50.00" And the field "Override for james (Student) 1" matches value "0" @@ -74,14 +74,14 @@ Feature: We can bulk insert grades for students in a course Given I log in as "teacher1" And I follow "Course 1" And I follow "Test assignment two" - And I navigate to "View all submissions" in current page administration + And I go to "View all submissions" in current page administration And I click on "Grade" "link" in the "Student 1" "table_row" And I set the following fields to these values: | Grade out of 100 | 50 | And I press "Save changes" And I press "Ok" And I follow "Course 1" - And I go to "View > Grader report" in the course gradebook + And I navigate to "View > Grader report" in the course gradebook # And I click on "input[title='Dock Navigation block']" "css_element" # And I click on "input[title='Dock Administration block']" "css_element" And I follow "Single view for Test assignment two" diff --git a/grade/report/singleview/tests/behat/singleview.feature b/grade/report/singleview/tests/behat/singleview.feature index 7b77cdabaa6..cd1774fd9a2 100644 --- a/grade/report/singleview/tests/behat/singleview.feature +++ b/grade/report/singleview/tests/behat/singleview.feature @@ -52,11 +52,11 @@ Feature: We can use Single view | gradereport/singleview:view | Allow | teacher | Course | C1 | And I log in as "teacher1" And I follow "Course 1" - Given I go to "View > Grader report" in the course gradebook + Given I navigate to "View > Grader report" in the course gradebook @javascript Scenario: I can update grades, add feedback and exclude grades. - Given I go to "View > Single view" in the course gradebook + Given I navigate to "View > Single view" in the course gradebook And I select "Student 4" from the "Select user..." singleselect And I set the field "Override for Test assignment one" to "1" When I set the following fields to these values: @@ -97,7 +97,7 @@ Feature: We can use Single view And I log out And I log in as "teacher2" And I follow "Course 1" - Given I go to "View > Single view" in the course gradebook + Given I navigate to "View > Single view" in the course gradebook And I click on "Student 4" "option" And the "Exclude for Test assignment one" "checkbox" should be disabled And the "Override for Test assignment one" "checkbox" should be enabled @@ -105,7 +105,7 @@ Feature: We can use Single view Scenario: Single view links work on grade report. Given I follow "Single view for Test assignment one" Then I should see "Test assignment one" - Then I go to "View > Grader report" in the course gradebook + Then I navigate to "View > Grader report" in the course gradebook And I follow "Single view for Student 1" Then I should see "Student 1" diff --git a/grade/report/user/tests/behat/user_view.feature b/grade/report/user/tests/behat/user_view.feature index 5ce38e0af87..e54ac6f187e 100644 --- a/grade/report/user/tests/behat/user_view.feature +++ b/grade/report/user/tests/behat/user_view.feature @@ -32,10 +32,10 @@ Feature: View the user report as the student will see it | assign | C1 | a6 | Test assignment six | Submit something! | 100 | And I log in as "teacher1" And I follow "Course 1" - And I go to "Setup > Gradebook setup" in the course gradebook + 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 "Sub category 2" - And I go 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 change window size to "large" And I give the grade "80.00" to the user "Student 1" for the grade item "Test assignment one" @@ -48,7 +48,7 @@ Feature: View the user report as the student will see it And I change window size to "medium" Scenario: View the report as the teacher themselves - When I go to "View > User report" in the course gradebook + When I navigate to "View > User report" in the course gradebook And I select "Student 1" from the "Select all or one user" singleselect And I select "Myself" from the "View report as" singleselect Then the following should exist in the "user-grade" table: @@ -64,7 +64,7 @@ Feature: View the user report as the student will see it | Course total | - | 383.00 | 0–600 | 63.83 % | - | Scenario: View the report as the student from both the teachers and students perspective - When I go to "View > User report" in the course gradebook + When I navigate to "View > User report" in the course gradebook And I select "Student 1" from the "Select all or one user" singleselect And I select "User" from the "View report as" singleselect Then the following should exist in the "user-grade" table: @@ -83,7 +83,7 @@ Feature: View the user report as the student will see it And I log out And I log in as "student1" And I follow "Course 1" - And I go to "User report" in the course gradebook + And I navigate to "User report" in the course gradebook Then the following should exist in the "user-grade" table: | Grade item | Calculated weight | Grade | Range | Percentage | Contribution to course total | | Test assignment one | - | 80.00 | 0–100 | 80.00 % | - | @@ -99,10 +99,10 @@ Feature: View the user report as the student will see it | Test assignment six | Scenario: View the report as the student from both the teachers and students perspective with totals excluding hidden - Given I go to "Setup > Course grade settings" in the course gradebook + Given I navigate to "Setup > Course grade settings" in the course gradebook And I set the field with xpath "//select[@name='report_user_showtotalsifcontainhidden']" to "Show totals excluding hidden items" And I press "Save changes" - And I go to "View > User report" in the course gradebook + And I navigate to "View > User report" in the course gradebook When I select "Student 1" from the "Select all or one user" singleselect And I select "User" from the "View report as" singleselect Then the following should exist in the "user-grade" table: @@ -121,7 +121,7 @@ Feature: View the user report as the student will see it And I log out And I log in as "student1" And I follow "Course 1" - And I go to "User report" in the course gradebook + And I navigate to "User report" in the course gradebook Then the following should exist in the "user-grade" table: | Grade item | Calculated weight | Grade | Range | Percentage | Contribution to course total | | Test assignment one | 50.00 % | 80.00 | 0–100 | 80.00 % | 26.67 % | @@ -137,10 +137,10 @@ Feature: View the user report as the student will see it | Test assignment six | Scenario: View the report as the student from both the teachers and students perspective with totals including hidden - Given I go to "Setup > Course grade settings" in the course gradebook + Given I navigate to "Setup > Course grade settings" in the course gradebook And I set the field with xpath "//select[@name='report_user_showtotalsifcontainhidden']" to "Show totals including hidden items" And I press "Save changes" - And I go to "View > User report" in the course gradebook + And I navigate to "View > User report" in the course gradebook When I select "Student 1" from the "Select all or one user" singleselect And I select "User" from the "View report as" singleselect Then the following should exist in the "user-grade" table: @@ -159,7 +159,7 @@ Feature: View the user report as the student will see it And I log out And I log in as "student1" And I follow "Course 1" - And I go to "User report" in the course gradebook + And I navigate to "User report" in the course gradebook Then the following should exist in the "user-grade" table: | Grade item | Calculated weight | Grade | Range | Percentage | Contribution to course total | | Test assignment one | 50.00 % | 80.00 | 0–100 | 80.00 % | 13.33 % | @@ -183,10 +183,10 @@ Feature: View the user report as the student will see it And I log out And I log in as "teacher1" And I follow "Course 1" - And I go to "Setup > Course grade settings" in the course gradebook + And I navigate to "Setup > Course grade settings" in the course gradebook And I set the field with xpath "//select[@name='report_user_showtotalsifcontainhidden']" to "Show totals excluding hidden items" And I press "Save changes" - And I go to "View > User report" in the course gradebook + And I navigate to "View > User report" in the course gradebook When I select "Student 1" from the "Select all or one user" singleselect And I select "User" from the "View report as" singleselect Then the following should exist in the "user-grade" table: @@ -203,7 +203,7 @@ Feature: View the user report as the student will see it And I log out And I log in as "student1" And I follow "Course 1" - And I go to "User report" in the course gradebook + And I navigate to "User report" in the course gradebook Then the following should exist in the "user-grade" table: | Grade item | Calculated weight | Grade | Range | Percentage | Contribution to course total | | Test assignment one | 50.00 % | 80.00 | 0–100 | 80.00 % | 13.33 % | diff --git a/grade/report/user/tests/behat/view_usereport.feature b/grade/report/user/tests/behat/view_usereport.feature index 9c334f0bc64..c0bebe61d35 100644 --- a/grade/report/user/tests/behat/view_usereport.feature +++ b/grade/report/user/tests/behat/view_usereport.feature @@ -12,6 +12,6 @@ Feature: We can use the user report Given I log in as "admin" And I am on site homepage And I follow "Course 1" - And I go to "View > User report" in the course gradebook + And I navigate to "View > User report" in the course gradebook And I select "All users (0)" from the "Select all or one user" singleselect Then I should see "No students enrolled in this course yet" diff --git a/grade/tests/behat/grade_UI_settings.feature b/grade/tests/behat/grade_UI_settings.feature index e4a30701005..5661e329b05 100644 --- a/grade/tests/behat/grade_UI_settings.feature +++ b/grade/tests/behat/grade_UI_settings.feature @@ -20,7 +20,7 @@ Feature: Site settings can be used to hide parts of the gradebook UI And I log in as "admin" And I am on site homepage And I follow "Course 1" - And I go 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 @javascript @@ -32,7 +32,7 @@ Feature: Site settings can be used to hide parts of the gradebook UI And I press "Save changes" And I am on site homepage And I follow "Course 1" - And I go to "View > Grader report" in the course gradebook + And I navigate to "View > Grader report" in the course gradebook And I click on "Edit assign Assignment1" "link" And I should not see "Minimum grade" @@ -44,7 +44,7 @@ Feature: Site settings can be used to hide parts of the gradebook UI And I press "Save changes" And I am on site homepage And I follow "Course 1" - And I go to "View > Grader report" in the course gradebook + And I navigate to "View > Grader report" in the course gradebook Then "Edit calculation for Course total" "link" should not exist @javascript @@ -55,5 +55,5 @@ Feature: Site settings can be used to hide parts of the gradebook UI And I press "Save changes" And I am on site homepage And I follow "Course 1" - And I go to "View > Grader report" in the course gradebook + And I navigate to "View > Grader report" in the course gradebook And "tr .course input[type='text']" "css_element" should not exist diff --git a/grade/tests/behat/grade_aggregation.feature b/grade/tests/behat/grade_aggregation.feature index 6eccb427cce..df80dd3d24f 100644 --- a/grade/tests/behat/grade_aggregation.feature +++ b/grade/tests/behat/grade_aggregation.feature @@ -42,7 +42,7 @@ Feature: We can use calculated grade totals And I log out And I log in as "teacher1" And I follow "Course 1" - And I go 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 change window size to "large" And I give the grade "60.00" to the user "Student 1" for the grade item "Test assignment one" @@ -60,7 +60,7 @@ Feature: We can use calculated grade totals And I set the following settings for grade item "Test assignment eight": | Hidden | 1 | And I change window size to "medium" - And I go to "Setup > Course grade settings" in the course gradebook + And I navigate to "Setup > Course grade settings" in the course gradebook And I set the field "Grade display type" to "Real (percentage)" And I press "Save changes" @@ -74,7 +74,7 @@ Feature: We can use calculated grade totals | Exclude empty grades | 0 | And I turn editing mode off Then I should see "30.00 (30.00 %)" in the ".course" "css_element" - And I go to "Setup > Course grade settings" in the course gradebook + And I navigate to "Setup > Course grade settings" in the course gradebook And I set the field "Hide totals if they contain hidden items" to "Show totals excluding hidden items" And I press "Save changes" And I log out @@ -96,7 +96,7 @@ Feature: We can use calculated grade totals | Item weight | 3 | And I turn editing mode off Then I should see "27.14 (27.14 %)" in the ".course" "css_element" - And I go to "Setup > Course grade settings" in the course gradebook + And I navigate to "Setup > Course grade settings" in the course gradebook And I set the field "Hide totals if they contain hidden items" to "Show totals excluding hidden items" And I press "Save changes" And I log out @@ -116,7 +116,7 @@ Feature: We can use calculated grade totals | Extra credit | 1 | And I turn editing mode off Then I should see "45.19 (45.19 %)" in the ".course" "css_element" - And I go to "Setup > Course grade settings" in the course gradebook + And I navigate to "Setup > Course grade settings" in the course gradebook And I set the field "Hide totals if they contain hidden items" to "Show totals excluding hidden items" And I press "Save changes" And I log out @@ -136,7 +136,7 @@ Feature: We can use calculated grade totals | Extra credit weight | 2 | And I turn editing mode off Then I should see "42.50 (42.50 %)" in the ".course" "css_element" - And I go to "Setup > Course grade settings" in the course gradebook + And I navigate to "Setup > Course grade settings" in the course gradebook And I set the field "Hide totals if they contain hidden items" to "Show totals excluding hidden items" And I press "Save changes" And I log out @@ -154,7 +154,7 @@ Feature: We can use calculated grade totals | Exclude empty grades | 0 | And I turn editing mode off Then I should see "26.67 (26.67 %)" in the ".course" "css_element" - And I go to "Setup > Course grade settings" in the course gradebook + And I navigate to "Setup > Course grade settings" in the course gradebook And I set the field "Hide totals if they contain hidden items" to "Show totals excluding hidden items" And I press "Save changes" And I log out @@ -176,7 +176,7 @@ Feature: We can use calculated grade totals | Hidden | 1 | And I turn editing mode off Then I should see "0.00 (0.00 %)" in the ".course" "css_element" - And I go to "Setup > Course grade settings" in the course gradebook + And I navigate to "Setup > Course grade settings" in the course gradebook And I set the field "Hide totals if they contain hidden items" to "Show totals excluding hidden items" And I press "Save changes" And I log out @@ -196,7 +196,7 @@ Feature: We can use calculated grade totals | Hidden | 1 | And I turn editing mode off Then I should see "50.00 (50.00 %)" in the ".course" "css_element" - And I go to "Setup > Course grade settings" in the course gradebook + And I navigate to "Setup > Course grade settings" in the course gradebook And I set the field "Hide totals if they contain hidden items" to "Show totals excluding hidden items" And I press "Save changes" And I log out @@ -216,7 +216,7 @@ Feature: We can use calculated grade totals | Hidden | 1 | And I turn editing mode off Then I should see "50.00 (50.00 %)" in the ".course" "css_element" - And I go to "Setup > Course grade settings" in the course gradebook + And I navigate to "Setup > Course grade settings" in the course gradebook And I set the field "Hide totals if they contain hidden items" to "Show totals excluding hidden items" And I press "Save changes" And I log out @@ -236,15 +236,15 @@ Feature: We can use calculated grade totals And the following "grade items" exist: | itemname | course | outcome | gradetype | scale | | Test outcome item one | C1 | OT1 | Scale | Test Scale | - And I go 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 "Course 1": | Aggregation | Natural | | Include outcomes in aggregation | 1 | | Exclude empty grades | 0 | - And I go to "View > Grader report" in the course gradebook + And I navigate to "View > Grader report" in the course gradebook And I give the grade "Excellent" to the user "Student 1" for the grade item "Test outcome item one" And I press "Save changes" - And I go to "Setup > Course grade settings" in the course gradebook + And I navigate to "Setup > Course grade settings" in the course gradebook And I set the field "report_overview_showtotalsifcontainhidden" to "Show totals excluding hidden items" And I set the field "report_user_showtotalsifcontainhidden" to "Show totals excluding hidden items" And I press "Save changes" @@ -257,7 +257,7 @@ Feature: We can use calculated grade totals And I log out And I log in as "teacher1" And I follow "Course 1" - And I go 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 outcome item one": | Extra credit | 1 | And I log out @@ -269,7 +269,7 @@ Feature: We can use calculated grade totals And I log out And I log in as "teacher1" And I follow "Course 1" - And I go 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 "Course 1": | Aggregation | Natural | | Include outcomes in aggregation | 0 | @@ -292,7 +292,7 @@ Feature: We can use calculated grade totals And the following "grade items" exist: | itemname | course | outcome | gradetype | scale | | Test outcome item one | C1 | OT1 | Scale | Test Scale | - And I go 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 "Course 1": | Aggregation | Natural | | Include outcomes in aggregation | 1 | @@ -300,10 +300,10 @@ Feature: We can use calculated grade totals And I set the following settings for grade item "Test outcome item one": | Weight adjusted | 1 | | aggregationcoef2 | 100 | - And I go to "View > Grader report" in the course gradebook + And I navigate to "View > Grader report" in the course gradebook And I give the grade "Excellent" to the user "Student 1" for the grade item "Test outcome item one" And I press "Save changes" - And I go to "Setup > Course grade settings" in the course gradebook + And I navigate to "Setup > Course grade settings" in the course gradebook And I set the field "report_overview_showtotalsifcontainhidden" to "Show totals excluding hidden items" And I set the field "report_user_showtotalsifcontainhidden" to "Show totals excluding hidden items" And I press "Save changes" @@ -331,13 +331,13 @@ Feature: We can use calculated grade totals | Extra credit | 1 | And I turn editing mode off Then I should see "152.68 (24.43 %)" in the ".course" "css_element" - And I go to "Setup > Course grade settings" in the course gradebook + And I navigate to "Setup > Course grade settings" in the course gradebook And I set the field "report_overview_showtotalsifcontainhidden" to "Show totals excluding hidden items" And I set the field "report_user_showtotalsifcontainhidden" to "Show totals excluding hidden items" And I set the field "Show contribution to course total" to "Show" And I set the field "Show weightings" to "Show" And I press "Save changes" - And I go to "View > User report" in the course gradebook + And I navigate to "View > User report" in the course gradebook And I select "Myself" from the "View report as" singleselect And I select "Student 1" from the "Select all or one user" singleselect And the following should exist in the "user-grade" table: @@ -372,7 +372,7 @@ Feature: We can use calculated grade totals And I log in as "admin" And I am on site homepage And I follow "Course 1" - And I go 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 set the following settings for grade item "Sub category 1": | Aggregation | Natural | @@ -383,7 +383,7 @@ Feature: We can use calculated grade totals And I set the following settings for grade item "Course 1": | Aggregation | Natural | | Exclude empty grades | 0 | - And I go to "Setup > Gradebook setup" in the course gradebook + 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 | Sub category 3 | @@ -405,7 +405,7 @@ Feature: We can use calculated grade totals | Item name | Manual item 3 | | Grade category | Sub category 3 | And I press "Save changes" - And I go to "View > Grader report" in the course gradebook + And I navigate to "View > Grader report" in the course gradebook And I give the grade "60.00" to the user "Student 1" for the grade item "Manual item 1" And I give the grade "20.00" to the user "Student 1" for the grade item "Manual item 2" And I give the grade "40.00" to the user "Student 1" for the grade item "Manual item 3" @@ -439,18 +439,18 @@ Feature: We can use calculated grade totals And I press "Save changes" And I turn editing mode off And I should see "250.00 (25.25 %)" in the ".course" "css_element" - And I go to "Setup > Gradebook setup" in the course gradebook + 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 | Sub sub category 1 | | Parent category | Sub category 3 | And I press "Save changes" - And I go to "View > Grader report" in the course gradebook + And I navigate to "View > Grader report" in the course gradebook And I should see "270.00 (24.77 %)" in the ".course" "css_element" @javascript Scenario: Natural aggregation from the setup screen - And I go 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 "Course 1": | Aggregation | Natural | And I set the following settings for grade item "Sub category 1": @@ -512,7 +512,7 @@ Feature: We can use calculated grade totals | Aggregation | Natural | | Exclude empty grades | 0 | And I turn editing mode off - And I go to "Setup > Gradebook setup" in the course gradebook + And I navigate to "Setup > Gradebook setup" in the course gradebook And I set the field "Override weight of Test assignment one" to "1" And I set the field "Weight of Test assignment one" to "0" And I set the field "Override weight of Test assignment six" to "1" @@ -520,14 +520,14 @@ Feature: We can use calculated grade totals And I set the field "Override weight of Test assignment nine" to "1" And I set the field "Weight of Test assignment nine" to "100" And I press "Save changes" - And I go to "Setup > Course grade settings" in the course gradebook + And I navigate to "Setup > Course grade settings" in the course gradebook And I set the field "report_overview_showtotalsifcontainhidden" to "Show totals excluding hidden items" And I set the field "report_user_showtotalsifcontainhidden" to "Show totals excluding hidden items" And I set the field "Show contribution to course total" to "Show" And I set the field "Show weightings" to "Show" And I press "Save changes" Then I should see "75.00 (16.85 %)" in the ".course" "css_element" - And I go to "View > User report" in the course gradebook + And I navigate to "View > User report" in the course gradebook And I select "Myself" from the "View report as" singleselect And I select "Student 1" from the "Select all or one user" singleselect And the following should exist in the "user-grade" table: diff --git a/grade/tests/behat/grade_aggregation_changes.feature b/grade/tests/behat/grade_aggregation_changes.feature index 8ece3c16b80..89db8d5680e 100644 --- a/grade/tests/behat/grade_aggregation_changes.feature +++ b/grade/tests/behat/grade_aggregation_changes.feature @@ -35,7 +35,7 @@ Feature: Changing the aggregation of an item affects its weight and extra credit | 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 site homepage And I follow "Course 1" - And I go 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 follow "Edit Cat mean" And I set the following fields to these values: @@ -335,13 +335,13 @@ Feature: Changing the aggregation of an item affects its weight and extra credit @javascript Scenario: Switching grade items between categories # Move to same aggregation (Natural). - Given I go to "Setup > Gradebook setup" in the course gradebook + Given I navigate to "Setup > Gradebook setup" in the course gradebook And I set the field "Select Item a1" to "1" And I set the field "Select Item a2" to "1" And I set the field "Select Item a3" to "1" And I set the field "Select Item a4" to "1" When I select "Cat natural" from the "Move selected items to" singleselect - And I go to "View > Grader report" in the course gradebook + And I navigate to "View > Grader report" in the course gradebook And I follow "Edit Item a1" Then the field "Weight adjusted" matches value "0" And the field "Extra credit" matches value "0" @@ -361,13 +361,13 @@ Feature: Changing the aggregation of an item affects its weight and extra credit And the field "Extra credit" matches value "1" And I press "Cancel" # Move to Mean of grades (with extra credit). - And I go to "Setup > Gradebook setup" in the course gradebook + And I navigate to "Setup > Gradebook setup" in the course gradebook And I set the field "Select Item a1" to "1" And I set the field "Select Item a2" to "1" And I set the field "Select Item a3" to "1" And I set the field "Select Item a4" to "1" And I select "Cat ec" from the "Move selected items to" singleselect - And I go to "View > Grader report" in the course gradebook + And I navigate to "View > Grader report" in the course gradebook And I follow "Edit Item a1" And the field "Extra credit" matches value "0" And I press "Cancel" @@ -381,13 +381,13 @@ Feature: Changing the aggregation of an item affects its weight and extra credit And the field "Extra credit" matches value "1" And I press "Cancel" # Move to Simple weight mean of grades. - And I go to "Setup > Gradebook setup" in the course gradebook + And I navigate to "Setup > Gradebook setup" in the course gradebook And I set the field "Select Item a1" to "1" And I set the field "Select Item a2" to "1" And I set the field "Select Item a3" to "1" And I set the field "Select Item a4" to "1" And I select "Cat simple" from the "Move selected items to" singleselect - And I go to "View > Grader report" in the course gradebook + And I navigate to "View > Grader report" in the course gradebook And I follow "Edit Item a1" And the field "Extra credit" matches value "0" And I press "Cancel" @@ -401,13 +401,13 @@ Feature: Changing the aggregation of an item affects its weight and extra credit And the field "Extra credit" matches value "1" And I press "Cancel" # Move to Weighted mean of grades. - And I go to "Setup > Gradebook setup" in the course gradebook + And I navigate to "Setup > Gradebook setup" in the course gradebook And I set the field "Select Item a1" to "1" And I set the field "Select Item a2" to "1" And I set the field "Select Item a3" to "1" And I set the field "Select Item a4" to "1" And I select "Cat weighted" from the "Move selected items to" singleselect - And I go to "View > Grader report" in the course gradebook + And I navigate to "View > Grader report" in the course gradebook And I follow "Edit Item a1" And the field "Item weight" matches value "1" And I set the field "Item weight" to "2" @@ -425,14 +425,14 @@ Feature: Changing the aggregation of an item affects its weight and extra credit And I set the field "Item weight" to "11" And I press "Save changes" # Move to same (Weighted mean of grades). - And I go to "Setup > Gradebook setup" in the course gradebook + And I navigate to "Setup > Gradebook setup" in the course gradebook And I set the field "Select Item a1" to "1" And I set the field "Select Item a2" to "1" And I set the field "Select Item a3" to "1" And I set the field "Select Item a4" to "1" And I select "Cat weighted2" from the "Move selected items to" singleselect And I wait "2" seconds - And I go to "View > Grader report" in the course gradebook + And I navigate to "View > Grader report" in the course gradebook And I follow "Edit Item a1" And the field "Item weight" matches value "2" And I press "Save changes" @@ -446,13 +446,13 @@ Feature: Changing the aggregation of an item affects its weight and extra credit And the field "Item weight" matches value "11" And I press "Save changes" # Move back to Natural. - And I go to "Setup > Gradebook setup" in the course gradebook + And I navigate to "Setup > Gradebook setup" in the course gradebook And I set the field "Select Item a1" to "1" And I set the field "Select Item a2" to "1" And I set the field "Select Item a3" to "1" And I set the field "Select Item a4" to "1" And I select "Course 1" from the "Move selected items to" singleselect - And I go to "View > Grader report" in the course gradebook + And I navigate to "View > Grader report" in the course gradebook And I follow "Edit Item a1" And the field "Weight adjusted" matches value "0" And the field "Extra credit" matches value "0" diff --git a/grade/tests/behat/grade_average.feature b/grade/tests/behat/grade_average.feature index de04cee4bee..f60cfa15821 100644 --- a/grade/tests/behat/grade_average.feature +++ b/grade/tests/behat/grade_average.feature @@ -24,18 +24,18 @@ Feature: Average grades are displayed in the gradebook And I am on site homepage And I follow "Course 1" # Enable averages - And I go to "Setup > Course grade settings" in the course gradebook + And I navigate to "Setup > Course grade settings" in the course gradebook And I set the following fields to these values: | Show average | Show | And I press "Save changes" # Add a manual grade item - And I go to "Setup > Gradebook setup" in the course gradebook + And I navigate to "Setup > Gradebook setup" in the course gradebook And I press "Add grade item" And I set the following fields to these values: | Item name | Manual item 1 | And I press "Save changes" # Give all student the same grade for the manual grade item - And I go 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 give the grade "50.00" to the user "Student 1" for the grade item "Manual item 1" And I give the grade "50.00" to the user "Student 2" for the grade item "Manual item 1" @@ -51,7 +51,7 @@ Feature: Average grades are displayed in the gradebook Scenario: Grade a grade item and ensure the results display correctly in the gradebook # Check the admin grade table - And I go to "View > Grader report" in the course gradebook + And I navigate to "View > Grader report" in the course gradebook Then I should see "50.00" in the ".avg.r0.lastrow .c1" "css_element" Then I should see "50.00" in the ".avg.r0.lastrow .c2" "css_element" And I log out @@ -60,7 +60,7 @@ Feature: Average grades are displayed in the gradebook And I log in as "student1" And I am on site homepage And I follow "Course 1" - And I go to "User report" in the course gradebook + And I navigate to "User report" in the course gradebook Then I should see "50.00" in the ".level2.column-grade" "css_element" Then I should see "50.00" in the ".level2.column-average" "css_element" And I log out diff --git a/grade/tests/behat/grade_calculated_grade_items.feature b/grade/tests/behat/grade_calculated_grade_items.feature index 1f900b6c538..a8ecfae18cc 100644 --- a/grade/tests/behat/grade_calculated_grade_items.feature +++ b/grade/tests/behat/grade_calculated_grade_items.feature @@ -21,7 +21,7 @@ Feature: Calculated grade items can be used in the gradebook And I log in as "admin" And I am on site homepage And I follow "Course 1" - And I go to "Setup > Gradebook setup" in the course gradebook + And I navigate to "Setup > Gradebook setup" in the course gradebook @javascript Scenario: The max grade for a category item, with a calculation using Natural aggregation, can be changed @@ -38,11 +38,11 @@ Feature: Calculated grade items can be used in the gradebook | grade item 1 | gi1 | And I set the following settings for grade item "Calc cat": | Maximum grade | 50 | - And I go 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 give the grade "75.00" to the user "Student 1" for the grade item "grade item 1" And I press "Save changes" - And I go to "View > User report" in the course gradebook + And I navigate to "View > User report" in the course gradebook And I select "Student 1" from the "Select all or one user" singleselect And the following should exist in the "user-grade" table: | Grade item | Calculated weight | Grade | Range | Percentage | Contribution to course total | @@ -65,24 +65,24 @@ Feature: Calculated grade items can be used in the gradebook | grade item 1 | gi1 | And I set the following settings for grade item "Calc cat": | Maximum grade | 50 | - And I go to "View > Grader report" in the course gradebook + And I navigate to "View > Grader report" in the course gradebook And I press "Turn editing on" And I give the grade "75.00" to the user "Student 1" for the grade item "grade item 1" And I press "Save changes" - And I go to "View > User report" in the course gradebook + And I navigate to "View > User report" in the course gradebook And I select "Student 1" from the "Select all or one user" singleselect And the following should exist in the "user-grade" table: | Grade item | Calculated weight | Grade | Range | Percentage | Contribution to course total | | grade item 1 | - | 75.00 | 0–100 | 75.00 % | - | | Calc cat totalInclude empty grades. | 100.00 % | 37.50 | 0–50 | 75.00 % | - | | Course total | - | 37.50 | 0–50 | 75.00 % | - | - And I go 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 "Calc cat": | Maximum grade | 40 | - And I go to "View > Grader report" in the course gradebook + And I navigate to "View > Grader report" in the course gradebook And I give the grade "65.00" to the user "Student 2" for the grade item "grade item 1" And I press "Save changes" - And I go to "View > User report" in the course gradebook + And I navigate to "View > User report" in the course gradebook When I select "Student 1" from the "Select all or one user" singleselect Then the following should exist in the "user-grade" table: | Grade item | Calculated weight | Grade | Range | Percentage | Contribution to course total | @@ -95,11 +95,11 @@ Feature: Calculated grade items can be used in the gradebook | grade item 1 | - | 65.00 | 0–100 | 65.00 % | - | | Calc cat totalInclude empty grades. | 100.00 % | 32.50 | 0–40 | 81.25 % | - | | Course total | - | 32.50 | 0–40 | 81.25 % | - | - And I go to "Setup > Course grade settings" in the course gradebook + And I navigate to "Setup > Course grade settings" in the course gradebook And I set the following fields to these values: | Min and max grades used in calculation | Initial min and max grades | And I press "Save changes" - And I go to "View > User report" in the course gradebook + And I navigate to "View > User report" in the course gradebook And I select "Student 1" from the "Select all or one user" singleselect And the following should exist in the "user-grade" table: | Grade item | Calculated weight | Grade | Range | Percentage | Contribution to course total | @@ -127,29 +127,29 @@ Feature: Calculated grade items can be used in the gradebook | grade item 1 | gi1 | And I set the following settings for grade item "calc item": | Maximum grade | 50 | - And I go to "Setup > Course grade settings" in the course gradebook + And I navigate to "Setup > Course grade settings" in the course gradebook And I set the following fields to these values: | Min and max grades used in calculation | Initial min and max grades | And I press "Save changes" - And I go to "View > Grader report" in the course gradebook + And I navigate to "View > Grader report" in the course gradebook And I press "Turn editing on" And I give the grade "75.00" to the user "Student 1" for the grade item "grade item 1" And I press "Save changes" - And I go to "View > User report" in the course gradebook + And I navigate to "View > User report" in the course gradebook When I select "Student 1" from the "Select all or one user" singleselect Then the following should exist in the "user-grade" table: | Grade item | Calculated weight | Grade | Range | Percentage | Contribution to course total | | grade item 1 | 66.67 % | 75.00 | 0–100 | 75.00 % | 50.00 % | | calc item | 33.33 % | 37.50 | 0–50 | 75.00 % | 25.00 % | | Course total | - | 112.50 | 0–150 | 75.00 % | - | - And I go 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 "calc item": | Rescale existing grades | No | | Maximum grade | 40 | - And I go to "View > Grader report" in the course gradebook + And I navigate to "View > Grader report" in the course gradebook And I give the grade "65.00" to the user "Student 2" for the grade item "grade item 1" And I press "Save changes" - And I go to "View > User report" in the course gradebook + And I navigate to "View > User report" in the course gradebook And I select "Student 1" from the "Select all or one user" singleselect And the following should exist in the "user-grade" table: | Grade item | Calculated weight | Grade | Range | Percentage | Contribution to course total | diff --git a/grade/tests/behat/grade_calculated_grade_items_20150627.feature b/grade/tests/behat/grade_calculated_grade_items_20150627.feature index fdabb9e039a..e1eb3fbf969 100644 --- a/grade/tests/behat/grade_calculated_grade_items_20150627.feature +++ b/grade/tests/behat/grade_calculated_grade_items_20150627.feature @@ -22,7 +22,7 @@ Feature: Gradebook calculations for calculated grade items before the fix 201506 And I log in as "admin" And I am on site homepage And I follow "Course 1" - And I go to "Setup > Gradebook setup" in the course gradebook + And I navigate to "Setup > Gradebook setup" in the course gradebook @javascript Scenario: The max grade for a category item, with a calculation using Natural aggregation, can be changed @@ -39,11 +39,11 @@ Feature: Gradebook calculations for calculated grade items before the fix 201506 | grade item 1 | gi1 | And I set the following settings for grade item "Calc cat": | Maximum grade | 50 | - And I go 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 give the grade "75.00" to the user "Student 1" for the grade item "grade item 1" And I press "Save changes" - And I go to "View > User report" in the course gradebook + And I navigate to "View > User report" in the course gradebook And I select "Student 1" from the "Select all or one user" singleselect And the following should exist in the "user-grade" table: | Grade item | Calculated weight | Grade | Range | Percentage | Contribution to course total | @@ -66,24 +66,24 @@ Feature: Gradebook calculations for calculated grade items before the fix 201506 | grade item 1 | gi1 | And I set the following settings for grade item "Calc cat": | Maximum grade | 50 | - And I go 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 give the grade "75.00" to the user "Student 1" for the grade item "grade item 1" And I press "Save changes" - And I go to "View > User report" in the course gradebook + And I navigate to "View > User report" in the course gradebook And I select "Student 1" from the "Select all or one user" singleselect And the following should exist in the "user-grade" table: | Grade item | Calculated weight | Grade | Range | Percentage | Contribution to course total | | grade item 1 | - | 75.00 | 0–100 | 75.00 % | - | | Calc cat totalInclude empty grades. | 100.00 % | 37.50 | 0–100 | 37.50 % | - | | Course total | - | 37.50 | 0–100 | 37.50 % | - | - And I go 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 "Calc cat": | Maximum grade | 40 | - And I go to "View > Grader report" in the course gradebook + And I navigate to "View > Grader report" in the course gradebook And I give the grade "65.00" to the user "Student 2" for the grade item "grade item 1" And I press "Save changes" - And I go to "View > User report" in the course gradebook + And I navigate to "View > User report" in the course gradebook When I select "Student 1" from the "Select all or one user" singleselect Then the following should exist in the "user-grade" table: | Grade item | Calculated weight | Grade | Range | Percentage | Contribution to course total | @@ -96,11 +96,11 @@ Feature: Gradebook calculations for calculated grade items before the fix 201506 | grade item 1 | - | 65.00 | 0–100 | 65.00 % | - | | Calc cat totalInclude empty grades. | 100.00 % | 32.50 | 0–100 | 32.50 % | - | | Course total | - | 32.50 | 0–100 | 32.50 % | - | - And I go to "Setup > Course grade settings" in the course gradebook + And I navigate to "Setup > Course grade settings" in the course gradebook And I set the following fields to these values: | Min and max grades used in calculation | Initial min and max grades | And I press "Save changes" - And I go to "View > User report" in the course gradebook + And I navigate to "View > User report" in the course gradebook And I select "Student 1" from the "Select all or one user" singleselect And the following should exist in the "user-grade" table: | Grade item | Calculated weight | Grade | Range | Percentage | Contribution to course total | @@ -128,29 +128,29 @@ Feature: Gradebook calculations for calculated grade items before the fix 201506 | grade item 1 | gi1 | And I set the following settings for grade item "calc item": | Maximum grade | 50 | - And I go to "Setup > Course grade settings" in the course gradebook + And I navigate to "Setup > Course grade settings" in the course gradebook And I set the following fields to these values: | Min and max grades used in calculation | Initial min and max grades | And I press "Save changes" - And I go 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 give the grade "75.00" to the user "Student 1" for the grade item "grade item 1" And I press "Save changes" - And I go to "View > User report" in the course gradebook + And I navigate to "View > User report" in the course gradebook When I select "Student 1" from the "Select all or one user" singleselect Then the following should exist in the "user-grade" table: | Grade item | Calculated weight | Grade | Range | Percentage | Contribution to course total | | grade item 1 | 50.00 % | 75.00 | 0–100 | 75.00 % | 37.50 % | | calc item | 50.00 % | 37.50 | 0–100 | 37.50 % | 18.75 % | | Course total | - | 112.50 | 0–200 | 56.25 % | - | - And I go 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 "calc item": | Rescale existing grades | No | | Maximum grade | 40 | - And I go to "View > Grader report" in the course gradebook + And I navigate to "View > Grader report" in the course gradebook And I give the grade "65.00" to the user "Student 2" for the grade item "grade item 1" And I press "Save changes" - And I go to "View > User report" in the course gradebook + And I navigate to "View > User report" in the course gradebook And I select "Student 1" from the "Select all or one user" singleselect And the following should exist in the "user-grade" table: | Grade item | Calculated weight | Grade | Range | Percentage | Contribution to course total | diff --git a/grade/tests/behat/grade_calculated_weights.feature b/grade/tests/behat/grade_calculated_weights.feature index 77e5c968f45..47a30400de8 100644 --- a/grade/tests/behat/grade_calculated_weights.feature +++ b/grade/tests/behat/grade_calculated_weights.feature @@ -30,7 +30,7 @@ Feature: We can understand the gradebook user report And I log out And I log in as "teacher1" And I follow "Course 1" - And I go 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 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" @@ -39,11 +39,11 @@ Feature: We can understand the gradebook user report And I give the grade "70.00" to the user "Student 1" for the grade item "Test assignment five" And I give the grade "30.00" to the user "Student 1" for the grade item "Test assignment six" And I press "Save changes" - And I go to "Setup > Course grade settings" in the course gradebook + 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 contribution to course total" to "Show" And I press "Save changes" - And I go to "Setup > Gradebook setup" in the course gradebook + And I navigate to "Setup > Gradebook setup" in the course gradebook And I press "Add category" And I set the field "Category name" to "Sub category" And I press "Save changes" @@ -59,7 +59,7 @@ Feature: We can understand the gradebook user report Scenario: Mean of grades aggregation And I set the following settings for grade item "Course 1": | Aggregation | Mean of grades | - And I go to "View > User report" in the course gradebook + And I navigate to "View > User report" in the course gradebook And I set the field "Select all or one user" to "Student 1" # Check the values in the weights column. @@ -84,7 +84,7 @@ Feature: We can understand the gradebook user report | Item weight | 1.0 | And I set the following settings for grade item "Sub category": | Item weight | 1.0 | - And I go to "View > User report" in the course gradebook + And I navigate to "View > User report" in the course gradebook And I set the field "Select all or one user" to "Student 1" # Check the values in the weights column. @@ -105,7 +105,7 @@ Feature: We can understand the gradebook user report | Aggregation | Simple weighted mean of grades | And I set the following settings for grade item "Test assignment three": | Extra credit | 1 | - And I go to "View > User report" in the course gradebook + And I navigate to "View > User report" in the course gradebook And I set the field "Select all or one user" to "Student 1" # Check the values in the weights column. @@ -124,7 +124,7 @@ Feature: We can understand the gradebook user report | Aggregation | Mean of grades (with extra credits) | And I set the following settings for grade item "Test assignment three": | Extra credit weight | 1.0 | - And I go to "View > User report" in the course gradebook + And I navigate to "View > User report" in the course gradebook And I set the field "Select all or one user" to "Student 1" # Check the values in the weights column. @@ -141,7 +141,7 @@ Feature: We can understand the gradebook user report Scenario: Median of grades aggregation And I set the following settings for grade item "Course 1": | Aggregation | Median of grades | - And I go to "View > User report" in the course gradebook + And I navigate to "View > User report" in the course gradebook And I set the field "Select all or one user" to "Student 1" # Check the values in the weights column. @@ -158,7 +158,7 @@ Feature: We can understand the gradebook user report Scenario: Lowest grade aggregation And I set the following settings for grade item "Course 1": | Aggregation | Lowest grade | - And I go to "View > User report" in the course gradebook + And I navigate to "View > User report" in the course gradebook And I set the field "Select all or one user" to "Student 1" # Check the values in the weights column. @@ -175,7 +175,7 @@ Feature: We can understand the gradebook user report Scenario: Highest grade aggregation And I set the following settings for grade item "Course 1": | Aggregation | Highest grade | - And I go to "View > User report" in the course gradebook + And I navigate to "View > User report" in the course gradebook And I set the field "Select all or one user" to "Student 1" # Check the values in the weights column. @@ -192,7 +192,7 @@ Feature: We can understand the gradebook user report Scenario: Mode of grades aggregation And I set the following settings for grade item "Course 1": | Aggregation | Mode of grades | - And I go to "View > User report" in the course gradebook + And I navigate to "View > User report" in the course gradebook And I set the field "Select all or one user" to "Student 1" # Check the values in the weights column. @@ -213,7 +213,7 @@ Feature: We can understand the gradebook user report | Aggregation | Weighted mean of grades | And I set the following settings for grade item "Test assignment three": | Extra credit | 1 | - And I go to "View > User report" in the course gradebook + And I navigate to "View > User report" in the course gradebook And I set the field "Select all or one user" to "Student 1" # Check the values in the weights column. @@ -232,7 +232,7 @@ Feature: We can understand the gradebook user report Scenario: View user report with natural aggregation And I set the following settings for grade item "Test assignment three": | Extra credit | 1 | - And I go to "View > User report" in the course gradebook + And I navigate to "View > User report" in the course gradebook And I set the field "Select all or one user" to "Student 1" # Check the values in the weights column. diff --git a/grade/tests/behat/grade_category_validation.feature b/grade/tests/behat/grade_category_validation.feature index 7305fa7a668..74cff6208a5 100644 --- a/grade/tests/behat/grade_category_validation.feature +++ b/grade/tests/behat/grade_category_validation.feature @@ -34,7 +34,7 @@ Feature: Editing a grade item And I log in as "teacher1" And I am on site homepage And I follow "Course 1" - And I go to "Setup > Gradebook setup" in the course gradebook + 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 | Cat 1 | @@ -69,11 +69,11 @@ Feature: Editing a grade item And I should not see "You cannot change the scale, as grades already exist for this item" Scenario: Attempting to change a category item's grade type when overridden grades already exist - Given I go to "View > Grader report" in the course gradebook + Given I navigate to "View > Grader report" in the course gradebook And I turn editing mode on And I give the grade "20.00" to the user "Student 1" for the grade item "Cat 1 total" And I press "Save changes" - And I go 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 "Cat 1" "table_row" When I click on "Edit settings" "link" in the "Cat 1" "table_row" Then I should see "This category has associated grade items which have been overridden. Therefore some grades have already been awarded, so the grade type cannot be changed. If you wish to change the maximum grade, you must first choose whether or not to rescale existing grades." @@ -85,22 +85,22 @@ Feature: Editing a grade item And I set the field "Grade type" to "Scale" And I set the field "Scale" to "ABCDEF" And I press "Save changes" - And I go 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 give the grade "C" to the user "Student 1" for the grade item "Cat 1 total" And I press "Save changes" - And I go 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 "Cat 1" "table_row" When I click on "Edit settings" "link" in the "Cat 1" "table_row" Then I should see "This category has associated grade items which have been overridden. Therefore some grades have already been awarded, so the grade type and scale cannot be changed." And "//div[contains(concat(' ', normalize-space(@class), ' '), 'felement') and contains(text(), 'ABCDEF')]" "xpath_element" should exist Scenario: Attempting to change a category item's maximum grade when no rescaling option has been chosen - Given I go to "View > Grader report" in the course gradebook + Given I navigate to "View > Grader report" in the course gradebook And I turn editing mode on And I give the grade "20.00" to the user "Student 1" for the grade item "Cat 1 total" And I press "Save changes" - And I go 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 "Cat 1" "table_row" And I click on "Edit settings" "link" in the "Cat 1" "table_row" And I set the field "Maximum grade" to "50" diff --git a/grade/tests/behat/grade_contribution_with_extra_credit.feature b/grade/tests/behat/grade_contribution_with_extra_credit.feature index 0d89bcca010..05311952dec 100644 --- a/grade/tests/behat/grade_contribution_with_extra_credit.feature +++ b/grade/tests/behat/grade_contribution_with_extra_credit.feature @@ -21,7 +21,7 @@ Feature: Extra credit contributions are normalised when going out of bounds | grade_aggregations_visible | Simple weighted mean of grades,Mean of grades (with extra credits),Natural | And I am on site homepage And I follow "Course 1" - And I go to "Setup > Gradebook setup" in the course gradebook + And I navigate to "Setup > Gradebook setup" in the course gradebook And I press "Add grade item" And I set the following fields to these values: | Item name | Manual item 1 | @@ -39,14 +39,14 @@ Feature: Extra credit contributions are normalised when going out of bounds And I set the following fields to these values: | Item name | Manual item 4 | And I press "Save changes" - And I go to "Setup > Course grade settings" in the course gradebook + And I navigate to "Setup > Course grade settings" in the course gradebook And I set the field "Show weighting" to "Show" And I set the field "Show contribution to course total" to "Show" And I press "Save changes" And I log out And I log in as "teacher1" And I follow "Course 1" - And I go 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 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" @@ -55,7 +55,7 @@ Feature: Extra credit contributions are normalised when going out of bounds And I press "Save changes" Scenario Outline: The contribution of extra credit items is normalised - Given I go to "Setup > Gradebook setup" in the course gradebook + Given I navigate to "Setup > Gradebook setup" in the course gradebook When I set the following settings for grade item "Course 1": | Aggregation | | And I set the following settings for grade item "Manual item 2": @@ -64,7 +64,7 @@ Feature: Extra credit contributions are normalised when going out of bounds | Extra credit | 1 | And I set the following settings for grade item "Manual item 4": | Extra credit | 1 | - And I go to "View > User report" in the course gradebook + And I navigate to "View > User report" in the course gradebook And I set the field "Select all or one user" to "Student 1" Then the following should exist in the "user-grade" table: | Grade item | Calculated weight | Grade | Contribution to course total | diff --git a/grade/tests/behat/grade_grade_minmax_change.feature b/grade/tests/behat/grade_grade_minmax_change.feature index 3c986930b83..16d6abd0430 100644 --- a/grade/tests/behat/grade_grade_minmax_change.feature +++ b/grade/tests/behat/grade_grade_minmax_change.feature @@ -22,33 +22,33 @@ Feature: We can change the maximum and minimum number of points for manual items And I log in as "teacher1" And I am on site homepage And I follow "Course 1" - And I go to "Setup > Gradebook setup" in the course gradebook + And I navigate to "Setup > Gradebook setup" in the course gradebook And I press "Add grade item" And I set the following fields to these values: | Item name | Manual item 1 | | Minimum grade | 0 | | Maximum grade | 100 | And I press "Save changes" - And I go to "Setup > Course grade settings" in the course gradebook + 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 contribution to course total" to "Show" And I press "Save changes" Scenario: Change maximum number of points on a graded item. And I follow "Course 1" - And I go 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 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 press "Save changes" - When I go to "Setup > Gradebook setup" in the course gradebook + When I navigate to "Setup > Gradebook setup" in the course gradebook And I click on "Edit" "link" in the "Manual item 1" "table_row" And I click on "Edit settings" "link" in the "Manual item 1" "table_row" And I set the following fields to these values: | Maximum grade | 10 | | Rescale existing grades | No | And I press "Save changes" - And I go to "View > User report" in the course gradebook + And I navigate to "View > User report" in the course gradebook And I select "Student 1" from the "Select all or one user" singleselect Then the following should exist in the "user-grade" table: | Grade item | Calculated weight | Grade | Contribution to course total | @@ -57,14 +57,14 @@ Feature: We can change the maximum and minimum number of points for manual items And the following should exist in the "user-grade" table: | Grade item | Calculated weight | Grade | Contribution to course total | | Manual item 1 | 100.00 % | 8.00 | 80.00 % | - And I go 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 "Manual item 1" "table_row" And I click on "Edit settings" "link" in the "Manual item 1" "table_row" And I set the following fields to these values: | Maximum grade | 20 | | Rescale existing grades | Yes | And I press "Save changes" - And I go to "View > User report" in the course gradebook + And I navigate to "View > User report" in the course gradebook And I select "Student 1" from the "Select all or one user" singleselect And the following should exist in the "user-grade" table: | Grade item | Calculated weight | Grade | Contribution to course total | diff --git a/grade/tests/behat/grade_hidden_items.feature b/grade/tests/behat/grade_hidden_items.feature index b83ab7f9cdb..fd7aa450f2d 100644 --- a/grade/tests/behat/grade_hidden_items.feature +++ b/grade/tests/behat/grade_hidden_items.feature @@ -35,7 +35,7 @@ Feature: Student and teacher's view of aggregated grade items is consistent when When I log out And I log in as "teacher1" And I follow "Course 1" - And I go 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 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" @@ -44,7 +44,7 @@ Feature: Student and teacher's view of aggregated grade items is consistent when | Hidden | 1 | And I press "Save changes" And I follow "Course 1" - And I go to "View > User report" in the course gradebook + And I navigate to "View > User report" in the course gradebook And I select "Myself" from the "View report as" singleselect And I select "Student 1" from the "Select all or one user" singleselect Then the following should exist in the "user-grade" table: @@ -56,7 +56,7 @@ Feature: Student and teacher's view of aggregated grade items is consistent when When I log out And I log in as "student1" And I follow "Course 1" - And I go to "User report" in the course gradebook + And I navigate to "User report" in the course gradebook Then the following should exist in the "user-grade" table: | Grade item | Calculated weight | Grade | Range | Percentage | Contribution to course total | | Test assignment one | 100.00 % | 50.00 | 0–100 | 50.00 % | 25.00 % | diff --git a/grade/tests/behat/grade_item_validation.feature b/grade/tests/behat/grade_item_validation.feature index e9721b8ff91..fa38d4a30aa 100644 --- a/grade/tests/behat/grade_item_validation.feature +++ b/grade/tests/behat/grade_item_validation.feature @@ -30,7 +30,7 @@ Feature: Editing a grade item And I press "Save changes" And I am on site homepage And I follow "Course 1" - And I go to "Setup > Gradebook setup" in the course gradebook + And I navigate to "Setup > Gradebook setup" in the course gradebook And I press "Add grade item" And I set the following fields to these values: | Item name | MI 1 | @@ -54,11 +54,11 @@ Feature: Editing a grade item And I should not see "You cannot change the scale, as grades already exist for this item" Scenario: Attempting to change a manual item's grade type when grades already exist - Given I go to "View > Grader report" in the course gradebook + Given I navigate to "View > Grader report" in the course gradebook And I turn editing mode on And I give the grade "20.00" to the user "Student 1" for the grade item "MI 1" And I press "Save changes" - And I go 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 "MI 1" "table_row" When I click on "Edit settings" "link" in the "MI 1" "table_row" Then I should see "Some grades have already been awarded, so the grade type cannot be changed. If you wish to change the maximum grade, you must first choose whether or not to rescale existing grades." @@ -70,22 +70,22 @@ Feature: Editing a grade item And I set the field "Grade type" to "Scale" And I set the field "Scale" to "ABCDEF" And I press "Save changes" - And I go 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 give the grade "C" to the user "Student 1" for the grade item "MI 1" And I press "Save changes" - And I go 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 "MI 1" "table_row" When I click on "Edit settings" "link" in the "MI 1" "table_row" Then I should see "Some grades have already been awarded, so the grade type and scale cannot be changed." And "//div[contains(concat(' ', normalize-space(@class), ' '), 'felement') and contains(text(), 'ABCDEF')]" "xpath_element" should exist Scenario: Attempting to change a manual item's maximum grade when no rescaling option has been chosen - Given I go to "View > Grader report" in the course gradebook + Given I navigate to "View > Grader report" in the course gradebook And I turn editing mode on And I give the grade "20.00" to the user "Student 1" for the grade item "MI 1" And I press "Save changes" - And I go 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 "MI 1" "table_row" And I click on "Edit settings" "link" in the "MI 1" "table_row" And I set the field "Maximum grade" to "50" diff --git a/grade/tests/behat/grade_letter_boundary.feature b/grade/tests/behat/grade_letter_boundary.feature index 09bed65e56f..33466731920 100644 --- a/grade/tests/behat/grade_letter_boundary.feature +++ b/grade/tests/behat/grade_letter_boundary.feature @@ -22,17 +22,17 @@ Feature: We can customise the letter boundary of a course. | assign | C1 | a1 | Test assignment one | Submit something! | 100 | And I log in as "teacher1" And I follow "Course 1" - And I go to "Setup > Course grade settings" in the course gradebook + And I navigate to "Setup > Course grade settings" in the course gradebook And I set the following fields to these values: | Grade display type | Letter | And I press "Save changes" - And I go to "Letters" in the course gradebook + And I navigate to "Letters" in the course gradebook And I follow "Edit grade letters" And I set the following fields to these values: | id_override | 1 | | id_gradeboundary10 | 57 | And I press "Save changes" - And I go to "View > Grader report" in the course gradebook + And I navigate to "View > Grader report" in the course gradebook And I press "Turn editing on" And I give the grade "57" to the user "Student 1" for the grade item "Test assignment one" And I press "Save changes" diff --git a/grade/tests/behat/grade_letter_boundary_20160518.feature b/grade/tests/behat/grade_letter_boundary_20160518.feature index c2f13daaeb7..072c32df802 100644 --- a/grade/tests/behat/grade_letter_boundary_20160518.feature +++ b/grade/tests/behat/grade_letter_boundary_20160518.feature @@ -23,17 +23,17 @@ Feature: We can customise the letter boundary of a course. | assign | C1 | a1 | Test assignment one | Submit something! | 100 | And I log in as "teacher1" And I follow "Course 1" - And I go to "Setup > Course grade settings" in the course gradebook + And I navigate to "Setup > Course grade settings" in the course gradebook And I set the following fields to these values: | Grade display type | Letter | And I press "Save changes" - And I go to "Letters" in the course gradebook + And I navigate to "Letters" in the course gradebook And I follow "Edit grade letters" And I set the following fields to these values: | id_override | 1 | | id_gradeboundary10 | 57 | And I press "Save changes" - And I go to "View > Grader report" in the course gradebook + And I navigate to "View > Grader report" in the course gradebook And I press "Turn editing on" And I give the grade "57" to the user "Student 1" for the grade item "Test assignment one" And I press "Save changes" diff --git a/grade/tests/behat/grade_mingrade.feature b/grade/tests/behat/grade_mingrade.feature index a02d38c7a9a..0011f2086e4 100644 --- a/grade/tests/behat/grade_mingrade.feature +++ b/grade/tests/behat/grade_mingrade.feature @@ -27,7 +27,7 @@ Feature: We can use a minimum grade different than zero | 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 site homepage And I follow "Course 1" - And I go to "Setup > Gradebook setup" in the course gradebook + And I navigate to "Setup > Gradebook setup" in the course gradebook And I press "Add grade item" And I set the following fields to these values: | Item name | Manual item 1 | @@ -65,14 +65,14 @@ Feature: We can use a minimum grade different than zero | Minimum grade | 50 | | Grade category | Sub category 2 | And I press "Save changes" - And I go to "Setup > Course grade settings" in the course gradebook + 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 contribution to course total" to "Show" And I press "Save changes" @javascript Scenario: Natural aggregation with negative and positive grade - And I go 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 "Sub category 1": | Aggregation | Natural | | Exclude empty grades | 0 | @@ -85,7 +85,7 @@ Feature: We can use a minimum grade different than zero And I log out And I log in as "teacher1" And I follow "Course 1" - And I go 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 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" @@ -100,7 +100,7 @@ Feature: We can use a minimum grade different than zero And I give the grade "0.00" to the user "Student 2" for the grade item "Manual item 5" And I give the grade "0.00" to the user "Student 2" for the grade item "Manual item 6" And I press "Save changes" - And I go to "View > User report" in the course gradebook + And I navigate to "View > User report" in the course gradebook And I set the field "Select all or one user" to "Student 1" Then the following should exist in the "user-grade" table: | Grade item | Calculated weight | Grade | Contribution to course total | diff --git a/grade/tests/behat/grade_minmax.feature b/grade/tests/behat/grade_minmax.feature index 756a55e6fc7..13f1b756c4a 100644 --- a/grade/tests/behat/grade_minmax.feature +++ b/grade/tests/behat/grade_minmax.feature @@ -26,7 +26,7 @@ Feature: We can choose what min or max grade to use when aggregating grades. | grade_minmaxtouse | Min and max grades as specified in grade item settings | And I am on site homepage And I follow "C1" - And I go to "Setup > Gradebook setup" in the course gradebook + And I navigate to "Setup > Gradebook setup" in the course gradebook And I press "Add grade item" And I set the following fields to these values: | Item name | MI 1 | @@ -56,18 +56,18 @@ Feature: We can choose what min or max grade to use when aggregating grades. | MI 1 | mi1 | | MI 2 | mi2 | | MI 3 | mi3 | - And I go to "Setup > Course grade settings" in the course gradebook + And I navigate to "Setup > Course grade settings" in the course gradebook And I set the field "Min and max grades used in calculation" to "Default (Min and max grades as specified in grade item settings)" And I set the field "Show weightings" to "Show" And I set the field "Show contribution to course total" to "Show" And I press "Save changes" - And I go 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": | Aggregation | Natural | And I log out And I log in as "teacher1" And I follow "C1" - And I go 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 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" @@ -76,7 +76,7 @@ Feature: We can choose what min or max grade to use when aggregating grades. And I give the grade "20.00" to the user "Student 2" for the grade item "MI 1" And I give the grade "10.00" to the user "Student 2" for the grade item "MI 3" And I press "Save changes" - And I go to "View > User report" in the course gradebook + And I navigate to "View > User report" in the course gradebook And I select "Student 1" from the "Select all or one user" singleselect And the following should exist in the "user-grade" table: | Grade item | Calculated weight | Grade | Range | Percentage | Contribution to course total | @@ -97,7 +97,7 @@ Feature: We can choose what min or max grade to use when aggregating grades. | MI 5 | 33.33 % | 30.00 | 0–100 | 30.00 % | 10.00 % | | CAT1 total | 33.33 % | 10.00 | 0–100 | 10.00 % | - | | Course total | - | 60.00 | 0–300 | 20.00 % | - | - And I go 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 "MI 1": | Maximum grade | 50.00 | | Minimum grade | 5.00 | @@ -106,7 +106,7 @@ Feature: We can choose what min or max grade to use when aggregating grades. | Maximum grade | 50.00 | | Minimum grade | 5.00 | | Rescale existing grades | No | - And I go to "View > User report" in the course gradebook + And I navigate to "View > User report" in the course gradebook And I select "Student 1" from the "Select all or one user" singleselect And the following should exist in the "user-grade" table: | Grade item | Calculated weight | Grade | Range | Percentage | Contribution to course total | @@ -127,11 +127,11 @@ Feature: We can choose what min or max grade to use when aggregating grades. | MI 5 | 50.00 % | 30.00 | 0–100 | 30.00 % | 15.00 % | | CAT1 total | 25.00 % | 10.00 | 0–50 | 20.00 % | - | | Course total | - | 60.00 | 0–200 | 30.00 % | - | - And I go 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 "MI 5": | Maximum grade | 200.00 | | Rescale existing grades | No | - And I go to "View > User report" in the course gradebook + And I navigate to "View > User report" in the course gradebook And I select "Student 1" from the "Select all or one user" singleselect And the following should exist in the "user-grade" table: | Grade item | Calculated weight | Grade | Range | Percentage | Contribution to course total | @@ -142,10 +142,10 @@ Feature: We can choose what min or max grade to use when aggregating grades. | Grade item | Calculated weight | Grade | Range | Percentage | Contribution to course total | | MI 5 | 66.67 % | 30.00 | 0–200 | 15.00 % | 10.00 % | | Course total | - | 60.00 | 0–300 | 20.00 % | - | - And I go to "Setup > Course grade settings" in the course gradebook + And I navigate to "Setup > Course grade settings" in the course gradebook When I set the field "Min and max grades used in calculation" to "Initial min and max grades" And I press "Save changes" - And I go to "View > User report" in the course gradebook + And I navigate to "View > User report" in the course gradebook And I select "Student 1" from the "Select all or one user" singleselect Then the following should exist in the "user-grade" table: | Grade item | Calculated weight | Grade | Range | Percentage | Contribution to course total | diff --git a/grade/tests/behat/grade_natural_exclude_empty.feature b/grade/tests/behat/grade_natural_exclude_empty.feature index ae5e92c7b8d..37f411d4e56 100644 --- a/grade/tests/behat/grade_natural_exclude_empty.feature +++ b/grade/tests/behat/grade_natural_exclude_empty.feature @@ -25,7 +25,7 @@ Feature: Weights in natural aggregation are adjusted if the items are excluded f | assign | C1 | a5 | Test assignment five (extra) | x | 10 | And I log in as "teacher1" And I follow "Course 1" - And I go 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 assignment four (extra)": | Extra credit | 1 | And I set the following settings for grade item "Test assignment five (extra)": @@ -33,7 +33,7 @@ Feature: Weights in natural aggregation are adjusted if the items are excluded f @javascript Scenario: No weights are overridden and student has all grades present - When I go to "View > Grader report" in the course gradebook + When I navigate to "View > Grader report" in the course gradebook And I turn editing mode on And I give the grade "80.00" to the user "Student 1" for the grade item "Test assignment one" And I give the grade "30.00" to the user "Student 1" for the grade item "Test assignment two" @@ -41,7 +41,7 @@ Feature: Weights in natural aggregation are adjusted if the items are excluded f And I give the grade "10.00" to the user "Student 1" for the grade item "Test assignment four (extra)" And I give the grade "8.00" to the user "Student 1" for the grade item "Test assignment five (extra)" And I press "Save changes" - And I go to "View > User report" in the course gradebook + And I navigate to "View > User report" in the course gradebook And I set the field "Select all or one user" to "Student 1" Then the following should exist in the "user-grade" table: | Grade item | Calculated weight | Grade | Range | Percentage | Contribution to course total | @@ -55,14 +55,14 @@ Feature: Weights in natural aggregation are adjusted if the items are excluded f @javascript Scenario: No weights are overridden, student has some grades present - When I go to "View > Grader report" in the course gradebook + When I navigate to "View > Grader report" in the course gradebook And I turn editing mode on And I give the grade "80.00" to the user "Student 1" for the grade item "Test assignment one" And I give the grade "30.00" to the user "Student 1" for the grade item "Test assignment two" And I give the grade "10.00" to the user "Student 1" for the grade item "Test assignment four (extra)" And I give the grade "8.00" to the user "Student 1" for the grade item "Test assignment five (extra)" And I press "Save changes" - And I go to "View > User report" in the course gradebook + And I navigate to "View > User report" in the course gradebook And I set the field "Select all or one user" to "Student 1" Then the following should exist in the "user-grade" table: | Grade item | Calculated weight | Grade | Range | Percentage | Contribution to course total | @@ -76,12 +76,12 @@ Feature: Weights in natural aggregation are adjusted if the items are excluded f @javascript Scenario: No weights are overridden, student has none grades present except for extra credit - When I go to "View > Grader report" in the course gradebook + When I navigate to "View > Grader report" in the course gradebook And I turn editing mode on And I give the grade "10.00" to the user "Student 1" for the grade item "Test assignment four (extra)" And I give the grade "8.00" to the user "Student 1" for the grade item "Test assignment five (extra)" And I press "Save changes" - And I go to "View > User report" in the course gradebook + And I navigate to "View > User report" in the course gradebook And I set the field "Select all or one user" to "Student 1" Then the following should exist in the "user-grade" table: | Grade item | Calculated weight | Grade | Range | Percentage | Contribution to course total | @@ -101,14 +101,14 @@ Feature: Weights in natural aggregation are adjusted if the items are excluded f | Extra credit | 1 | And I set the following settings for grade item "Test assignment three": | Extra credit | 1 | - When I go to "View > Grader report" in the course gradebook + When I navigate to "View > Grader report" in the course gradebook And I turn editing mode on And I give the grade "80.00" to the user "Student 1" for the grade item "Test assignment one" And I give the grade "30.00" to the user "Student 1" for the grade item "Test assignment two" And I give the grade "10.00" to the user "Student 1" for the grade item "Test assignment four (extra)" And I give the grade "8.00" to the user "Student 1" for the grade item "Test assignment five (extra)" And I press "Save changes" - And I go to "View > User report" in the course gradebook + And I navigate to "View > User report" in the course gradebook And I set the field "Select all or one user" to "Student 1" Then the following should exist in the "user-grade" table: | Grade item | Calculated weight | Grade | Range | Percentage | Contribution to course total | @@ -125,7 +125,7 @@ Feature: Weights in natural aggregation are adjusted if the items are excluded f When I set the field "Override weight of Test assignment one" to "1" And I set the field "Weight of Test assignment one" to "50" And I press "Save changes" - And I go 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 give the grade "80.00" to the user "Student 1" for the grade item "Test assignment one" And I give the grade "30.00" to the user "Student 1" for the grade item "Test assignment two" @@ -133,7 +133,7 @@ Feature: Weights in natural aggregation are adjusted if the items are excluded f And I give the grade "10.00" to the user "Student 1" for the grade item "Test assignment four (extra)" And I give the grade "8.00" to the user "Student 1" for the grade item "Test assignment five (extra)" And I press "Save changes" - And I go to "View > User report" in the course gradebook + And I navigate to "View > User report" in the course gradebook And I set the field "Select all or one user" to "Student 1" Then the following should exist in the "user-grade" table: | Grade item | Calculated weight | Grade | Range | Percentage | Contribution to course total | @@ -150,14 +150,14 @@ Feature: Weights in natural aggregation are adjusted if the items are excluded f When I set the field "Override weight of Test assignment one" to "1" And I set the field "Weight of Test assignment one" to "50" And I press "Save changes" - And I go 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 give the grade "80.00" to the user "Student 1" for the grade item "Test assignment one" And I give the grade "30.00" to the user "Student 1" for the grade item "Test assignment two" And I give the grade "10.00" to the user "Student 1" for the grade item "Test assignment four (extra)" And I give the grade "8.00" to the user "Student 1" for the grade item "Test assignment five (extra)" And I press "Save changes" - And I go to "View > User report" in the course gradebook + And I navigate to "View > User report" in the course gradebook And I set the field "Select all or one user" to "Student 1" Then the following should exist in the "user-grade" table: | Grade item | Calculated weight | Grade | Range | Percentage | Contribution to course total | @@ -174,12 +174,12 @@ Feature: Weights in natural aggregation are adjusted if the items are excluded f When I set the field "Override weight of Test assignment one" to "1" And I set the field "Weight of Test assignment one" to "50" And I press "Save changes" - And I go 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 give the grade "10.00" to the user "Student 1" for the grade item "Test assignment four (extra)" And I give the grade "8.00" to the user "Student 1" for the grade item "Test assignment five (extra)" And I press "Save changes" - And I go to "View > User report" in the course gradebook + And I navigate to "View > User report" in the course gradebook And I set the field "Select all or one user" to "Student 1" Then the following should exist in the "user-grade" table: | Grade item | Calculated weight | Grade | Range | Percentage | Contribution to course total | @@ -198,7 +198,7 @@ Feature: Weights in natural aggregation are adjusted if the items are excluded f And I set the field "Override weight of Test assignment four (extra)" to "1" And I set the field "Weight of Test assignment four (extra)" to "10" And I press "Save changes" - And I go 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 give the grade "80.00" to the user "Student 1" for the grade item "Test assignment one" And I give the grade "30.00" to the user "Student 1" for the grade item "Test assignment two" @@ -206,7 +206,7 @@ Feature: Weights in natural aggregation are adjusted if the items are excluded f And I give the grade "10.00" to the user "Student 1" for the grade item "Test assignment four (extra)" And I give the grade "8.00" to the user "Student 1" for the grade item "Test assignment five (extra)" And I press "Save changes" - And I go to "View > User report" in the course gradebook + And I navigate to "View > User report" in the course gradebook And I set the field "Select all or one user" to "Student 1" Then the following should exist in the "user-grade" table: | Grade item | Calculated weight | Grade | Range | Percentage | Contribution to course total | @@ -225,14 +225,14 @@ Feature: Weights in natural aggregation are adjusted if the items are excluded f And I set the field "Override weight of Test assignment four (extra)" to "1" And I set the field "Weight of Test assignment four (extra)" to "10" And I press "Save changes" - And I go 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 give the grade "80.00" to the user "Student 1" for the grade item "Test assignment one" And I give the grade "30.00" to the user "Student 1" for the grade item "Test assignment two" And I give the grade "10.00" to the user "Student 1" for the grade item "Test assignment four (extra)" And I give the grade "8.00" to the user "Student 1" for the grade item "Test assignment five (extra)" And I press "Save changes" - And I go to "View > User report" in the course gradebook + And I navigate to "View > User report" in the course gradebook And I set the field "Select all or one user" to "Student 1" Then the following should exist in the "user-grade" table: | Grade item | Calculated weight | Grade | Range | Percentage | Contribution to course total | @@ -251,12 +251,12 @@ Feature: Weights in natural aggregation are adjusted if the items are excluded f And I set the field "Override weight of Test assignment four (extra)" to "1" And I set the field "Weight of Test assignment four (extra)" to "10" And I press "Save changes" - And I go 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 give the grade "10.00" to the user "Student 1" for the grade item "Test assignment four (extra)" And I give the grade "8.00" to the user "Student 1" for the grade item "Test assignment five (extra)" And I press "Save changes" - And I go to "View > User report" in the course gradebook + And I navigate to "View > User report" in the course gradebook And I set the field "Select all or one user" to "Student 1" Then the following should exist in the "user-grade" table: | Grade item | Calculated weight | Grade | Range | Percentage | Contribution to course total | diff --git a/grade/tests/behat/grade_natural_exclude_empty_20150619.feature b/grade/tests/behat/grade_natural_exclude_empty_20150619.feature index 19916604168..54dfc00d25d 100644 --- a/grade/tests/behat/grade_natural_exclude_empty_20150619.feature +++ b/grade/tests/behat/grade_natural_exclude_empty_20150619.feature @@ -26,7 +26,7 @@ Feature: Gradebook calculations for extra credit items before the fix 20150619 | assign | C1 | a5 | Test assignment five (extra) | x | 10 | And I log in as "teacher1" And I follow "Course 1" - And I go 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 assignment four (extra)": | Extra credit | 1 | And I set the following settings for grade item "Test assignment five (extra)": @@ -34,7 +34,7 @@ Feature: Gradebook calculations for extra credit items before the fix 20150619 @javascript Scenario: No weights are overridden and student has all grades present (before the fix 20150619) - When I go to "View > Grader report" in the course gradebook + When I navigate to "View > Grader report" in the course gradebook And I turn editing mode on And I give the grade "80.00" to the user "Student 1" for the grade item "Test assignment one" And I give the grade "30.00" to the user "Student 1" for the grade item "Test assignment two" @@ -42,7 +42,7 @@ Feature: Gradebook calculations for extra credit items before the fix 20150619 And I give the grade "10.00" to the user "Student 1" for the grade item "Test assignment four (extra)" And I give the grade "8.00" to the user "Student 1" for the grade item "Test assignment five (extra)" And I press "Save changes" - And I go to "View > User report" in the course gradebook + And I navigate to "View > User report" in the course gradebook And I set the field "Select all or one user" to "Student 1" Then the following should exist in the "user-grade" table: | Grade item | Calculated weight | Grade | Range | Percentage | Contribution to course total | @@ -56,14 +56,14 @@ Feature: Gradebook calculations for extra credit items before the fix 20150619 @javascript Scenario: No weights are overridden, student has some grades present (before the fix 20150619) - When I go to "View > Grader report" in the course gradebook + When I navigate to "View > Grader report" in the course gradebook And I turn editing mode on And I give the grade "80.00" to the user "Student 1" for the grade item "Test assignment one" And I give the grade "30.00" to the user "Student 1" for the grade item "Test assignment two" And I give the grade "10.00" to the user "Student 1" for the grade item "Test assignment four (extra)" And I give the grade "8.00" to the user "Student 1" for the grade item "Test assignment five (extra)" And I press "Save changes" - And I go to "View > User report" in the course gradebook + And I navigate to "View > User report" in the course gradebook And I set the field "Select all or one user" to "Student 1" Then the following should exist in the "user-grade" table: | Grade item | Calculated weight | Grade | Range | Percentage | Contribution to course total | @@ -77,12 +77,12 @@ Feature: Gradebook calculations for extra credit items before the fix 20150619 @javascript Scenario: No weights are overridden, student has none grades present except for extra credit (before the fix 20150619) - When I go to "View > Grader report" in the course gradebook + When I navigate to "View > Grader report" in the course gradebook And I turn editing mode on And I give the grade "10.00" to the user "Student 1" for the grade item "Test assignment four (extra)" And I give the grade "8.00" to the user "Student 1" for the grade item "Test assignment five (extra)" And I press "Save changes" - And I go to "View > User report" in the course gradebook + And I navigate to "View > User report" in the course gradebook And I set the field "Select all or one user" to "Student 1" Then the following should exist in the "user-grade" table: | Grade item | Calculated weight | Grade | Range | Percentage | Contribution to course total | @@ -102,14 +102,14 @@ Feature: Gradebook calculations for extra credit items before the fix 20150619 | Extra credit | 1 | And I set the following settings for grade item "Test assignment three": | Extra credit | 1 | - When I go to "View > Grader report" in the course gradebook + When I navigate to "View > Grader report" in the course gradebook And I turn editing mode on And I give the grade "80.00" to the user "Student 1" for the grade item "Test assignment one" And I give the grade "30.00" to the user "Student 1" for the grade item "Test assignment two" And I give the grade "10.00" to the user "Student 1" for the grade item "Test assignment four (extra)" And I give the grade "8.00" to the user "Student 1" for the grade item "Test assignment five (extra)" And I press "Save changes" - And I go to "View > User report" in the course gradebook + And I navigate to "View > User report" in the course gradebook And I set the field "Select all or one user" to "Student 1" Then the following should exist in the "user-grade" table: | Grade item | Calculated weight | Grade | Range | Percentage | Contribution to course total | @@ -126,7 +126,7 @@ Feature: Gradebook calculations for extra credit items before the fix 20150619 When I set the field "Override weight of Test assignment one" to "1" And I set the field "Weight of Test assignment one" to "50" And I press "Save changes" - When I go to "View > Grader report" in the course gradebook + When I navigate to "View > Grader report" in the course gradebook And I turn editing mode on And I give the grade "80.00" to the user "Student 1" for the grade item "Test assignment one" And I give the grade "30.00" to the user "Student 1" for the grade item "Test assignment two" @@ -134,7 +134,7 @@ Feature: Gradebook calculations for extra credit items before the fix 20150619 And I give the grade "10.00" to the user "Student 1" for the grade item "Test assignment four (extra)" And I give the grade "8.00" to the user "Student 1" for the grade item "Test assignment five (extra)" And I press "Save changes" - And I go to "View > User report" in the course gradebook + And I navigate to "View > User report" in the course gradebook And I set the field "Select all or one user" to "Student 1" Then the following should exist in the "user-grade" table: | Grade item | Calculated weight | Grade | Range | Percentage | Contribution to course total | @@ -152,14 +152,14 @@ Feature: Gradebook calculations for extra credit items before the fix 20150619 When I set the field "Override weight of Test assignment one" to "1" And I set the field "Weight of Test assignment one" to "50" And I press "Save changes" - When I go to "View > Grader report" in the course gradebook + When I navigate to "View > Grader report" in the course gradebook And I turn editing mode on And I give the grade "80.00" to the user "Student 1" for the grade item "Test assignment one" And I give the grade "30.00" to the user "Student 1" for the grade item "Test assignment two" And I give the grade "10.00" to the user "Student 1" for the grade item "Test assignment four (extra)" And I give the grade "8.00" to the user "Student 1" for the grade item "Test assignment five (extra)" And I press "Save changes" - And I go to "View > User report" in the course gradebook + And I navigate to "View > User report" in the course gradebook And I set the field "Select all or one user" to "Student 1" Then the following should exist in the "user-grade" table: | Grade item | Calculated weight | Grade | Range | Percentage | Contribution to course total | @@ -177,12 +177,12 @@ Feature: Gradebook calculations for extra credit items before the fix 20150619 When I set the field "Override weight of Test assignment one" to "1" And I set the field "Weight of Test assignment one" to "50" And I press "Save changes" - When I go to "View > Grader report" in the course gradebook + When I navigate to "View > Grader report" in the course gradebook And I turn editing mode on And I give the grade "10.00" to the user "Student 1" for the grade item "Test assignment four (extra)" And I give the grade "8.00" to the user "Student 1" for the grade item "Test assignment five (extra)" And I press "Save changes" - And I go to "View > User report" in the course gradebook + And I navigate to "View > User report" in the course gradebook And I set the field "Select all or one user" to "Student 1" Then the following should exist in the "user-grade" table: | Grade item | Calculated weight | Grade | Range | Percentage | Contribution to course total | @@ -201,7 +201,7 @@ Feature: Gradebook calculations for extra credit items before the fix 20150619 And I set the field "Override weight of Test assignment four (extra)" to "1" And I set the field "Weight of Test assignment four (extra)" to "10" And I press "Save changes" - When I go to "View > Grader report" in the course gradebook + When I navigate to "View > Grader report" in the course gradebook And I turn editing mode on And I give the grade "80.00" to the user "Student 1" for the grade item "Test assignment one" And I give the grade "30.00" to the user "Student 1" for the grade item "Test assignment two" @@ -209,7 +209,7 @@ Feature: Gradebook calculations for extra credit items before the fix 20150619 And I give the grade "10.00" to the user "Student 1" for the grade item "Test assignment four (extra)" And I give the grade "8.00" to the user "Student 1" for the grade item "Test assignment five (extra)" And I press "Save changes" - And I go to "View > User report" in the course gradebook + And I navigate to "View > User report" in the course gradebook And I set the field "Select all or one user" to "Student 1" Then the following should exist in the "user-grade" table: | Grade item | Calculated weight | Grade | Range | Percentage | Contribution to course total | @@ -229,14 +229,14 @@ Feature: Gradebook calculations for extra credit items before the fix 20150619 And I set the field "Override weight of Test assignment four (extra)" to "1" And I set the field "Weight of Test assignment four (extra)" to "10" And I press "Save changes" - And I go 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 give the grade "80.00" to the user "Student 1" for the grade item "Test assignment one" And I give the grade "30.00" to the user "Student 1" for the grade item "Test assignment two" And I give the grade "10.00" to the user "Student 1" for the grade item "Test assignment four (extra)" And I give the grade "8.00" to the user "Student 1" for the grade item "Test assignment five (extra)" And I press "Save changes" - And I go to "View > User report" in the course gradebook + And I navigate to "View > User report" in the course gradebook And I set the field "Select all or one user" to "Student 1" Then the following should exist in the "user-grade" table: | Grade item | Calculated weight | Grade | Range | Percentage | Contribution to course total | @@ -256,12 +256,12 @@ Feature: Gradebook calculations for extra credit items before the fix 20150619 And I set the field "Override weight of Test assignment four (extra)" to "1" And I set the field "Weight of Test assignment four (extra)" to "10" And I press "Save changes" - When I go to "View > Grader report" in the course gradebook + When I navigate to "View > Grader report" in the course gradebook And I turn editing mode on And I give the grade "10.00" to the user "Student 1" for the grade item "Test assignment four (extra)" And I give the grade "8.00" to the user "Student 1" for the grade item "Test assignment five (extra)" And I press "Save changes" - And I go to "View > User report" in the course gradebook + And I navigate to "View > User report" in the course gradebook And I set the field "Select all or one user" to "Student 1" Then the following should exist in the "user-grade" table: | Grade item | Calculated weight | Grade | Range | Percentage | Contribution to course total | diff --git a/grade/tests/behat/grade_natural_normalisation.feature b/grade/tests/behat/grade_natural_normalisation.feature index 491661dbf45..1f10b75dff2 100644 --- a/grade/tests/behat/grade_natural_normalisation.feature +++ b/grade/tests/behat/grade_natural_normalisation.feature @@ -32,7 +32,7 @@ Feature: We can use natural aggregation and weights will be normalised to a tota | assign | C1 | a7 | Test assignment seven | Submit nothing! | Sub category 1 | 15 | And I log in as "teacher1" And I follow "Course 1" - And I go to "Setup > Gradebook setup" in the course gradebook + And I navigate to "Setup > Gradebook setup" in the course gradebook @javascript Scenario: Setting all weights in a category to exactly one hundred in total. diff --git a/grade/tests/behat/grade_natural_normalisation_20150619.feature b/grade/tests/behat/grade_natural_normalisation_20150619.feature index 0157764c606..b302102589a 100644 --- a/grade/tests/behat/grade_natural_normalisation_20150619.feature +++ b/grade/tests/behat/grade_natural_normalisation_20150619.feature @@ -33,7 +33,7 @@ Feature: Gradebook calculations for natural weights normalisation before the fix | assign | C1 | a7 | Test assignment seven | Submit nothing! | Sub category 1 | 15 | And I log in as "teacher1" And I follow "Course 1" - And I go to "Setup > Gradebook setup" in the course gradebook + And I navigate to "Setup > Gradebook setup" in the course gradebook @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). diff --git a/grade/tests/behat/grade_override_letter.feature b/grade/tests/behat/grade_override_letter.feature index 9328a15749d..be0ff3dd907 100644 --- a/grade/tests/behat/grade_override_letter.feature +++ b/grade/tests/behat/grade_override_letter.feature @@ -16,7 +16,7 @@ Feature: Grade letters can be overridden | teacher1 | C1 | editingteacher | And I log in as "teacher1" And I follow "Course 1" - And I go to "Letters > Edit" in the course gradebook + And I navigate to "Letters > Edit" in the course gradebook Scenario Outline: Grade letters can be completely overridden When I set the following fields to these values: diff --git a/grade/tests/behat/grade_scales.feature b/grade/tests/behat/grade_scales.feature index 36e83376f06..ac76f036114 100644 --- a/grade/tests/behat/grade_scales.feature +++ b/grade/tests/behat/grade_scales.feature @@ -44,12 +44,12 @@ Feature: View gradebook when scales are used And I log in as "teacher1" And I follow "Course 1" And I follow "Test assignment one" - And I navigate to "Edit settings" in current page administration + And I go to "Edit settings" in current page administration And I expand all fieldsets And I set the field "grade[modgrade_type]" to "Scale" And I set the field "grade[modgrade_scale]" to "Letterscale" And I press "Save and display" - And I navigate to "View all submissions" in current page administration + And I go to "View all submissions" in current page administration And I click on "Grade" "link" in the "Student 1" "table_row" And I set the field "Grade" to "A" And I press "Save changes" @@ -71,11 +71,11 @@ Feature: View gradebook when scales are used And I press "Save changes" And I press "Ok" And I follow "Course 1" - And I go to "Setup > Course grade settings" in the course gradebook + 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 contribution to course total" to "Show" And I press "Save changes" - And I go 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 Scenario: Test displaying scales in gradebook in aggregation method Natural @@ -91,14 +91,14 @@ Feature: View gradebook when scales are used | -1- | -2- | -3- | -4- | | Range | F–A | 0.00–5.00 | 0.00–5.00 | | Overall average | C | 3.00 | 3.00 | - And I go to "View > User report" in the course gradebook + And I navigate to "View > User report" in the course gradebook And I select "Student 3" from the "Select all or one user" singleselect And the following should exist in the "user-grade" table: | Grade item | Grade | Range | Percentage | Contribution to course total | | Test assignment one | C | F–A | 50.00 % | 60.00 % | | Sub category 1 total | 3.00 | 0–5 | 60.00 % | - | | Course total | 3.00 | 0–5 | 60.00 % | - | - And I go to "Setup > Gradebook setup" in the course gradebook + And I navigate to "Setup > Gradebook setup" in the course gradebook And the following should exist in the "grade_edit_tree_table" table: | Name | Max grade | | Test assignment one | 5.00 | @@ -137,14 +137,14 @@ Feature: View gradebook when scales are used | -1- | -2- | -3- | -4- | | Range | F–A | 1.00–5.00 | 0.00–100.00 | | Overall average | C | 3.00 | | - And I go to "View > User report" in the course gradebook + And I navigate to "View > User report" in the course gradebook And I select "Student 3" from the "Select all or one user" singleselect And the following should exist in the "user-grade" table: | Grade item | Grade | Range | Percentage | Contribution to course total | | Test assignment one | C | F–A | 50.00 % | | | Sub category () total. | 3.00 | 1–5 | 50.00 % | - | | Course total. | | 0–100 | | - | - And I go to "Setup > Gradebook setup" in the course gradebook + And I navigate to "Setup > Gradebook setup" in the course gradebook And the following should exist in the "grade_edit_tree_table" table: | Name | Max grade | | Test assignment one | A (5) | diff --git a/grade/tests/behat/grade_scales_aggregation.feature b/grade/tests/behat/grade_scales_aggregation.feature index 2685397a38f..dc2092b9d78 100644 --- a/grade/tests/behat/grade_scales_aggregation.feature +++ b/grade/tests/behat/grade_scales_aggregation.feature @@ -39,14 +39,14 @@ Feature: Control the aggregation of the scales Scenario Outline: Scales can be excluded from aggregation Given I log in as "teacher1" And I follow "Course 1" - And I go 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 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 press "Save changes" And I set the following settings for grade item "Course 1": | Aggregation | | - And I go to "View > User report" in the course gradebook + And I navigate to "View > User report" in the course gradebook And I select "Student 1" from the "Select all or one user" singleselect Then the following should exist in the "user-grade" table: | Grade item | Grade | Percentage | Contribution to course total | @@ -60,7 +60,7 @@ Feature: Control the aggregation of the scales And I log out And I log in as "teacher1" And I follow "Course 1" - And I go to "View > User report" in the course gradebook + And I navigate to "View > User report" in the course gradebook And I select "Student 1" from the "Select all or one user" singleselect And the following should exist in the "user-grade" table: | Grade item | Grade | Percentage | Contribution to course total | @@ -84,11 +84,11 @@ Feature: Control the aggregation of the scales Scenario: Weights of scales cannot be edited when they are not aggregated Given I log in as "teacher1" And I follow "Course 1" - And I go 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 When I set the following settings for grade item "Course 1": | Aggregation | Natural | - And I go to "Setup > Gradebook setup" in the course gradebook + And I navigate to "Setup > Gradebook setup" in the course gradebook And I set the field "Override weight of Grade me" to "1" Then the field "Override weight of Grade me" matches value "100.00" And I click on "Edit" "link" in the "Scale me" "table_row" @@ -99,7 +99,7 @@ Feature: Control the aggregation of the scales And the following config values are set as admin: | grade_includescalesinaggregation | 1 | And I follow "Course 1" - And I go to "Setup > Gradebook setup" in the course gradebook + And I navigate to "Setup > Gradebook setup" in the course gradebook And I set the field "Override weight of Grade me" to "1" And the field "Override weight of Grade me" matches value "95.238" And I set the field "Override weight of Scale me" to "1" diff --git a/grade/tests/behat/grade_single_item_scales.feature b/grade/tests/behat/grade_single_item_scales.feature index c818c244b71..3075a030b76 100644 --- a/grade/tests/behat/grade_single_item_scales.feature +++ b/grade/tests/behat/grade_single_item_scales.feature @@ -38,22 +38,22 @@ Feature: View gradebook when single item scales are used And I log in as "teacher1" And I follow "Course 1" And I follow "Test assignment one" - And I navigate to "Edit settings" in current page administration + And I go to "Edit settings" in current page administration And I expand all fieldsets And I set the field "grade[modgrade_type]" to "Scale" And I set the field "grade[modgrade_scale]" to "Singleitem" And I press "Save and display" - And I navigate to "View all submissions" in current page administration + And I go to "View all submissions" in current page administration And I click on "Grade" "link" in the "Student 1" "table_row" And I set the field "Grade" to "A" And I press "Save changes" And I press "Ok" And I follow "Course 1" - And I go to "Setup > Course grade settings" in the course gradebook + 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 contribution to course total" to "Show" And I press "Save changes" - And I go 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 Scenario: Test displaying single item scales in gradebook in aggregation method Natural @@ -65,7 +65,7 @@ Feature: View gradebook when single item scales are used | -1- | -2- | -3- | -4- | | Range | Ace!–Ace! | 0.00–1.00 | 0.00–1.00 | | Overall average | Ace! | 1.00 | 1.00 | - And I go to "View > User report" in the course gradebook + And I navigate to "View > User report" in the course gradebook And I select "Student 1" from the "Select all or one user" singleselect And the following should exist in the "user-grade" table: | Grade item | Grade | Range | Contribution to course total | @@ -78,7 +78,7 @@ Feature: View gradebook when single item scales are used | Test assignment one | - | Ace!–Ace! | - | | Sub category 1 total| - | 0–1 | - | | Course total | - | 0–1 | - | - And I go to "Setup > Gradebook setup" in the course gradebook + And I navigate to "Setup > Gradebook setup" in the course gradebook And the following should exist in the "grade_edit_tree_table" table: | Name | Max grade | | Test assignment one | 1.00 | @@ -103,14 +103,14 @@ Feature: View gradebook when single item scales are used | -1- | -2- | -3- | -4- | | Range | Ace!–Ace! | 0.00–100.0 | 0.00–100.00 | | Overall average | Ace! | | | - And I go to "View > User report" in the course gradebook + And I navigate to "View > User report" in the course gradebook And I select "Student 1" from the "Select all or one user" singleselect And the following should exist in the "user-grade" table: | Grade item | Grade | Range | Contribution to course total | | Test assignment one | Ace! | Ace!–Ace! | | | Sub category () total. | | 0–100 | - | | Course total. | | 0–100 | - | - And I go to "Setup > Gradebook setup" in the course gradebook + And I navigate to "Setup > Gradebook setup" in the course gradebook And the following should exist in the "grade_edit_tree_table" table: | Name | Max grade | | Test assignment one | Ace! (1) | diff --git a/grade/tests/behat/grade_to_pass.feature b/grade/tests/behat/grade_to_pass.feature index 04d1cbb447a..b108e06b107 100644 --- a/grade/tests/behat/grade_to_pass.feature +++ b/grade/tests/behat/grade_to_pass.feature @@ -54,7 +54,7 @@ Feature: We can set the grade to pass value | grade[modgrade_type] | Point | | grade[modgrade_point] | 50 | | Grade to pass | 25 | - And I go 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 click on "Edit assign Test Assignment 1" "link" Then the field "Grade to pass" matches value "25" @@ -64,7 +64,7 @@ Feature: We can set the grade to pass value And I expand all fieldsets And I set the field "Grade to pass" to "30" And I press "Save and return to course" - And I go to "View > Grader report" in the course gradebook + And I navigate to "View > Grader report" in the course gradebook And I click on "Edit assign Test Assignment 1" "link" And the field "Grade to pass" matches value "30" @@ -76,7 +76,7 @@ Feature: We can set the grade to pass value | grade[modgrade_type] | Scale | | grade[modgrade_scale] | Test Scale 1 | | Grade to pass | 3 | - And I go 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 click on "Edit assign Test Assignment 1" "link" And I expand all fieldsets @@ -107,7 +107,7 @@ Feature: We can set the grade to pass value | Submission grade to pass | 40 | | gradinggrade | 20 | | Assessment grade to pass | 10 | - And I go 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 click on "Edit workshop Test Workshop 1 (submission)" "link" And I expand all fieldsets @@ -142,7 +142,7 @@ Feature: We can set the grade to pass value And I add a "Quiz" to section "1" and I fill the form with: | Name | Test Quiz 1 | | Grade to pass | 9.5 | - And I go 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 click on "Edit quiz Test Quiz 1" "link" And I expand all fieldsets @@ -160,7 +160,7 @@ Feature: We can set the grade to pass value | Name | Test Lesson 1 | | Description | Test | | Grade to pass | 90 | - And I go 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 click on "Edit lesson Test Lesson 1" "link" And I expand all fieldsets @@ -179,7 +179,7 @@ Feature: We can set the grade to pass value | Description | Test | | Aggregate type | Average of ratings | | Grade to pass | 90 | - And I go 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 click on "Edit data Test Database 1" "link" And I expand all fieldsets @@ -207,7 +207,7 @@ Feature: We can set the grade to pass value | Description | Test | | Aggregate type | Average of ratings | | Grade to pass | 90 | - And I go 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 click on "Edit forum Test Forum 1" "link" And I expand all fieldsets @@ -226,7 +226,7 @@ Feature: We can set the grade to pass value | Description | Test | | Aggregate type | Average of ratings | | Grade to pass | 90 | - And I go 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 click on "Edit glossary Test Glossary 1" "link" And I expand all fieldsets diff --git a/grade/tests/behat/grade_view.feature b/grade/tests/behat/grade_view.feature index 4cc19cb0fd0..f2c85c47bcd 100644 --- a/grade/tests/behat/grade_view.feature +++ b/grade/tests/behat/grade_view.feature @@ -51,14 +51,14 @@ Feature: We can enter in grades and view reports from the gradebook And I log out And I log in as "teacher1" And I follow "Course 1" - And I go 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 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 press "Save changes" Scenario: Grade a grade item and ensure the results display correctly in the gradebook - When I go to "View > User report" in the course gradebook + When I navigate to "View > User report" in the course gradebook And "Grader report" "link" should exist And "Outcomes report" "link" should exist And the "Select all or one user" select box should contain "All users (1)" @@ -79,12 +79,12 @@ Feature: We can enter in grades and view reports from the gradebook And "Course 1" row "Grade" column of "overview-grade" table should not contain "90.00" Scenario: We can add a weighting to a grade item and it is displayed properly in the user report - When I go to "Setup > Gradebook setup" in the course gradebook + When I navigate to "Setup > Gradebook setup" in the course gradebook And I set the following settings for grade item "Course 1": | Aggregation | Weighted mean of grades | And I set the field "Extra credit value for Test assignment name" to "0.72" And I press "Save changes" - And I go to "Setup > Course grade settings" in the course gradebook + And I navigate to "Setup > Course grade settings" in the course gradebook And I set the following fields to these values: | Show weightings | Show | And I press "Save changes" diff --git a/mod/assign/tests/behat/steps_blind_marking.feature b/mod/assign/tests/behat/steps_blind_marking.feature index f012247e5a6..c78817f7c81 100644 --- a/mod/assign/tests/behat/steps_blind_marking.feature +++ b/mod/assign/tests/behat/steps_blind_marking.feature @@ -44,7 +44,7 @@ Feature: Assignments correctly add feedback to the grade report when workflow an And I log in as "teacher1" And I follow "Course 1" And I follow "Test assignment name" - And I navigate to "View all submissions" in current page administration + And I go to "View all submissions" in current page administration And I should see "Not marked" in the "I'm the student's first submission" "table_row" And I click on "Grade" "link" in the "I'm the student's first submission" "table_row" And I set the field "Grade out of 100" to "50" @@ -54,7 +54,7 @@ Feature: Assignments correctly add feedback to the grade report when workflow an And I press "Ok" And I click on "Edit settings" "link" And I follow "Test assignment name" - And I navigate to "View all submissions" in current page administration + And I go to "View all submissions" in current page administration And I should see "In review" in the "I'm the student's first submission" "table_row" @javascript @@ -65,7 +65,7 @@ Feature: Assignments correctly add feedback to the grade report when workflow an And I press "Ok" And I click on "Edit settings" "link" And I follow "Test assignment name" - And I navigate to "View all submissions" in current page administration + And I go to "View all submissions" in current page administration And I should see "Ready for release" in the "I'm the student's first submission" "table_row" And I click on "Grade" "link" in the "I'm the student's first submission" "table_row" And I set the field "Marking workflow state" to "Released" @@ -73,14 +73,14 @@ Feature: Assignments correctly add feedback to the grade report when workflow an And I press "Ok" And I click on "Edit settings" "link" And I follow "Test assignment name" - And I navigate to "View all submissions" in current page administration + And I go to "View all submissions" in current page administration 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 press "Continue" And I log out And I log in as "student1" And I follow "Course 1" - And I go to "User report" in the course gradebook + And I navigate to "User report" in the course gradebook Then I should see "50" And I should see "Great job! Lol, not really." @@ -92,7 +92,7 @@ Feature: Assignments correctly add feedback to the grade report when workflow an And I press "Ok" And I click on "Edit settings" "link" And I follow "Test assignment name" - And I navigate to "View all submissions" in current page administration + And I go to "View all submissions" in current page administration And I should see "Ready for release" in the "I'm the student's first submission" "table_row" And I set the field "Grading action" to "Reveal student identities" And I press "Continue" @@ -102,11 +102,11 @@ Feature: Assignments correctly add feedback to the grade report when workflow an And I press "Ok" And I click on "Edit settings" "link" And I follow "Test assignment name" - And I navigate to "View all submissions" in current page administration + And I go to "View all submissions" in current page administration And I should see "Released" in the "Student 1" "table_row" And I log out And I log in as "student1" And I follow "Course 1" - And I go to "User report" in the course gradebook + And I navigate to "User report" in the course gradebook Then I should see "50" And I should see "Great job! Lol, not really." diff --git a/user/tests/behat/user_grade_navigation.feature b/user/tests/behat/user_grade_navigation.feature index dd28c2b203a..30fef566bef 100644 --- a/user/tests/behat/user_grade_navigation.feature +++ b/user/tests/behat/user_grade_navigation.feature @@ -29,7 +29,7 @@ Feature: The student can navigate to their grades page and user grade report. | assign | C2 | a4 | Test assignment four | Submit something! | 150 | And I log in as "teacher1" And I follow "Course 1" - And I go 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 give the grade "150.00" to the user "Student 1" for the grade item "Test assignment one" And I give the grade "67.00" to the user "Student 1" for the grade item "Test assignment two"