Skip to content

Commit 44f460c

Browse files
committed
MDL-56614 behat: rename step for navigating in the gradebook
1 parent e5287f9 commit 44f460c

File tree

50 files changed

+299
-299
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+299
-299
lines changed

admin/tool/behat/tests/behat/data_generators.feature

+4-4
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ Feature: Set up contextual data for tests
322322
When I log in as "admin"
323323
And I am on course index
324324
And I follow "Course 1"
325-
And I go to "View > Grader report" in the course gradebook
325+
And I navigate to "View > Grader report" in the course gradebook
326326
Then I should see "Grade category 1"
327327
And I should see "Grade sub category 2"
328328

@@ -346,7 +346,7 @@ Feature: Set up contextual data for tests
346346
When I log in as "admin"
347347
And I am on site homepage
348348
And I follow "Course 1"
349-
And I go to "Setup > Gradebook setup" in the course gradebook
349+
And I navigate to "Setup > Gradebook setup" in the course gradebook
350350
Then I should see "Test Grade Item 1"
351351
And I follow "Edit Test Grade Item 1"
352352
And I expand all fieldsets
@@ -375,7 +375,7 @@ Feature: Set up contextual data for tests
375375
When I log in as "admin"
376376
And I am on site homepage
377377
And I follow "Course 1"
378-
And I go to "Scales" in the course gradebook
378+
And I navigate to "Scales" in the course gradebook
379379
Then I should see "Test Scale 1"
380380
And I should see "Disappointing, Good, Very good, Excellent"
381381

@@ -426,7 +426,7 @@ Feature: Set up contextual data for tests
426426
When I log in as "admin"
427427
And I am on site homepage
428428
And I follow "Course 1"
429-
And I go to "Setup > Gradebook setup" in the course gradebook
429+
And I navigate to "Setup > Gradebook setup" in the course gradebook
430430
Then I should see "Test Outcome Grade Item 1"
431431
And I follow "Edit Test Outcome Grade Item 1"
432432
And the field "Outcome" matches value "Grade outcome 1"

admin/tool/recyclebin/tests/behat/backup_user_data.feature

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,6 @@ Feature: Backup user data
6565
And I log out
6666
And I log in as "student1"
6767
And I follow "Course 1"
68-
When I go to "User report" in the course gradebook
68+
When I navigate to "User report" in the course gradebook
6969
Then "Quiz 1" row "Grade" column of "user-grade" table should contain "5"
7070
And "Quiz 1" row "Percentage" column of "user-grade" table should contain "50"

blocks/activity_results/tests/behat/addblockinactivity.feature

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Feature: The activity results block displays student scores
5050
And I press "Save and return to course"
5151
And I follow "Course 1"
5252
And I should see "Test page name"
53-
And I go to "View > Grader report" in the course gradebook
53+
And I navigate to "View > Grader report" in the course gradebook
5454
And I turn editing mode on
5555
And I give the grade "90.00" to the user "Student 1" for the grade item "Test assignment 1"
5656
And I give the grade "80.00" to the user "Student 2" for the grade item "Test assignment 1"

blocks/activity_results/tests/behat/highscoreswithoutgroups.feature

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Feature: The activity results block displays student scores
3232
| Description | Offline text |
3333
| assignsubmission_file_enabled | 0 |
3434
And I follow "Course 1"
35-
And I go to "View > Grader report" in the course gradebook
35+
And I navigate to "View > Grader report" in the course gradebook
3636
And I turn editing mode on
3737
And I give the grade "90.00" to the user "Student 1" for the grade item "Test assignment"
3838
And I give the grade "80.00" to the user "Student 2" for the grade item "Test assignment"

blocks/activity_results/tests/behat/highscoreswithscales.feature

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Feature: The activity results block displays student scores as scales
2626
| student5 | C1 | student |
2727
And I log in as "teacher1"
2828
And I follow "Course 1"
29-
And I go to "Scales" in the course gradebook
29+
And I navigate to "Scales" in the course gradebook
3030
And I press "Add a new scale"
3131
And I set the following fields to these values:
3232
| Name | My Scale |
@@ -41,7 +41,7 @@ Feature: The activity results block displays student scores as scales
4141
| id_grade_modgrade_type | Scale |
4242
| id_grade_modgrade_scale | My Scale |
4343
And I follow "Course 1"
44-
And I go to "View > Grader report" in the course gradebook
44+
And I navigate to "View > Grader report" in the course gradebook
4545
And I turn editing mode on
4646
And I give the grade "Excellent!" to the user "Student 1" for the grade item "Test assignment"
4747
And I give the grade "Very good" to the user "Student 2" for the grade item "Test assignment"

