diff --git a/availability/condition/grade/tests/behat/availability_grade.feature b/availability/condition/grade/tests/behat/availability_grade.feature index a01e871273e..55e6e3005a7 100644 --- a/availability/condition/grade/tests/behat/availability_grade.feature +++ b/availability/condition/grade/tests/behat/availability_grade.feature @@ -90,7 +90,8 @@ Feature: availability_grade And I navigate to "Submissions" in current page administration # Pick the grade link in the row that has s@example.com in it. And I change window size to "large" - And I click on "Grade" "link" in the "s@example.com" "table_row" + And I click on "Grade actions" "actionmenu" in the "s@example.com" "table_row" + And I choose "Grade" in the open action menu And I change window size to "medium" And I set the field "Grade out of 100" to "40" And I click on "Save changes" "button" diff --git a/completion/tests/behat/activity_completion_criteria.feature b/completion/tests/behat/activity_completion_criteria.feature index 416dfb71565..3cb37864486 100644 --- a/completion/tests/behat/activity_completion_criteria.feature +++ b/completion/tests/behat/activity_completion_criteria.feature @@ -53,7 +53,8 @@ Feature: Allow to mark course as completed without cron for activity completion Scenario: Update course completion when teacher grades a single assignment Given I am on the "Test assignment name" "assign activity" page logged in as teacher1 And I navigate to "Submissions" in current page administration - And I click on "Grade" "link" in the "student1@example.com" "table_row" + And I click on "Grade actions" "actionmenu" in the "student1@example.com" "table_row" + And I choose "Grade" in the open action menu And I set the field "Grade out of 100" to "40" And I click on "Save changes" "button" And I am on "Completion course" course homepage @@ -80,14 +81,16 @@ Feature: Allow to mark course as completed without cron for activity completion And I press "Save changes" And I am on the "Test assignment name" "assign activity" page And I navigate to "Submissions" in current page administration - And I click on "Grade" "link" in the "student1@example.com" "table_row" + And I click on "Grade actions" "actionmenu" in the "student1@example.com" "table_row" + And I choose "Grade" in the open action menu And I set the field "Grade out of 100" to "40" And I click on "Save changes" "button" And I am on the "Completion course" course page logged in as student1 And I should see "Status: In progress" And I am on the "Test assignment name2" "assign activity" page logged in as teacher1 And I navigate to "Submissions" in current page administration - And I click on "Grade" "link" in the "student1@example.com" "table_row" + And I click on "Grade actions" "actionmenu" in the "student1@example.com" "table_row" + And I choose "Grade" in the open action menu And I set the field "Grade out of 100" to "40" And I click on "Save changes" "button" When I am on the "Completion course" course page logged in as student1 diff --git a/completion/tests/behat/restrict_activity_by_grade.feature b/completion/tests/behat/restrict_activity_by_grade.feature index 437f863d3ec..5fd7e1b2bb5 100644 --- a/completion/tests/behat/restrict_activity_by_grade.feature +++ b/completion/tests/behat/restrict_activity_by_grade.feature @@ -46,7 +46,8 @@ Feature: Restrict activity availability through grade conditions And I am on the "Grade assignment" "assign activity" page logged in as teacher1 And I navigate to "Submissions" in current page administration And I change window size to "large" - And I click on "Grade" "link" in the "Student First" "table_row" + And I click on "Grade actions" "actionmenu" in the "Student First" "table_row" + And I choose "Grade" in the open action menu And I change window size to "medium" And I set the following fields to these values: | Grade | 21 | diff --git a/completion/tests/behat/restrict_section_availability.feature b/completion/tests/behat/restrict_section_availability.feature index 5ebca538c1a..ffc73617268 100644 --- a/completion/tests/behat/restrict_section_availability.feature +++ b/completion/tests/behat/restrict_section_availability.feature @@ -69,7 +69,8 @@ Feature: Restrict sections availability through completion or grade conditions And I am on the "Grade assignment" "assign activity" page logged in as teacher1 And I navigate to "Submissions" in current page administration And I change window size to "large" - And I click on "Grade" "link" in the "Student First" "table_row" + And I click on "Grade actions" "actionmenu" in the "Student First" "table_row" + And I choose "Grade" in the open action menu And I change window size to "medium" And I set the following fields to these values: | Grade | 21 | diff --git a/grade/grading/tests/behat/behat_grading.php b/grade/grading/tests/behat/behat_grading.php index 18f32849eff..48c88c60df1 100644 --- a/grade/grading/tests/behat/behat_grading.php +++ b/grade/grading/tests/behat/behat_grading.php @@ -87,19 +87,19 @@ class behat_grading extends behat_base { public function i_go_to_activity_advanced_grading_page($userfullname, $activityname) { // Step to access the user grade page from the grading page. - $gradetext = get_string('gradeverb'); - $this->execute('behat_navigation::go_to_breadcrumb_location', $this->escape($activityname)); $this->execute('behat_general::click_link', get_string('gradeitem:submissions', 'mod_assign')); $this->execute('behat_general::i_click_on_in_the', array( - $this->escape($gradetext), - 'link', + $this->escape(get_string('gradeactions', 'assign')), + 'actionmenu', $this->escape($userfullname), 'table_row' )); + + $this->execute('behat_action_menu::i_choose_in_the_open_action_menu', get_string('gradeverb')); } /** diff --git a/grade/report/singleview/tests/behat/bulk_insert_grades.feature b/grade/report/singleview/tests/behat/bulk_insert_grades.feature index 854aedc1368..df2fa6cee18 100644 --- a/grade/report/singleview/tests/behat/bulk_insert_grades.feature +++ b/grade/report/singleview/tests/behat/bulk_insert_grades.feature @@ -55,7 +55,8 @@ Feature: We can bulk insert grades for students in a course Scenario: I can bulk insert grades and check their override flags for grade view. Given I am on the "Test assignment one" "assign activity" page And I navigate to "Submissions" in current page administration - And I click on "Grade" "link" in the "Student 1" "table_row" + And I click on "Grade actions" "actionmenu" in the "Student 1" "table_row" + And I choose "Grade" in the open action menu And I set the following fields to these values: | Grade out of 100 | 50 | And I press "Save changes" @@ -98,7 +99,8 @@ Feature: We can bulk insert grades for students in a course Scenario: I can bulk insert grades and check their override flags for user view. Given I am on the "Test assignment two" "assign activity" page And I navigate to "Submissions" in current page administration - And I click on "Grade" "link" in the "Student 1" "table_row" + And I click on "Grade actions" "actionmenu" in the "Student 1" "table_row" + And I choose "Grade" in the open action menu And I set the following fields to these values: | Grade out of 100 | 50 | And I press "Save changes" diff --git a/grade/tests/behat/grade_feedback.feature b/grade/tests/behat/grade_feedback.feature index 9903d1c28be..3c5ec2975e9 100644 --- a/grade/tests/behat/grade_feedback.feature +++ b/grade/tests/behat/grade_feedback.feature @@ -34,7 +34,8 @@ Feature: Display feedback on the Grader report | Grade item 1 | student1 | | Longer feedback text content | And I am on the "Test assignment name 1" "assign activity" page logged in as teacher1 And I navigate to "Submissions" in current page administration - And I click on "Grade" "link" in the "Student 1" "table_row" + And I click on "Grade actions" "actionmenu" in the "Student 1" "table_row" + And I choose "Grade" in the open action menu And I set the following fields to these values: | Grade out of 100 | 50 | | Feedback comments | This is feedback | diff --git a/grade/tests/behat/grade_item_form_unhide.feature b/grade/tests/behat/grade_item_form_unhide.feature index 688de85a532..a49d1c20057 100644 --- a/grade/tests/behat/grade_item_form_unhide.feature +++ b/grade/tests/behat/grade_item_form_unhide.feature @@ -22,7 +22,8 @@ Feature: Teacher can unhide grades on the edit page allowing students to view th And I am on the "Test assignment name" "assign activity" page logged in as teacher1 And I navigate to "Submissions" in current page administration And I change window size to "large" - And I click on "Grade" "link" in the "Student 1" "table_row" + And I click on "Grade actions" "actionmenu" in the "Student 1" "table_row" + And I choose "Grade" in the open action menu And I set the following fields to these values: | Grade out of 100 | 50 | | Feedback comments | I'm the teacher feedback | diff --git a/grade/tests/behat/grade_regrade_do_not_override.feature b/grade/tests/behat/grade_regrade_do_not_override.feature index 34bfcffb3a2..728afdeafd5 100644 --- a/grade/tests/behat/grade_regrade_do_not_override.feature +++ b/grade/tests/behat/grade_regrade_do_not_override.feature @@ -25,7 +25,8 @@ Feature: Regrading grades does not unnecessarily mark some as overriden And I press "Save changes" And I am on the "Assignment 1" "assign activity" page And I navigate to "Submissions" in current page administration - And I click on "Grade" "link" in the "Student 1" "table_row" + And I click on "Grade actions" "actionmenu" in the "Student 1" "table_row" + And I choose "Grade" in the open action menu And I set the field "Grade out of 100" to "80" And I press "Save and show next" And I set the field "Grade out of 100" to "60" @@ -56,7 +57,8 @@ Feature: Regrading grades does not unnecessarily mark some as overriden Scenario: Confirm overridden course total does not get regraded when activity grade is changed Given I am on the "Assignment 1" "assign activity" page And I navigate to "Submissions" in current page administration - And I click on "Grade" "link" in the "Student 1" "table_row" + And I click on "Grade actions" "actionmenu" in the "Student 1" "table_row" + And I choose "Grade" in the open action menu And I set the field "Grade out of 100" to "90" And I press "Save and show next" And I set the field "Grade out of 100" to "70" diff --git a/grade/tests/behat/grade_scales.feature b/grade/tests/behat/grade_scales.feature index 1bbe9f8cdc9..532b13cc03b 100644 --- a/grade/tests/behat/grade_scales.feature +++ b/grade/tests/behat/grade_scales.feature @@ -47,7 +47,8 @@ Feature: View gradebook when scales are used And I set the field "grade[modgrade_scale]" to "Letterscale" And I press "Save and display" And I navigate to "Submissions" in current page administration - And I click on "Grade" "link" in the "Student 1" "table_row" + And I click on "Grade actions" "actionmenu" in the "Student 1" "table_row" + And I choose "Grade" in the open action menu And I set the field "Grade" to "A" And I press "Save changes" And I click on "[data-action=next-user]" "css_element" diff --git a/grade/tests/behat/grade_single_item_scales.feature b/grade/tests/behat/grade_single_item_scales.feature index 9f9e271253f..1696ee0047b 100644 --- a/grade/tests/behat/grade_single_item_scales.feature +++ b/grade/tests/behat/grade_single_item_scales.feature @@ -45,7 +45,8 @@ Feature: View gradebook when single item scales are used And I set the field "grade[modgrade_scale]" to "EN Singleitem" And I press "Save and display" And I navigate to "Submissions" in current page administration - And I click on "Grade" "link" in the "Student 1" "table_row" + And I click on "Grade actions" "actionmenu" in the "Student 1" "table_row" + And I choose "Grade" in the open action menu And I set the field "Grade" to "A" And I press "Save changes" When I am on the "Course 1" "grades > course grade settings" page diff --git a/lib/form/tests/behat/modgrade_validation.feature b/lib/form/tests/behat/modgrade_validation.feature index 9339d9ef3b6..c1f8272b5eb 100644 --- a/lib/form/tests/behat/modgrade_validation.feature +++ b/lib/form/tests/behat/modgrade_validation.feature @@ -89,7 +89,8 @@ Feature: Using the activity grade form element And I press "Save and display" And I am on the "Test assignment name" "assign activity" page And I navigate to "Submissions" in current page administration - And I click on "Grade" "link" in the "Student 1" "table_row" + And I click on "Grade actions" "actionmenu" in the "Student 1" "table_row" + And I choose "Grade" in the open action menu And I set the field "Grade" to "C" And I press "Save changes" And I follow "Edit settings" @@ -121,7 +122,8 @@ Feature: Using the activity grade form element Scenario: Attempting to change the maximum grade when no rescaling option has been chosen Given I am on the "Test assignment name" "assign activity" page logged in as teacher1 And I navigate to "Submissions" in current page administration - And I click on "Grade" "link" in the "Student 1" "table_row" + And I click on "Grade actions" "actionmenu" in the "Student 1" "table_row" + And I choose "Grade" in the open action menu And I set the field "Grade out of 100" to "50" And I press "Save changes" And I follow "Edit settings" diff --git a/mod/assign/feedback/comments/tests/behat/preserve_changes_on_validation_failure.feature b/mod/assign/feedback/comments/tests/behat/preserve_changes_on_validation_failure.feature index 68600fcaad8..36f42e9126b 100644 --- a/mod/assign/feedback/comments/tests/behat/preserve_changes_on_validation_failure.feature +++ b/mod/assign/feedback/comments/tests/behat/preserve_changes_on_validation_failure.feature @@ -24,7 +24,8 @@ Feature: Check that any changes to assignment feedback comments are not lost And I am on the "Test assignment name" Activity page logged in as teacher1 And I navigate to "Submissions" in current page administration And I change window size to "large" - And I click on "Grade" "link" in the "Student 1" "table_row" + And I click on "Grade actions" "actionmenu" in the "Student 1" "table_row" + And I choose "Grade" in the open action menu When I set the following fields to these values: | Grade out of 100 | 101 | | Feedback comments | Feedback from teacher. | diff --git a/mod/assign/feedback/editpdf/tests/behat/annotate_pdf.feature b/mod/assign/feedback/editpdf/tests/behat/annotate_pdf.feature index eb935070a35..4d7c1cc6754 100644 --- a/mod/assign/feedback/editpdf/tests/behat/annotate_pdf.feature +++ b/mod/assign/feedback/editpdf/tests/behat/annotate_pdf.feature @@ -37,7 +37,8 @@ Feature: In an assignment, teacher can annotate PDF files during grading When I am on the "Test assignment name" Activity page logged in as teacher1 And I navigate to "Submissions" in current page administration And I change window size to "large" - And I click on "Grade" "link" in the "Submitted for grading" "table_row" + And I click on "Grade actions" "actionmenu" in the "Submitted for grading" "table_row" + And I choose "Grade" in the open action menu And I change window size to "medium" Then I should see "Page 1 of 1" And I wait for the complete PDF to load @@ -57,7 +58,8 @@ Feature: In an assignment, teacher can annotate PDF files during grading And I am on the "Test assignment name" Activity page logged in as teacher1 And I navigate to "Submissions" in current page administration And I change window size to "large" - And I click on "Grade" "link" in the "Submitted for grading" "table_row" + And I click on "Grade actions" "actionmenu" in the "Submitted for grading" "table_row" + And I choose "Grade" in the open action menu And I change window size to "medium" Then I should see "Page 1 of 3" And I wait for the complete PDF to load @@ -113,7 +115,8 @@ Feature: In an assignment, teacher can annotate PDF files during grading When I am on the "Test assignment name" Activity page logged in as teacher1 And I navigate to "Submissions" in current page administration And I change window size to "large" - And I click on "Grade" "link" in the "Submitted for grading" "table_row" + And I click on "Grade actions" "actionmenu" in the "Submitted for grading" "table_row" + And I choose "Grade" in the open action menu And I change window size to "medium" Then I should see "Page 1 of 3" And I click on ".navigate-next-button" "css_element" @@ -185,7 +188,8 @@ Feature: In an assignment, teacher can annotate PDF files during grading And I am on the "Test assignment name" Activity page logged in as teacher1 And I navigate to "Submissions" in current page administration And I open the action menu in "Student 2" "table_row" - And I click on "Grade" "link" in the "Student 2" "table_row" + And I click on "Grade actions" "actionmenu" in the "Student 2" "table_row" + And I choose "Grade" in the open action menu And I wait for the complete PDF to load And I click on ".linebutton" "css_element" And I draw on the pdf diff --git a/mod/assign/feedback/editpdf/tests/behat/comment_popup_menu.feature b/mod/assign/feedback/editpdf/tests/behat/comment_popup_menu.feature index b58215ac601..4ff9660dce1 100644 --- a/mod/assign/feedback/editpdf/tests/behat/comment_popup_menu.feature +++ b/mod/assign/feedback/editpdf/tests/behat/comment_popup_menu.feature @@ -34,7 +34,8 @@ Feature: Ensure that a comment remains visible if its popup menu is open And I am on the "Test assignment name" Activity page logged in as teacher1 And I navigate to "Submissions" in current page administration And I change window size to "large" - And I click on "Grade" "link" in the "Submitted for grading" "table_row" + And I click on "Grade actions" "actionmenu" in the "Submitted for grading" "table_row" + And I choose "Grade" in the open action menu And I change window size to "medium" And I wait for the complete PDF to load diff --git a/mod/assign/feedback/editpdf/tests/behat/group_annotations.feature b/mod/assign/feedback/editpdf/tests/behat/group_annotations.feature index b3c915672fa..6b477489ec7 100644 --- a/mod/assign/feedback/editpdf/tests/behat/group_annotations.feature +++ b/mod/assign/feedback/editpdf/tests/behat/group_annotations.feature @@ -43,7 +43,8 @@ Feature: In a group assignment, teacher can annotate PDF files for all users And I am on the "Test assignment name" Activity page logged in as teacher1 And I navigate to "Submissions" in current page administration - And I click on "Grade" "link" in the "Submitted for grading" "table_row" + And I click on "Grade actions" "actionmenu" in the "Submitted for grading" "table_row" + And I choose "Grade" in the open action menu And I wait for the complete PDF to load And I click on ".navigate-next-button" "css_element" And I wait until the page is ready diff --git a/mod/assign/feedback/editpdf/tests/behat/view_previous_annotations.feature b/mod/assign/feedback/editpdf/tests/behat/view_previous_annotations.feature index a3e51d157b5..684afae116c 100644 --- a/mod/assign/feedback/editpdf/tests/behat/view_previous_annotations.feature +++ b/mod/assign/feedback/editpdf/tests/behat/view_previous_annotations.feature @@ -38,7 +38,8 @@ Feature: In an assignment, teacher can view the feedback for a previous attempt. When I am on the "Test assignment name" Activity page logged in as teacher1 And I navigate to "Submissions" in current page administration And I change window size to "large" - And I click on "Grade" "link" in the "Submitted for grading" "table_row" + And I click on "Grade actions" "actionmenu" in the "Submitted for grading" "table_row" + And I choose "Grade" in the open action menu And I change window size to "medium" Then I should see "Page 1 of 3" And I click on ".navigate-next-button" "css_element" diff --git a/mod/assign/tests/behat/allow_another_attempt.feature b/mod/assign/tests/behat/allow_another_attempt.feature index 7303083c6aa..557fe887b09 100644 --- a/mod/assign/tests/behat/allow_another_attempt.feature +++ b/mod/assign/tests/behat/allow_another_attempt.feature @@ -35,7 +35,8 @@ Feature: In an assignment, students start a new attempt based on their previous And I am on the "Test assignment name" Activity page logged in as teacher1 And I navigate to "Submissions" in current page administration And I change window size to "large" - And I click on "Grade" "link" in the "Student 1" "table_row" + And I click on "Grade actions" "actionmenu" in the "Student 1" "table_row" + And I choose "Grade" in the open action menu And I change window size to "medium" And I set the following fields to these values: | Allow another attempt | 1 | @@ -52,7 +53,8 @@ Feature: In an assignment, students start a new attempt based on their previous And I am on the "Test assignment name" Activity page logged in as teacher1 And I navigate to "Submissions" in current page administration And I change window size to "large" - And I click on "Grade" "link" in the "Student 1" "table_row" + And I click on "Grade actions" "actionmenu" in the "Student 1" "table_row" + And I choose "Grade" in the open action menu And I change window size to "medium" And I should see "I'm the student first submission" @@ -134,7 +136,8 @@ Feature: In an assignment, students start a new attempt based on their previous And "Student 2" row "Status" column of "generaltable" table should contain "Reopened" And "Student 3" row "Status" column of "generaltable" table should contain "Submitted for grading" And "Student 4" row "Status" column of "generaltable" table should contain "Submitted for grading" - And I click on "Grade" "link" in the "Student 3" "table_row" + And I click on "Grade actions" "actionmenu" in the "Student 3" "table_row" + And I choose "Grade" in the open action menu And I set the following fields to these values: | Allow another attempt | 1 | And I press "Save changes" diff --git a/mod/assign/tests/behat/assign_activity_completion.feature b/mod/assign/tests/behat/assign_activity_completion.feature index 833e849f716..2ed7001cd64 100644 --- a/mod/assign/tests/behat/assign_activity_completion.feature +++ b/mod/assign/tests/behat/assign_activity_completion.feature @@ -122,7 +122,8 @@ Feature: View activity completion in the assignment activity And I log out And I am on the "Music history" "assign activity" page logged in as teacher1 And I navigate to "Submissions" in current page administration - And I click on "Grade" "link" in the "Vinnie Student1" "table_row" + And I click on "Grade actions" "actionmenu" in the "Vinnie Student1" "table_row" + And I choose "Grade" in the open action menu And I set the field "Grade out of 100" to "33" And I set the field "Notify student" to "0" And I press "Save changes" @@ -146,7 +147,8 @@ Feature: View activity completion in the assignment activity And I log out And I am on the "Music history 2" "assign activity" page logged in as teacher1 And I navigate to "Submissions" in current page administration - And I click on "Grade" "link" in the "Vinnie Student1" "table_row" + And I click on "Grade actions" "actionmenu" in the "Vinnie Student1" "table_row" + And I choose "Grade" in the open action menu And I set the field "Grade out of 100" to "33" And I set the field "Notify student" to "0" And I set the field "Allow another attempt" to "Yes" diff --git a/mod/assign/tests/behat/assign_anonymous_submission.feature b/mod/assign/tests/behat/assign_anonymous_submission.feature index 929c0fb5cfc..a4ec447a56e 100644 --- a/mod/assign/tests/behat/assign_anonymous_submission.feature +++ b/mod/assign/tests/behat/assign_anonymous_submission.feature @@ -34,7 +34,8 @@ Feature: Teacher can enable anonymous submissions for an assignment And I navigate to "Submissions" in current page administration # Confirm that Participant [n] is displayed instead of Student One - student name is hidden And I should not see "Student One" in the "Participant" "table_row" - And I click on "Grade" "link" in the "Participant" "table_row" + And I click on "Grade actions" "actionmenu" in the "Participant" "table_row" + And I choose "Grade" in the open action menu And I set the field "Grade out of 100" to "70" And I press "Save changes" And I am on the "Assign 1" "assign activity" page diff --git a/mod/assign/tests/behat/assign_settings.feature b/mod/assign/tests/behat/assign_settings.feature index b05f880d069..9c83f72d04f 100644 --- a/mod/assign/tests/behat/assign_settings.feature +++ b/mod/assign/tests/behat/assign_settings.feature @@ -48,7 +48,8 @@ Feature: Assignments settings can be changed And I am on the "Test assignment name" Activity page logged in as teacher1 And I navigate to "Submissions" in current page administration - And I click on "Grade" "link" in the "Student 1" "table_row" + And I click on "Grade actions" "actionmenu" in the "Student 1" "table_row" + And I choose "Grade" in the open action menu And I set the field "Grade out of 100" to "40" And I set the field "Notify student" to "0" And I press "Save changes" @@ -82,7 +83,8 @@ Feature: Assignments settings can be changed And I am on the "Test assignment name" Activity page logged in as teacher1 And I navigate to "Submissions" in current page administration - And I click on "Grade" "link" in the "Student 2" "table_row" + And I click on "Grade actions" "actionmenu" in the "Student 2" "table_row" + And I choose "Grade" in the open action menu And I set the field "Grade out of 100" to "40" And I set the field "Notify student" to "0" And I press "Save changes" @@ -108,7 +110,8 @@ Feature: Assignments settings can be changed When I am on the "Test assignment name" Activity page logged in as teacher1 And I navigate to "Submissions" in current page administration And I change window size to "large" - And I click on "Grade" "link" in the "Student 3" "table_row" + And I click on "Grade actions" "actionmenu" in the "Student 3" "table_row" + And I choose "Grade" in the open action menu And I change window size to "medium" And I set the field "Grade out of 100" to "40" And I set the field "Notify student" to "0" diff --git a/mod/assign/tests/behat/assign_table_preferences.feature b/mod/assign/tests/behat/assign_table_preferences.feature index 3eb6220d0fc..cb386f46124 100644 --- a/mod/assign/tests/behat/assign_table_preferences.feature +++ b/mod/assign/tests/behat/assign_table_preferences.feature @@ -49,7 +49,8 @@ Feature: In an assignment, teachers can use table preferences. And I navigate to "Submissions" in current page administration And I click on "T" "link" in the ".lastinitial" "css_element" And I change window size to "large" - And I click on "Grade" "link" in the "Student Two" "table_row" + And I click on "Grade actions" "actionmenu" in the "Student Two" "table_row" + And I choose "Grade" in the open action menu And I change window size to "medium" And I should see "This is a submission for Student Two" And I should see "1 of 1" diff --git a/mod/assign/tests/behat/bulk_release_anon_submissions.feature b/mod/assign/tests/behat/bulk_release_anon_submissions.feature index bb293a1f640..23d6424f012 100644 --- a/mod/assign/tests/behat/bulk_release_anon_submissions.feature +++ b/mod/assign/tests/behat/bulk_release_anon_submissions.feature @@ -40,7 +40,8 @@ Feature: Bulk released grades should not be sent to gradebook while submissions And I am on the "Test assignment name" "assign activity" page logged in as "teacher1" And I navigate to "Submissions" in current page administration Then I should see "Not marked" in the "I'm student1's submission" "table_row" - And I click on "Grade" "link" in the "I'm student1's submission" "table_row" + And I click on "Grade actions" "actionmenu" in the "I'm student1's submission" "table_row" + And I choose "Grade" in the open action menu And I set the field "Grade out of 100" to "50" And I set the field "Marking workflow state" to "In review" And I set the field "Feedback comments" to "Great job!" @@ -50,7 +51,8 @@ Feature: Bulk released grades should not be sent to gradebook while submissions And I navigate to "Submissions" in current page administration Then I should see "Not marked" in the "I'm student2's submission" "table_row" And I change window size to "large" - And I click on "Grade" "link" in the "I'm student2's submission" "table_row" + And I click on "Grade actions" "actionmenu" in the "I'm student2's submission" "table_row" + And I choose "Grade" in the open action menu And I change window size to "medium" And I set the field "Grade out of 100" to "50" And I set the field "Marking workflow state" to "In review" diff --git a/mod/assign/tests/behat/comment_inline.feature b/mod/assign/tests/behat/comment_inline.feature index 1a04749dd0f..fdfcb4ad5b9 100644 --- a/mod/assign/tests/behat/comment_inline.feature +++ b/mod/assign/tests/behat/comment_inline.feature @@ -34,7 +34,8 @@ Feature: In an assignment, teachers can edit a students submission inline When I am on the "Test assignment name" Activity page logged in as teacher1 And I navigate to "Submissions" in current page administration And I change window size to "large" - And I click on "Grade" "link" in the "Student 1" "table_row" + And I click on "Grade actions" "actionmenu" in the "Student 1" "table_row" + And I choose "Grade" in the open action menu And I change window size to "medium" And I set the following fields to these values: | Grade out of 100 | 50 | diff --git a/mod/assign/tests/behat/display_error_message_onbadformat.feature b/mod/assign/tests/behat/display_error_message_onbadformat.feature index 7417cc332bc..8e2158b3d4a 100644 --- a/mod/assign/tests/behat/display_error_message_onbadformat.feature +++ b/mod/assign/tests/behat/display_error_message_onbadformat.feature @@ -30,7 +30,8 @@ Feature: Check that the assignment grade can not be input in a wrong format. When I am on the "Test assignment name" Activity page logged in as teacher1 And I navigate to "Submissions" in current page administration And I change window size to "large" - And I click on "Grade" "link" in the "Student 1" "table_row" + And I click on "Grade actions" "actionmenu" in the "Student 1" "table_row" + And I choose "Grade" in the open action menu And I set the field "Grade out of 100" to "50,,6" And I press "Save changes" Then I should see "The grade provided could not be understood: 50,,6" @@ -61,7 +62,8 @@ Feature: Check that the assignment grade can not be input in a wrong format. When I am on the "Test assignment name" Activity page logged in as teacher1 And I navigate to "Submissions" in current page administration And I change window size to "large" - And I click on "Grade" "link" in the "Student 1" "table_row" + And I click on "Grade actions" "actionmenu" in the "Student 1" "table_row" + And I choose "Grade" in the open action menu And I set the field "Grade out of 100" to "50..6" And I press "Save changes" Then I should see "The grade provided could not be understood: 50..6" diff --git a/mod/assign/tests/behat/display_grade.feature b/mod/assign/tests/behat/display_grade.feature index c63080492e6..a8edda325d1 100644 --- a/mod/assign/tests/behat/display_grade.feature +++ b/mod/assign/tests/behat/display_grade.feature @@ -30,7 +30,8 @@ Feature: Check that the assignment grade can be updated correctly And I am on the "Test assignment name" Activity page logged in as teacher1 Then I navigate to "Submissions" in current page administration And I change window size to "large" - And I click on "Grade" "link" in the "Student 1" "table_row" + And I click on "Grade actions" "actionmenu" in the "Student 1" "table_row" + And I choose "Grade" in the open action menu And I set the field "Grade out of 100" to "50" And I set the field "Notify student" to "0" And I press "Save changes" @@ -65,7 +66,8 @@ Feature: Check that the assignment grade can be updated correctly And I am on the "Test assignment name" Activity page logged in as teacher1 When I navigate to "Submissions" in current page administration And I change window size to "large" - And I click on "Grade" "link" in the "Student 1" "table_row" + And I click on "Grade actions" "actionmenu" in the "Student 1" "table_row" + And I choose "Grade" in the open action menu And I change window size to "medium" And I set the field "Grade out of 100" to "50" And I set the field "Notify student" to "0" diff --git a/mod/assign/tests/behat/edit_previous_feedback.feature b/mod/assign/tests/behat/edit_previous_feedback.feature index d21c9471038..889400f07d2 100644 --- a/mod/assign/tests/behat/edit_previous_feedback.feature +++ b/mod/assign/tests/behat/edit_previous_feedback.feature @@ -35,7 +35,8 @@ Feature: In an assignment, teachers can edit feedback for a students previous su And I am on the "Test assignment name" Activity page logged in as teacher1 And I navigate to "Submissions" in current page administration And I change window size to "large" - And I click on "Grade" "link" in the "Student 2" "table_row" + And I click on "Grade actions" "actionmenu" in the "Student 2" "table_row" + And I choose "Grade" in the open action menu And I change window size to "medium" And I set the following fields to these values: | Grade | 49 | @@ -52,7 +53,8 @@ Feature: In an assignment, teachers can edit feedback for a students previous su And I am on the "Test assignment name" Activity page logged in as teacher1 And I navigate to "Submissions" in current page administration And I change window size to "large" - And I click on "Grade" "link" in the "Student 2" "table_row" + And I click on "Grade actions" "actionmenu" in the "Student 2" "table_row" + And I choose "Grade" in the open action menu And I change window size to "medium" And I click on "View a different attempt" "link" And I click on "Attempt 1" "radio" in the "View a different attempt" "dialogue" diff --git a/mod/assign/tests/behat/filter_by_marker.feature b/mod/assign/tests/behat/filter_by_marker.feature index 3e2017caa1e..1b13b222bdc 100644 --- a/mod/assign/tests/behat/filter_by_marker.feature +++ b/mod/assign/tests/behat/filter_by_marker.feature @@ -33,7 +33,8 @@ Feature: In an assignment, teachers can filter displayed submissions by assigned | markingallocation | 1 | And I am on the "Test assignment name" Activity page logged in as teacher1 And I navigate to "Submissions" in current page administration - And I click on "Grade" "link" in the "Student 1" "table_row" + And I click on "Grade actions" "actionmenu" in the "Student 1" "table_row" + And I choose "Grade" in the open action menu And I set the field "allocatedmarker" to "Marker 1" And I set the field "Notify student" to "0" And I press "Save changes" diff --git a/mod/assign/tests/behat/filter_by_marking_workflow.feature b/mod/assign/tests/behat/filter_by_marking_workflow.feature index b1b32d6bf87..d888c9b4969 100644 --- a/mod/assign/tests/behat/filter_by_marking_workflow.feature +++ b/mod/assign/tests/behat/filter_by_marking_workflow.feature @@ -56,11 +56,13 @@ Feature: In an assignment, teachers can filter displayed submissions by marking And I navigate to "Submissions" in current page administration And I change window size to "large" # Change the marking workflow state for Student 2 and Student 3. - And I click on "Grade" "link" in the "Student 2" "table_row" + And I click on "Grade actions" "actionmenu" in the "Student 2" "table_row" + And I choose "Grade" in the open action menu And I set the field "Marking workflow state" to "In marking" And I press "Save changes" And I follow "View all submissions" - And I click on "Grade" "link" in the "Student 3" "table_row" + And I click on "Grade actions" "actionmenu" in the "Student 3" "table_row" + And I choose "Grade" in the open action menu And I set the field "Marking workflow state" to "Marking completed" And I press "Save changes" And I follow "View all submissions" @@ -132,7 +134,8 @@ Feature: In an assignment, teachers can filter displayed submissions by marking And I navigate to "Submissions" in current page administration And I change window size to "large" # Change the marking workflow state for Student 2. - And I click on "Grade" "link" in the "Student 2" "table_row" + And I click on "Grade actions" "actionmenu" in the "Student 2" "table_row" + And I choose "Grade" in the open action menu And I set the field "Marking workflow state" to "In marking" And I press "Save changes" And I follow "View all submissions" diff --git a/mod/assign/tests/behat/filter_drafts.feature b/mod/assign/tests/behat/filter_drafts.feature index 63cc1e46b1f..c276171d097 100644 --- a/mod/assign/tests/behat/filter_drafts.feature +++ b/mod/assign/tests/behat/filter_drafts.feature @@ -52,7 +52,8 @@ Feature: In an assignment, teachers can filter displayed submissions and see dra Scenario: View assignments with draft status in the grader Given I am on the "Test assignment" Activity page logged in as teacher1 And I navigate to "Submissions" in current page administration - And I click on "Grade" "link" in the "Student 1" "table_row" + And I click on "Grade actions" "actionmenu" in the "Student 1" "table_row" + And I choose "Grade" in the open action menu When I click on "[data-region=user-filters]" "css_element" And I set the field "filter" to "Draft" Then I should see "1 of 1" diff --git a/mod/assign/tests/behat/grading_app_filters.feature b/mod/assign/tests/behat/grading_app_filters.feature index 2ae36988c99..7bafdf3c1f6 100644 --- a/mod/assign/tests/behat/grading_app_filters.feature +++ b/mod/assign/tests/behat/grading_app_filters.feature @@ -36,7 +36,8 @@ Feature: In an assignment, teachers can change filters in the grading app Scenario: Set filters in the grading table and see them in the grading app Given I am on the "Test assignment name &" Activity page logged in as teacher1 And I navigate to "Submissions" in current page administration - And I click on "Grade" "link" in the "Student 1" "table_row" + And I click on "Grade actions" "actionmenu" in the "Student 1" "table_row" + And I choose "Grade" in the open action menu And I should not see "Course 1 &" And the "title" attribute of "a[title='Course: Course 1 &']" "css_element" should not contain "&" And I should not see "Test assignment name &" @@ -53,7 +54,8 @@ Feature: In an assignment, teachers can change filters in the grading app And I set the field "Marking state" in the ".extrafilters .dropdown-menu" "css_element" to "In marking" And I click on "Apply" "button" in the ".extrafilters .dropdown-menu" "css_element" And I change window size to "large" - And I click on "Grade" "link" in the "Student 1" "table_row" + And I click on "Grade actions" "actionmenu" in the "Student 1" "table_row" + And I choose "Grade" in the open action menu And I change window size to "medium" Then the field "filter" matches value "Not submitted" And the field "markerfilter" matches value "Marker 1" @@ -63,7 +65,8 @@ Feature: In an assignment, teachers can change filters in the grading app Scenario: Set filters in the grading app and see them in the grading table Given I am on the "Test assignment name &" Activity page logged in as teacher1 And I navigate to "Submissions" in current page administration - And I click on "Grade" "link" in the "Student 1" "table_row" + And I click on "Grade actions" "actionmenu" in the "Student 1" "table_row" + And I choose "Grade" in the open action menu And I set the field "allocatedmarker" to "Marker 1" And I set the field "workflowstate" to "In marking" And I set the field "Notify student" to "0" @@ -71,7 +74,8 @@ Feature: In an assignment, teachers can change filters in the grading app And I am on the "Test assignment name &" Activity page And I navigate to "Submissions" in current page administration - And I click on "Grade" "link" in the "Student 1" "table_row" + And I click on "Grade actions" "actionmenu" in the "Student 1" "table_row" + And I choose "Grade" in the open action menu And I click on "[data-region=user-filters]" "css_element" And I set the field "filter" to "Not submitted" And I set the field "markerfilter" to "Marker 1" diff --git a/mod/assign/tests/behat/grading_status.feature b/mod/assign/tests/behat/grading_status.feature index 6320dff2bd8..7f52a37e478 100644 --- a/mod/assign/tests/behat/grading_status.feature +++ b/mod/assign/tests/behat/grading_status.feature @@ -38,7 +38,8 @@ Feature: View the grading status of an assignment And I am on the "Test assignment name" "assign activity" page logged in as teacher1 And I navigate to "Submissions" in current page administration And I should see "Not marked" in the "Student 1" "table_row" - And I click on "Grade" "link" in the "Student 1" "table_row" + And I click on "Grade actions" "actionmenu" in the "Student 1" "table_row" + And I choose "Grade" in the open action menu And I should see "1 of 2" And I click on "Change filters" "link" And I set the field "Filter" to "submitted" @@ -62,7 +63,8 @@ Feature: View the grading status of an assignment And I navigate to "Submissions" in current page administration And I should see "In review" in the "Student 1" "table_row" And I change window size to "large" - And I click on "Grade" "link" in the "Student 1" "table_row" + And I click on "Grade actions" "actionmenu" in the "Student 1" "table_row" + And I choose "Grade" in the open action menu And I change window size to "medium" And I should see "1 of 1" And I set the field "Marking workflow state" to "Released" @@ -80,7 +82,8 @@ Feature: View the grading status of an assignment And I navigate to "Submissions" in current page administration And I should see "Released" in the "Student 1" "table_row" And I change window size to "large" - And I click on "Grade" "link" in the "Student 1" "table_row" + And I click on "Grade actions" "actionmenu" in the "Student 1" "table_row" + And I choose "Grade" in the open action menu And I change window size to "medium" And I should see "1 of 1" And I set the field "Marking workflow state" to "In marking" @@ -93,7 +96,8 @@ Feature: View the grading status of an assignment And "Student 1" row "Grade" column of "generaltable" table should contain "50.00" And "Student 1" row "Final grade" column of "generaltable" table should contain "-" And I change window size to "large" - And I click on "Grade" "link" in the "Student 1" "table_row" + And I click on "Grade actions" "actionmenu" in the "Student 1" "table_row" + And I choose "Grade" in the open action menu And I change window size to "medium" And I click on "Change filters" "link" And I set the field "Workflow filter" to "In review" @@ -118,7 +122,8 @@ Feature: View the grading status of an assignment And I am on the "Test assignment name" "assign activity" page logged in as teacher1 And I navigate to "Submissions" in current page administration And I should not see "Graded" in the "Student 1" "table_row" - And I click on "Grade" "link" in the "Student 1" "table_row" + And I click on "Grade actions" "actionmenu" in the "Student 1" "table_row" + And I choose "Grade" in the open action menu And I should see "1 of 2" And I click on "Change filters" "link" And I set the field "Filter" to "submitted" @@ -149,7 +154,8 @@ Feature: View the grading status of an assignment And I should see "Graded - resubmitted" in the "Student 1" "table_row" And I wait "10" seconds And I change window size to "large" - And I click on "Grade" "link" in the "Student 1" "table_row" + And I click on "Grade actions" "actionmenu" in the "Student 1" "table_row" + And I choose "Grade" in the open action menu And I change window size to "medium" And I should see "1 of 1" And I set the field "Grade out of 100" to "99.99" diff --git a/mod/assign/tests/behat/group_submission.feature b/mod/assign/tests/behat/group_submission.feature index 4d615dea99b..aa58efec11c 100644 --- a/mod/assign/tests/behat/group_submission.feature +++ b/mod/assign/tests/behat/group_submission.feature @@ -206,7 +206,8 @@ Feature: Group assignment submissions | Test assignment name | student1 | I'm the student's first submission | And I am on the "Test assignment name" Activity page logged in as teacher1 And I navigate to "Submissions" in current page administration - And I click on "Grade" "link" in the "Student 1" "table_row" + And I click on "Grade actions" "actionmenu" in the "Student 1" "table_row" + And I choose "Grade" in the open action menu And I set the following fields to these values: | Grade out of 100 | 50.0 | | Apply grades and feedback to entire group | 1 | diff --git a/mod/assign/tests/behat/hide_grader.feature b/mod/assign/tests/behat/hide_grader.feature index b583964dd8c..f8df6acfe31 100644 --- a/mod/assign/tests/behat/hide_grader.feature +++ b/mod/assign/tests/behat/hide_grader.feature @@ -39,7 +39,8 @@ Feature: Hide grader identities identity from students And I navigate to "Submissions" in current page administration And I should not see "Graded" in the "Student 1" "table_row" And I change window size to "large" - And I click on "Grade" "link" in the "Student 1" "table_row" + And I click on "Grade actions" "actionmenu" in the "Student 1" "table_row" + And I choose "Grade" in the open action menu And I change window size to "medium" And I set the field "Grade out of 100" to "50" And I set the field "Feedback comments" to "Catch for us the foxes." diff --git a/mod/assign/tests/behat/outcome_grading.feature b/mod/assign/tests/behat/outcome_grading.feature index b38977636c0..2502aad74ab 100644 --- a/mod/assign/tests/behat/outcome_grading.feature +++ b/mod/assign/tests/behat/outcome_grading.feature @@ -47,7 +47,8 @@ Feature: Outcome grading And I press "Save changes" When I am on the "Test assignment name" "assign activity" page logged in as teacher1 And I navigate to "Submissions" in current page administration - And I click on "Grade" "link" in the "Student 0" "table_row" + And I click on "Grade actions" "actionmenu" in the "Student 0" "table_row" + And I choose "Grade" in the open action menu And I set the following fields to these values: | Outcome Test: | Excellent | And I press "Save changes" @@ -88,7 +89,8 @@ Feature: Outcome grading And I press "Save changes" When I am on the "Test assignment name" "assign activity" page logged in as teacher1 And I navigate to "Submissions" in current page administration - And I click on "Grade" "link" in the "Student 0" "table_row" + And I click on "Grade actions" "actionmenu" in the "Student 0" "table_row" + And I choose "Grade" in the open action menu And I set the following fields to these values: | Outcome Test: | Excellent | | Apply grades and feedback to entire group | Yes | @@ -98,7 +100,8 @@ Feature: Outcome grading Then I should see "Outcome Test: Excellent" in the "Student 0" "table_row" And I should see "Outcome Test: Excellent" in the "Student 1" "table_row" And I should not see "Outcome Test: Excellent" in the "Student 2" "table_row" - And I click on "Grade" "link" in the "Student 1" "table_row" + And I click on "Grade actions" "actionmenu" in the "Student 1" "table_row" + And I choose "Grade" in the open action menu And I set the following fields to these values: | Outcome Test: | Disappointing | | Apply grades and feedback to entire group | No | diff --git a/mod/assign/tests/behat/page_titles.feature b/mod/assign/tests/behat/page_titles.feature index 459fb9aa9cb..17fcc0f3661 100644 --- a/mod/assign/tests/behat/page_titles.feature +++ b/mod/assign/tests/behat/page_titles.feature @@ -25,10 +25,12 @@ Feature: In an assignment, page titles are informative And I press "Add submission" And the page title should contain "C1: History of ants - Edit submission" + @javascript Scenario: I view an assignment as a teacher and take an action When I am on the "History of ants" Activity page logged in as teacher1 Then the page title should contain "C1: History of ants" And I navigate to "Submissions" in current page administration And the page title should contain "C1: History of ants - Submissions" - And I click on "Grade" "link" in the "Student 1" "table_row" + And I click on "Grade actions" "actionmenu" in the "Student 1" "table_row" + And I choose "Grade" in the open action menu And the page title should contain "C1: History of ants - Grading" diff --git a/mod/assign/tests/behat/quickgrading.feature b/mod/assign/tests/behat/quickgrading.feature index 06e76d7c46f..cd3e97ec7c4 100644 --- a/mod/assign/tests/behat/quickgrading.feature +++ b/mod/assign/tests/behat/quickgrading.feature @@ -31,7 +31,8 @@ Feature: In an assignment, teachers grade multiple students on one page And I am on the "Test assignment name" Activity page logged in as teacher1 And I navigate to "Submissions" in current page administration When I change window size to "large" - And I click on "Grade" "link" in the "Student 1" "table_row" + And I click on "Grade actions" "actionmenu" in the "Student 1" "table_row" + And I choose "Grade" in the open action menu And I change window size to "medium" And I press "Save changes" And I am on the "Test assignment name" "assign activity" page @@ -88,7 +89,8 @@ Feature: In an assignment, teachers grade multiple students on one page And I press "Save changes" And I am on the "Test assignment name" "assign activity" page logged in as teacher1 And I navigate to "Submissions" in current page administration - And I click on "Grade" "link" in the "Student 1" "table_row" + And I click on "Grade actions" "actionmenu" in the "Student 1" "table_row" + And I choose "Grade" in the open action menu And I set the following fields to these values: | Grade out of 100 | 50.0 | | M8d skillZ! | 1337 | diff --git a/mod/assign/tests/behat/rescale_grades.feature b/mod/assign/tests/behat/rescale_grades.feature index 1a7dea077ee..b55db01cf61 100644 --- a/mod/assign/tests/behat/rescale_grades.feature +++ b/mod/assign/tests/behat/rescale_grades.feature @@ -29,7 +29,8 @@ Feature: Check that the assignment grade can be rescaled when the max grade is c And I am on the "Test assignment name" Activity page logged in as teacher1 And I navigate to "Submissions" in current page administration - And I click on "Grade" "link" in the "Student 1" "table_row" + And I click on "Grade actions" "actionmenu" in the "Student 1" "table_row" + And I choose "Grade" in the open action menu And I set the field "Grade out of 100" to "40" And I press "Save changes" And I follow "View all submissions" @@ -73,7 +74,8 @@ Feature: Check that the assignment grade can be rescaled when the max grade is c Scenario: Rescaling should not produce negative grades Given I navigate to "Submissions" in current page administration And I change window size to "large" - And I click on "Grade" "link" in the "Student 2" "table_row" + And I click on "Grade actions" "actionmenu" in the "Student 2" "table_row" + And I choose "Grade" in the open action menu And I change window size to "medium" And I wait until the page is ready And I am on the "Test assignment name" "assign activity" page diff --git a/mod/assign/tests/behat/steps_blind_marking.feature b/mod/assign/tests/behat/steps_blind_marking.feature index 9b0daf7d1ec..8fd2209d962 100644 --- a/mod/assign/tests/behat/steps_blind_marking.feature +++ b/mod/assign/tests/behat/steps_blind_marking.feature @@ -36,7 +36,8 @@ Feature: Assignments correctly add feedback to the grade report when workflow an And I am on the "Test assignment name" Activity page logged in as teacher1 And I navigate to "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 click on "Grade actions" "actionmenu" in the "I'm the student's first submission" "table_row" + And I choose "Grade" in the open action menu And I set the field "Grade out of 100" to "50" And I set the field "Marking workflow state" to "In review" And I set the field "Feedback comments" to "Great job! Lol, not really." @@ -47,13 +48,15 @@ Feature: Assignments correctly add feedback to the grade report when workflow an @javascript Scenario: Student identities are revealed after releasing the grades. - When I click on "Grade" "link" in the "I'm the student's first submission" "table_row" + When I click on "Grade actions" "actionmenu" in the "I'm the student's first submission" "table_row" + And I choose "Grade" in the open action menu And I set the field "Marking workflow state" to "Ready for release" And I set the field "Notify student" to "0" And I press "Save changes" And I follow "View all submissions" 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 click on "Grade actions" "actionmenu" in the "I'm the student's first submission" "table_row" + And I choose "Grade" in the open action menu And I set the field "Marking workflow state" to "Released" And I press "Save changes" And I follow "View all submissions" @@ -66,7 +69,8 @@ Feature: Assignments correctly add feedback to the grade report when workflow an @javascript Scenario: Student identities are revealed before releasing the grades. - When I click on "Grade" "link" in the "I'm the student's first submission" "table_row" + When I click on "Grade actions" "actionmenu" in the "I'm the student's first submission" "table_row" + And I choose "Grade" in the open action menu And I set the field "Marking workflow state" to "Ready for release" And I set the field "Notify student" to "0" And I press "Save changes" @@ -75,7 +79,8 @@ Feature: Assignments correctly add feedback to the grade report when workflow an And I choose the "Reveal student identities" item in the "Actions" action menu And I press "Continue" And I change window size to "large" - And I click on "Grade" "link" in the "Student 1" "table_row" + And I click on "Grade actions" "actionmenu" in the "Student 1" "table_row" + And I choose "Grade" in the open action menu And I change window size to "medium" And I set the field "Marking workflow state" to "Released" And I press "Save changes" diff --git a/mod/assign/tests/behat/submission_comments.feature b/mod/assign/tests/behat/submission_comments.feature index f37da51e052..997fc551f48 100644 --- a/mod/assign/tests/behat/submission_comments.feature +++ b/mod/assign/tests/behat/submission_comments.feature @@ -54,7 +54,8 @@ Feature: In an assignment, students can comment in their submissions | Test assignment name | student1 | student one submission | And I am on the "Test assignment name" Activity page logged in as teacher1 And I navigate to "Submissions" in current page administration - And I click on "Grade" "link" in the "Student 1" "table_row" + And I click on "Grade actions" "actionmenu" in the "Student 1" "table_row" + And I choose "Grade" in the open action menu And I click on ".comment-link" "css_element" When I set the field "content" to "Teacher feedback first comment" And I press "Save changes" @@ -72,7 +73,8 @@ Feature: In an assignment, students can comment in their submissions And I am on the "Test assignment name" Activity page logged in as teacher1 And I navigate to "Submissions" in current page administration - And I click on "Grade" "link" in the "Student 1" "table_row" + And I click on "Grade actions" "actionmenu" in the "Student 1" "table_row" + And I choose "Grade" in the open action menu And I click on ".comment-link" "css_element" When I set the field "content" to "Teacher feedback first comment" # click the save and show next twice as we have only 2 students @@ -89,7 +91,8 @@ Feature: In an assignment, students can comment in their submissions | assign | C1 | Test assignment name | 0 | 0 | 1 | And I am on the "Test assignment name" Activity page logged in as teacher1 And I navigate to "Submissions" in current page administration - And I click on "Grade" "link" in the "Student 1" "table_row" + And I click on "Grade actions" "actionmenu" in the "Student 1" "table_row" + And I choose "Grade" in the open action menu When I set the following fields to these values: | Grade out of 100 | 50 | | Feedback comments | I'm the teacher feedback | @@ -104,7 +107,8 @@ Feature: In an assignment, students can comment in their submissions | assign | C1 | Test assignment name | 0 | 0 | 1 | And I am on the "Test assignment name" Activity page logged in as teacher1 And I navigate to "Submissions" in current page administration - And I click on "Grade" "link" in the "Student 1" "table_row" + And I click on "Grade actions" "actionmenu" in the "Student 1" "table_row" + And I choose "Grade" in the open action menu And I set the following fields to these values: | Grade out of 100 | 0 | And I press "Save changes"