MDL-80751 behat: Removed Grade button from assignment submissions table

This commit is contained in:
Kevin Percy
2024-09-02 17:03:58 +08:00
committed by Mihail Geshoski
parent 93490ddf30
commit a18376806d
40 changed files with 159 additions and 81 deletions
@@ -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 [email protected] 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"
@@ -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
@@ -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 |
@@ -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 |
+4 -4
View File
@@ -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'));
}
/**
@@ -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"
+2 -1
View File
@@ -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 |
@@ -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 |
@@ -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"
+2 -1
View File
@@ -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"
@@ -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
@@ -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"
@@ -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. |
@@ -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
@@ -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
@@ -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
@@ -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"
@@ -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"
@@ -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"
@@ -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
@@ -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"
@@ -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"
@@ -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"
@@ -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 |
@@ -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"
+4 -2
View File
@@ -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"
@@ -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"
@@ -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"
@@ -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"
+2 -1
View File
@@ -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"
@@ -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"
+12 -6
View File
@@ -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"
@@ -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 |
+2 -1
View File
@@ -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."
@@ -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 |
+3 -1
View File
@@ -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"
+4 -2
View File
@@ -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 |
@@ -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
@@ -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"
@@ -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"