blocks/activity_results/tests/behat/highscoreswithscalesandgroups.feature

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Feature: The activity results block displays student scores as scales
4343
| student6 | G3 |
4444
And I log in as "teacher1"
4545
And I follow "Course 1"
46-
And I go to "Scales" in the course gradebook
46+
And I navigate to "Scales" in the course gradebook
4747
And I press "Add a new scale"
4848
And I set the following fields to these values:
4949
| Name | My Scale |
@@ -59,7 +59,7 @@ Feature: The activity results block displays student scores as scales
5959
| id_grade_modgrade_scale | My Scale |
6060
| Group mode | Separate groups |
6161
And I follow "Course 1"
62-
And I go to "View > Grader report" in the course gradebook
62+
And I navigate to "View > Grader report" in the course gradebook
6363
And I turn editing mode on
6464
And I give the grade "Excellent!" to the user "Student 1" for the grade item "Test assignment"
6565
And I give the grade "Very good" to the user "Student 2" for the grade item "Test assignment"

blocks/activity_results/tests/behat/highscoreswithseperategroups.feature

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Feature: The activity results block displays student scores
5050
| assignsubmission_file_enabled | 0 |
5151
| Group mode | Separate groups |
5252
And I follow "Course 1"
53-
And I go to "View > Grader report" in the course gradebook
53+
And I navigate to "View > Grader report" in the course gradebook
5454
And I turn editing mode on
5555
And I give the grade "100.00" to the user "Student 1" for the grade item "Test assignment"
5656
And I give the grade "90.00" to the user "Student 2" for the grade item "Test assignment"

blocks/activity_results/tests/behat/highscoreswithvisiblegroups.feature

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Feature: The activity results block displays student scores
5050
| assignsubmission_file_enabled | 0 |
5151
| Group mode | Visible groups |
5252
And I follow "Course 1"
53-
And I go to "View > Grader report" in the course gradebook
53+
And I navigate to "View > Grader report" in the course gradebook
5454
And I turn editing mode on
5555
And I give the grade "100.00" to the user "Student 1" for the grade item "Test assignment"
5656
And I give the grade "90.00" to the user "Student 2" for the grade item "Test assignment"

blocks/activity_results/tests/behat/lowscoreswithoutgroups.feature

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Feature: The activity results block displays student scores
3232
| Description | Offline text |
3333
| assignsubmission_file_enabled | 0 |
3434
And I follow "Course 1"
35-
And I go to "View > Grader report" in the course gradebook
35+
And I navigate to "View > Grader report" in the course gradebook
3636
And I turn editing mode on
3737
And I give the grade "90.00" to the user "Student 1" for the grade item "Test assignment"
3838
And I give the grade "80.00" to the user "Student 2" for the grade item "Test assignment"

blocks/activity_results/tests/behat/lowscoreswithscales.feature

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Feature: The activity results block displays student scores as scales
2626
| student5 | C1 | student |
2727
And I log in as "teacher1"
2828
And I follow "Course 1"
29-
And I go to "Scales" in the course gradebook
29+
And I navigate to "Scales" in the course gradebook
3030
And I press "Add a new scale"
3131
And I set the following fields to these values:
3232
| Name | My Scale |
@@ -41,7 +41,7 @@ Feature: The activity results block displays student scores as scales
4141
| id_grade_modgrade_type | Scale |
4242
| id_grade_modgrade_scale | My Scale |
4343
And I follow "Course 1"
44-
And I go to "View > Grader report" in the course gradebook
44+
And I navigate to "View > Grader report" in the course gradebook
4545
And I turn editing mode on
4646
And I give the grade "Excellent!" to the user "Student 1" for the grade item "Test assignment"
4747
And I give the grade "Very good" to the user "Student 2" for the grade item "Test assignment"

blocks/activity_results/tests/behat/lowscoreswithscalesandgroups.feature

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Feature: The activity results block displays student scores as scales
4343
| student6 | G3 |
4444
And I log in as "teacher1"
4545
And I follow "Course 1"
46-
And I go to "Scales" in the course gradebook
46+
And I navigate to "Scales" in the course gradebook
4747
And I press "Add a new scale"
4848
And I set the following fields to these values:
4949
| Name | My Scale |
@@ -59,7 +59,7 @@ Feature: The activity results block displays student scores as scales
5959
| id_grade_modgrade_scale | My Scale |
6060
| Group mode | Separate groups |
6161
And I follow "Course 1"
62-
And I go to "View > Grader report" in the course gradebook
62+
And I navigate to "View > Grader report" in the course gradebook
6363
And I turn editing mode on
6464
And I give the grade "Excellent!" to the user "Student 1" for the grade item "Test assignment"
6565
And I give the grade "Very good" to the user "Student 2" for the grade item "Test assignment"

blocks/activity_results/tests/behat/lowscoreswithseperategroups.feature

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Feature: The activity results block displays student scores
5050
| assignsubmission_file_enabled | 0 |
5151
| Group mode | Separate groups |
5252
And I follow "Course 1"
53-
And I go to "View > Grader report" in the course gradebook
53+
And I navigate to "View > Grader report" in the course gradebook
5454
And I turn editing mode on
5555
And I give the grade "100.00" to the user "Student 1" for the grade item "Test assignment"
5656
And I give the grade "90.00" to the user "Student 2" for the grade item "Test assignment"

blocks/activity_results/tests/behat/lowscoreswithvisiblegroups.feature

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Feature: The activity results block displays student scores
5050
| assignsubmission_file_enabled | 0 |
5151
| Group mode | Visible groups |
5252
And I follow "Course 1"
53-
And I go to "View > Grader report" in the course gradebook
53+
And I navigate to "View > Grader report" in the course gradebook
5454
And I turn editing mode on
5555
And I give the grade "100.00" to the user "Student 1" for the grade item "Test assignment"
5656
And I give the grade "90.00" to the user "Student 2" for the grade item "Test assignment"

grade/export/txt/tests/behat/export.feature

+5-5
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@ Feature: I need to export grades as text
2222
| assign | C1 | a2 | Test assignment name 2 | Submit your online text | 1 |
2323
And I log in as "teacher1"
2424
And I follow "Course 1"
25-
And I go to "View > Grader report" in the course gradebook
25+
And I navigate to "View > Grader report" in the course gradebook
2626
And I turn editing mode on
2727
And I give the grade "80.00" to the user "Student 1" for the grade item "Test assignment name"
2828
And I press "Save changes"
2929

3030
@javascript
3131
Scenario: Export grades as text
32-
When I go to "Export > Plain text file" in the course gradebook
32+
When I navigate to "Export > Plain text file" in the course gradebook
3333
And I expand all fieldsets
3434
And I click on "Course total" "checkbox"
3535
And I set the field "Grade export decimal points" to "1"
@@ -41,7 +41,7 @@ Feature: I need to export grades as text
4141

4242
@javascript
4343
Scenario: Export grades as text using real
44-
When I go to "Export > Plain text file" in the course gradebook
44+
When I navigate to "Export > Plain text file" in the course gradebook
4545
And I expand all fieldsets
4646
And I set the following fields to these values:
4747
| Real | 1 |
@@ -52,7 +52,7 @@ Feature: I need to export grades as text
5252

5353
@javascript
5454
Scenario: Export grades as text using percentages and letters
55-
When I go to "Export > Plain text file" in the course gradebook
55+
When I navigate to "Export > Plain text file" in the course gradebook
5656
And I set the following fields to these values:
5757
| Percentage | 1 |
5858
| Letter | 1 |
@@ -65,7 +65,7 @@ Feature: I need to export grades as text
6565

6666
@javascript
6767
Scenario: Export grades as text using real, percentages and letters
68-
When I go to "Export > Plain text file" in the course gradebook
68+
When I navigate to "Export > Plain text file" in the course gradebook
6969
And I set the following fields to these values:
7070
| Real | 1 |
7171
| Percentage | 1 |

grade/export/xml/tests/behat/export.feature

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ Feature: I need to export grades as xml
2121
| assign | C1 | a1 | Test assignment name | Submit something! |
2222
And I log in as "teacher1"
2323
And I follow "Course 1"
24-
And I go to "View > Grader report" in the course gradebook
24+
And I navigate to "View > Grader report" in the course gradebook
2525
And I turn editing mode on
2626
And I give the grade "80.00" to the user "Student 1" for the grade item "Test assignment name"
2727
And I press "Save changes"
2828

2929
@javascript
3030
Scenario: Export grades as text
31-
When I go to "Export > XML file" in the course gradebook
31+
When I navigate to "Export > XML file" in the course gradebook
3232
And I expand all fieldsets
3333
And I set the field "Grade export decimal points" to "1"
3434
And I press "Download"

grade/report/grader/tests/behat/ajax_grader.feature

+8-8
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ Feature: Using the AJAX grading feature of Grader report to update grades and fe
5555
| grade_report_showquickfeedback | 0 |
5656
And I log in as "teacher1"
5757
And I follow "Course 1"
58-
And I go to "View > Grader report" in the course gradebook
58+
And I navigate to "View > Grader report" in the course gradebook
5959
And I click on student "Student 2" for grade item "Item VU"
6060
Then I should see a grade field for "Student 2" and grade item "Item VU"
6161
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
9393
And the following should exist in the "user-grades" table:
9494
| -1- | -16- |
9595
| Student 1 | 90.00 |
96-
And I go to "View > Grader report" in the course gradebook
96+
And I navigate to "View > Grader report" in the course gradebook
9797
And the following should exist in the "user-grades" table:
9898
| -1- | -6- | -7- | -13- | -16- |
9999
| Student 1 | - | - | - | 90.00 |
@@ -107,7 +107,7 @@ Feature: Using the AJAX grading feature of Grader report to update grades and fe
107107
| grade_report_showquickfeedback | 1 |
108108
And I log in as "teacher1"
109109
And I follow "Course 1"
110-
And I go to "View > Grader report" in the course gradebook
110+
And I navigate to "View > Grader report" in the course gradebook
111111
And I click on student "Student 2" for grade item "Item VU"
112112
Then I should see a grade field for "Student 2" and grade item "Item VU"
113113
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
127127
And I set the field "ajaxfeedback" to "Student 2 SU feedback"
128128
And I press key "13" in the field "ajaxfeedback"
129129
# Reload grader report:
130-
And I go to "View > User report" in the course gradebook
131-
And I go to "View > Grader report" in the course gradebook
130+
And I navigate to "View > User report" in the course gradebook
131+
And I navigate to "View > Grader report" in the course gradebook
132132
And the following should exist in the "user-grades" table:
133133
| -1- | -7- | -13- | -16- |
134134
| 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
144144
| grade_report_showquickfeedback | 1 |
145145
And I log in as "teacher1"
146146
And I follow "Course 1"
147-
And I go to "View > Grader report" in the course gradebook
147+
And I navigate to "View > Grader report" in the course gradebook
148148
And I click on student "Student 2" for grade item "Item VU"
149149
Then I should see a grade field for "Student 2" and grade item "Item VU"
150150
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
164164
| grade_report_showquickfeedback | 1 |
165165
And I log in as "teacher1"
166166
And I follow "Course 1"
167-
And I go to "View > Grader report" in the course gradebook
167+
And I navigate to "View > Grader report" in the course gradebook
168168
And I turn editing mode on
169169
Then I should not see a grade field for "Student 2" and grade item "Item VL"
170170
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
195195
| grade_report_showquickfeedback | 1 |
196196
And I log in as "teacher1"
197197
And I follow "Course 1"
198-
And I go to "View > Grader report" in the course gradebook
198+
And I navigate to "View > Grader report" in the course gradebook
199199
And I turn editing mode on
200200
And I change window size to "large"
201201
And I set "=[[i1]] + [[i3]] + [[gsc]]" calculation for grade item "Calc Item" with idnumbers:

grade/report/grader/tests/behat/switch_views.feature

+3-3
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Feature: We can change what we are viewing on the grader report
4646
And I log out
4747
And I log in as "teacher1"
4848
And I follow "Course 1"
49-
And I go to "View > Grader report" in the course gradebook
49+
And I navigate to "View > Grader report" in the course gradebook
5050
And I turn editing mode on
5151
And I give the grade "80.00" to the user "Student 1" for the grade item "Test assignment name 1"
5252
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
6060
And I open "Test assignment name 2" actions menu
6161
And I click on "Hide" "link" in the "Test assignment name 2" activity
6262
And I follow "Course 1"
63-
And I go to "View > Grader report" in the course gradebook
63+
And I navigate to "View > Grader report" in the course gradebook
6464
And I should see "Test assignment name 1"
6565
And I should see "Test assignment name 2"
6666
And I should see "Course total"
@@ -96,7 +96,7 @@ Feature: We can change what we are viewing on the grader report
9696
And I log out
9797
And I log in as "teacher1"
9898
And I follow "Course 1"
99-
And I go to "View > Grader report" in the course gradebook
99+
And I navigate to "View > Grader report" in the course gradebook
100100
And I should see "Test assignment name 1"
101101
And I should see "Test assignment name 2"
102102
And I should see "Course total"

grade/report/history/tests/behat/basic_functionality.feature

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Feature: A teacher checks the grade history report in a course
3030
And I add a "Assignment" to section "1" and I fill the form with:
3131
| Assignment name | Rewarding assignment |
3232
| Description | After writing your behat test go grab a beer! |
33-
And I go to "View > Grader report" in the course gradebook
33+
And I navigate to "View > Grader report" in the course gradebook
3434
And I turn editing mode on
3535
And I give the grade "50.00" to the user "Student 1" for the grade item "The greatest assignment ever"
3636
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
4040
And I log out
4141
And I log in as "teacher2"
4242
And I follow "Course 1"
43-
And I go to "View > Grader report" in the course gradebook
43+
And I navigate to "View > Grader report" in the course gradebook
4444
And I turn editing mode on
4545
And I give the grade "70.00" to the user "Student 1" for the grade item "The greatest assignment ever"
4646
And I give the grade "80.00" to the user "Student 1" for the grade item "Rewarding assignment"

0 commit comments

Comments
 (0)