MDL-82195 assign: Include submissions page link in secondary navigation

Integrates a submissions page link into the assignment's secondary
navigation, eliminates the redundant 'View all submissions' button
from the assignment's homepage and updates the existing behat tests.
This commit is contained in:
Mihail Geshoski 2024-06-27 22:36:19 +08:00
parent 6cd55074c7
commit afb51a72b2
60 changed files with 173 additions and 160 deletions

View File

@ -87,7 +87,7 @@ Feature: availability_grade
When I am on the "A1" "assign activity" page logged in as teacher1
# Give the assignment 40%.
And I follow "View all submissions"
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"

View File

@ -52,7 +52,7 @@ Feature: Allow to mark course as completed without cron for activity completion
@javascript
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 follow "View all submissions"
And I navigate to "Submissions" in current page administration
And I click on "Grade" "link" in the "student1@example.com" "table_row"
And I set the field "Grade out of 100" to "40"
And I click on "Save changes" "button"
@ -79,14 +79,14 @@ Feature: Allow to mark course as completed without cron for activity completion
And I set the field "Assignment - Test assignment name2" to "1"
And I press "Save changes"
And I am on the "Test assignment name" "assign activity" page
And I follow "View all submissions"
And I navigate to "Submissions" in current page administration
And I click on "Grade" "link" in the "student1@example.com" "table_row"
And I set the field "Grade out of 100" to "40"
And I 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 follow "View all submissions"
And I navigate to "Submissions" in current page administration
And I click on "Grade" "link" in the "student1@example.com" "table_row"
And I set the field "Grade out of 100" to "40"
And I click on "Save changes" "button"

View File

@ -44,7 +44,7 @@ Feature: Restrict activity availability through grade conditions
And I should see "Submitted for grading"
And I am on the "Grade assignment" "assign activity" page logged in as teacher1
And I follow "View all submissions"
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 change window size to "medium"

View File

@ -67,7 +67,7 @@ Feature: Restrict sections availability through completion or grade conditions
And I should see "Submitted for grading"
And I log out
And I am on the "Grade assignment" "assign activity" page logged in as teacher1
And I follow "View all submissions"
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 change window size to "medium"

View File

@ -100,7 +100,7 @@ Feature: Marking guides can be created and edited
Then the field "Guide criterion B criterion remark" matches value "Comment \"4\""
When I press "Save changes"
And I am on the "Test assignment 1 name" "assign activity" page
And I follow "View all submissions"
And I navigate to "Submissions" in current page administration
# Checking that the user grade is correct.
Then I should see "80" in the "Student 1" "table_row"
And I log out

View File

@ -91,7 +91,7 @@ class behat_grading extends behat_base {
$this->execute('behat_navigation::go_to_breadcrumb_location', $this->escape($activityname));
$this->execute('behat_general::click_link', get_string('viewgrading', 'mod_assign'));
$this->execute('behat_general::click_link', get_string('gradeitem:submissions', 'mod_assign'));
$this->execute('behat_general::i_click_on_in_the',
array(
@ -161,7 +161,7 @@ class behat_grading extends behat_base {
$this->execute('behat_forms::press_button', get_string('savechanges'));
$this->execute('behat_general::i_click_on', array($this->escape(get_string('editsettings')), 'link'));
$this->execute('behat_forms::press_button', get_string('cancel'));
$this->execute('behat_general::click_link', get_string('viewgrading', 'mod_assign'));
$this->execute('behat_general::click_link', get_string('gradeitem:submissions', 'mod_assign'));
}
/**

View File

@ -54,7 +54,7 @@ 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 follow "View all submissions"
And I navigate to "Submissions" in current page administration
And I click on "Grade" "link" in the "Student 1" "table_row"
And I set the following fields to these values:
| Grade out of 100 | 50 |
@ -97,7 +97,7 @@ 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 follow "View all submissions"
And I navigate to "Submissions" in current page administration
And I click on "Grade" "link" in the "Student 1" "table_row"
And I set the following fields to these values:
| Grade out of 100 | 50 |

View File

@ -33,7 +33,7 @@ Feature: Display feedback on the Grader report
| gradeitem | user | grade | feedback |
| 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 follow "View all submissions"
And I navigate to "Submissions" in current page administration
And I click on "Grade" "link" in the "Student 1" "table_row"
And I set the following fields to these values:
| Grade out of 100 | 50 |

View File

@ -20,7 +20,7 @@ Feature: Teacher can unhide grades on the edit page allowing students to view th
| activity | course | idnumber | name | intro | assignfeedback_comments_enabled |
| assign | C1 | assign1 | Test assignment name | Test assignment description | 1 |
And I am on the "Test assignment name" "assign activity" page logged in as teacher1
And I follow "View all submissions"
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 set the following fields to these values:

View File

@ -23,7 +23,7 @@ Feature: Admin can set Recover grades default setting
| recovergradesdefault | <recovergradesetting> |
# Grade student 1 via quick grading
And I am on the "Assign 1" "assign activity" page logged in as admin
And I follow "View all submissions"
And I navigate to "Submissions" in current page administration
And I click on "Quick grading" "checkbox"
And I set the field "User grade" to "60.00"
And I press "Save all quick grading changes"

View File

@ -24,7 +24,7 @@ Feature: Regrading grades does not unnecessarily mark some as overriden
And I set the field "Available aggregation types" to "Weighted mean of grades"
And I press "Save changes"
And I am on the "Assignment 1" "assign activity" page
And I follow "View all submissions"
And I navigate to "Submissions" in current page administration
And I click on "Grade" "link" in the "Student 1" "table_row"
And I set the field "Grade out of 100" to "80"
And I press "Save and show next"
@ -55,7 +55,7 @@ Feature: Regrading grades does not unnecessarily mark some as overriden
@javascript
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 follow "View all submissions"
And I navigate to "Submissions" in current page administration
And I click on "Grade" "link" in the "Student 1" "table_row"
And I set the field "Grade out of 100" to "90"
And I press "Save and show next"

View File

@ -46,7 +46,7 @@ Feature: View gradebook when scales are used
And I set the field "grade[modgrade_type]" to "Scale"
And I set the field "grade[modgrade_scale]" to "Letterscale"
And I press "Save and display"
And I follow "View all submissions"
And I navigate to "Submissions" in current page administration
And I click on "Grade" "link" in the "Student 1" "table_row"
And I set the field "Grade" to "A"
And I press "Save changes"

View File

@ -44,7 +44,7 @@ Feature: View gradebook when single item scales are used
And I set the field "grade[modgrade_type]" to "Scale"
And I set the field "grade[modgrade_scale]" to "EN Singleitem"
And I press "Save and display"
And I follow "View all submissions"
And I navigate to "Submissions" in current page administration
And I click on "Grade" "link" in the "Student 1" "table_row"
And I set the field "Grade" to "A"
And I press "Save changes"

View File

@ -88,7 +88,7 @@ Feature: Using the activity grade form element
| grade[modgrade_scale] | ABCDEF |
And I press "Save and display"
And I am on the "Test assignment name" "assign activity" page
And I follow "View all submissions"
And I navigate to "Submissions" in current page administration
And I click on "Grade" "link" in the "Student 1" "table_row"
And I set the field "Grade" to "C"
And I press "Save changes"
@ -120,7 +120,7 @@ Feature: Using the activity grade form element
@javascript
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 follow "View all submissions"
And I navigate to "Submissions" in current page administration
And I click on "Grade" "link" in the "Student 1" "table_row"
And I set the field "Grade out of 100" to "50"
And I press "Save changes"

View File

@ -69,7 +69,7 @@ Feature: Initials bar
| activity | course | idnumber | name | intro | assignsubmission_onlinetext_enabled | assignsubmission_file_enabled |
| assign | C1 | assign1 | TestAssignment | Test assignment description | 0 | 0 |
And I am on the "assign1" "Activity" page logged in as "teacher"
When I follow "View all submissions"
When I navigate to "Submissions" in current page administration
And ".initialbarall.page-item.active" "css_element" should exist in the ".initialbar.firstinitial" "css_element"
And ".initialbarall.page-item.active" "css_element" should exist in the ".initialbar.lastinitial" "css_element"
And ".page-item.active.B" "css_element" should not exist in the ".initialbar.firstinitial" "css_element"
@ -94,7 +94,7 @@ Feature: Initials bar
And I should see "Bstudent Astudent"
And I should not see "Cstudent Cstudent"
And I am on the "assign1" "Activity" page
When I follow "View all submissions"
When I navigate to "Submissions" in current page administration
And ".initialbarall.page-item.active" "css_element" should not exist in the ".initialbar.firstinitial" "css_element"
And ".initialbarall.page-item.active" "css_element" should not exist in the ".initialbar.lastinitial" "css_element"
And ".page-item.active.B" "css_element" should exist in the ".initialbar.firstinitial" "css_element"
@ -125,7 +125,7 @@ Feature: Initials bar
| activity | course | idnumber | name | intro | assignsubmission_onlinetext_enabled | assignsubmission_file_enabled |
| assign | C1 | assign1 | TestAssignment | Test assignment description | 0 | 0 |
And I am on the "assign1" "Activity" page logged in as "teacher"
When I follow "View all submissions"
When I navigate to "Submissions" in current page administration
And I choose the "View gradebook" item in the "Actions" action menu
And I click on "Filter by name" "combobox"
And ".initialbarall.page-item.active" "css_element" should exist in the ".initialbar.firstinitial" "css_element"
@ -156,7 +156,7 @@ Feature: Initials bar
And I should see "Bstudent Astudent"
And I should not see "Cstudent Cstudent"
And I am on the "assign1" "Activity" page
When I follow "View all submissions"
When I navigate to "Submissions" in current page administration
And I choose the "View gradebook" item in the "Actions" action menu
And ".initialbarall.page-item.active" "css_element" should not exist in the ".initialbar.firstinitial" "css_element"
And ".initialbarall.page-item.active" "css_element" should not exist in the ".initialbar.lastinitial" "css_element"

View File

@ -35,10 +35,11 @@ class secondary extends core_secondary {
'modedit' => 1,
"mod_{$this->page->activityname}_useroverrides" => 2, // Overrides are module specific.
"mod_{$this->page->activityname}_groupoverrides" => 3,
"mod_{$this->page->activityname}_submissions" => 4,
]);
$defaultmaping[self::TYPE_CUSTOM] = array_merge($defaultmaping[self::TYPE_CUSTOM], [
'advgrading' => 4,
'advgrading' => 5,
]);
return $defaultmaping;
}

View File

@ -48,8 +48,7 @@ class actionmenu implements templatable, renderable {
* @return array Data to be used for a template.
*/
public function export_for_template(\renderer_base $output): array {
$submissionlink = new moodle_url('/mod/assign/view.php', ['id' => $this->cmid, 'action' => 'grading']);
$return = ['submissionlink' => $submissionlink->out(false)];
$return = [];
if (has_capability('mod/assign:grade', \context_module::instance($this->cmid))) {
$gradelink = new moodle_url('/mod/assign/view.php', ['id' => $this->cmid, 'action' => 'grader']);

View File

@ -26,7 +26,7 @@ Feature: In an assignment, teachers can provide feedback comments on student sub
| assign | user | onlinetext |
| Test assignment name | student1 | I'm the student1 submission |
And I am on the "Test assignment name" Activity page logged in as teacher1
And I follow "View all submissions"
And I navigate to "Submissions" in current page administration
Then I click on "Quick grading" "checkbox"
And I set the field "Feedback comments" to "Feedback from teacher."
And I press "Save all quick grading changes"

View File

@ -22,7 +22,7 @@ Feature: Check that any changes to assignment feedback comments are not lost
| activity | name | course | assignfeedback_comments_enabled |
| assign | Test assignment name | C1 | 1 |
And I am on the "Test assignment name" Activity page logged in as teacher1
And I follow "View all submissions"
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"
When I set the following fields to these values:

View File

@ -35,7 +35,7 @@ Feature: In an assignment, teacher can annotate PDF files during grading
| file | mod/assign/feedback/editpdf/tests/fixtures/testgs.pdf |
When I am on the "Test assignment name" Activity page logged in as teacher1
And I follow "View all submissions"
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 change window size to "medium"
@ -55,7 +55,7 @@ Feature: In an assignment, teacher can annotate PDF files during grading
And I follow "View annotated PDF..."
Then I should see "Page 1 of 1"
And I am on the "Test assignment name" Activity page logged in as teacher1
And I follow "View all submissions"
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 change window size to "medium"
@ -111,7 +111,7 @@ Feature: In an assignment, teacher can annotate PDF files during grading
And I log out
When I am on the "Test assignment name" Activity page logged in as teacher1
And I follow "View all submissions"
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 change window size to "medium"
@ -183,7 +183,7 @@ Feature: In an assignment, teacher can annotate PDF files during grading
| file | mod/assign/feedback/editpdf/tests/fixtures/submission.pdf |
And I am on the "Test assignment name" Activity page logged in as teacher1
And I follow "View all submissions"
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 wait for the complete PDF to load

View File

@ -32,7 +32,7 @@ Feature: Ensure that a comment remains visible if its popup menu is open
| file | mod/assign/feedback/editpdf/tests/fixtures/submission.pdf |
And I am on the "Test assignment name" Activity page logged in as teacher1
And I follow "View all submissions"
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 change window size to "medium"

View File

@ -42,7 +42,7 @@ Feature: In a group assignment, teacher can annotate PDF files for all users
| file | mod/assign/feedback/editpdf/tests/fixtures/submission.pdf |
And I am on the "Test assignment name" Activity page logged in as teacher1
And I follow "View all submissions"
And I navigate to "Submissions" in current page administration
And I click on "Grade" "link" in the "Submitted for grading" "table_row"
And I wait for the complete PDF to load
And I click on ".navigate-next-button" "css_element"

View File

@ -36,7 +36,7 @@ Feature: In an assignment, teacher can view the feedback for a previous attempt.
| file | mod/assign/feedback/editpdf/tests/fixtures/submission.pdf, mod/assign/feedback/editpdf/tests/fixtures/testgs.pdf |
When I am on the "Test assignment name" Activity page logged in as teacher1
And I follow "View all submissions"
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 change window size to "medium"

View File

@ -412,7 +412,9 @@ function assign_supports($feature) {
* @return void
*/
function assign_extend_settings_navigation(settings_navigation $settings, navigation_node $navref) {
global $DB;
global $DB, $CFG;
require_once($CFG->dirroot . '/mod/assign/locallib.php');
// We want to add these new nodes after the Edit settings node, and before the
// Locally assigned roles node. Of course, both of those are controlled by capabilities.
@ -457,6 +459,18 @@ function assign_extend_settings_navigation(settings_navigation $settings, naviga
$node = $navref->add($linkname, $url, navigation_node::TYPE_SETTING);
}
}
$assign = new assign($context, null, null);
// If the current user can view grades, include the 'Submissions' navigation node.
if ($assign->can_view_grades()) {
$url = new moodle_url('/mod/assign/view.php', ['id' => $settings->get_page()->cm->id, 'action' => 'grading']);
$navref->add(
text: get_string('gradeitem:submissions', 'assign'),
action: $url,
type: navigation_node::TYPE_SETTING,
key: 'mod_assign_submissions'
);
}
}
/**

View File

@ -4590,7 +4590,7 @@ class assign {
$this->get_context(),
false,
$this->get_course_module()->id,
get_string('grading', 'assign'),
get_string('gradeitem:submissions', 'assign'),
'',
'',
$currenturl);
@ -4705,7 +4705,10 @@ class assign {
* @return string
*/
protected function view_grading_page() {
global $CFG;
global $CFG, $PAGE;
// Ensure that the 'Submissions' navigation node is highlighted as 'active' in the secondary navigation.
$PAGE->set_secondary_active_tab('mod_assign_submissions');
$o = '';
// Need submit permission to submit an assignment.

View File

@ -27,16 +27,12 @@
Example context (json):
{
"submissionlink": "https://moodle.org",
"gradelink": "https://moodle.org"
}
}}
<div class="container-fluid tertiary-navigation">
<div class="row">
<div class="navitem">
<a class="btn btn-secondary me-1" href="{{submissionlink}}">{{#str}}viewgrading, mod_assign{{/str}}</a>
</div>
{{#gradelink}}
<div class="navitem">
<a class="btn btn-primary" href="{{gradelink}}">{{#str}}gradeverb, core{{/str}}</a>

View File

@ -33,7 +33,7 @@ Feature: In an assignment, students start a new attempt based on their previous
| Test assignment name | student1 | I'm the student first submission |
And I am on the "Test assignment name" Activity page logged in as teacher1
And I follow "View all submissions"
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 change window size to "medium"
@ -50,7 +50,7 @@ Feature: In an assignment, students start a new attempt based on their previous
And I log out
And I am on the "Test assignment name" Activity page logged in as teacher1
And I follow "View all submissions"
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 change window size to "medium"
@ -103,7 +103,7 @@ Feature: In an assignment, students start a new attempt based on their previous
| Test assignment name | student1 | I'm the student first submission |
And I am on the "Test assignment name" Activity page logged in as teacher1
When I follow "View all submissions"
When I navigate to "Submissions" in current page administration
Then "Student 1" row "Status" column of "generaltable" table should contain "Submitted for grading"
And "Student 2" row "Status" column of "generaltable" table should contain "Submitted for grading"
And "Student 3" row "Status" column of "generaltable" table should contain "No submission"
@ -129,7 +129,7 @@ Feature: In an assignment, students start a new attempt based on their previous
And I log out
And I am on the "Test assignment name" Activity page logged in as teacher1
And I follow "View all submissions"
And I navigate to "Submissions" in current page administration
And "Student 1" row "Status" column of "generaltable" table should contain "Reopened"
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"

View File

@ -121,7 +121,7 @@ Feature: View activity completion in the assignment activity
And the "Receive a grade" completion condition of "Music history" is displayed as "todo"
And I log out
And I am on the "Music history" "assign activity" page logged in as teacher1
And I follow "View all submissions"
And I navigate to "Submissions" in current page administration
And I click on "Grade" "link" in the "Vinnie Student1" "table_row"
And I set the field "Grade out of 100" to "33"
And I set the field "Notify student" to "0"
@ -145,7 +145,7 @@ Feature: View activity completion in the assignment activity
And the "Make a submission" completion condition of "Music history 2" is displayed as "done"
And I log out
And I am on the "Music history 2" "assign activity" page logged in as teacher1
And I follow "View all submissions"
And I navigate to "Submissions" in current page administration
And I click on "Grade" "link" in the "Vinnie Student1" "table_row"
And I set the field "Grade out of 100" to "33"
And I set the field "Notify student" to "0"

View File

@ -31,7 +31,7 @@ Feature: Teacher can enable anonymous submissions for an assignment
Then "blindmarking" "select" should not exist
And I press "Cancel"
And I am on the "Assign 1" "assign activity" page
And I click on "View all submissions" "link"
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"

View File

@ -44,7 +44,7 @@ Feature: Assign reset
And I log out
And I am on the "Test assignment name" Activity page logged in as teacher1
And I follow "View all submissions"
And I navigate to "Submissions" in current page administration
And I should see "Submitted for grading"
When I am on the "Course 1" "reset" page
And I set the following fields to these values:
@ -52,7 +52,7 @@ Feature: Assign reset
And I press "Reset course"
And I press "Continue"
And I am on the "Test assignment name" Activity page
And I follow "View all submissions"
And I navigate to "Submissions" in current page administration
Then I should not see "Submitted for grading"
@javascript
@ -114,7 +114,7 @@ Feature: Assign reset
| blindmarking | 1 |
And I press "Save"
When I am on the "Test assignment name" Activity page
And I follow "View all submissions"
And I navigate to "Submissions" in current page administration
And I choose the "Reveal student identities" item in the "Actions" action menu
And I press "Continue"
And I should see "Sam1 Student1"
@ -124,5 +124,5 @@ Feature: Assign reset
And I press "Reset course"
And I press "Continue"
And I am on the "Test assignment name" Activity page
And I follow "View all submissions"
And I navigate to "Submissions" in current page administration
Then I should not see "Sam1 Student1"

View File

@ -47,7 +47,7 @@ Feature: Assignments settings can be changed
And I press "Save changes"
And I am on the "Test assignment name" Activity page logged in as teacher1
And I follow "View all submissions"
And I navigate to "Submissions" in current page administration
And I click on "Grade" "link" in the "Student 1" "table_row"
And I set the field "Grade out of 100" to "40"
And I set the field "Notify student" to "0"
@ -58,7 +58,7 @@ Feature: Assignments settings can be changed
And "Add a new attempt based on previous submission" "button" should not exist
And I am on the "Test assignment name" Activity page logged in as teacher1
And I follow "View all submissions"
And I navigate to "Submissions" in current page administration
And I open the action menu in "Student 1" "table_row"
And I follow "Allow another attempt"
@ -81,7 +81,7 @@ Feature: Assignments settings can be changed
And I press "Save changes"
And I am on the "Test assignment name" Activity page logged in as teacher1
And I follow "View all submissions"
And I navigate to "Submissions" in current page administration
And I click on "Grade" "link" in the "Student 2" "table_row"
And I set the field "Grade out of 100" to "40"
And I set the field "Notify student" to "0"
@ -106,7 +106,7 @@ Feature: Assignments settings can be changed
And I press "Save changes"
When I am on the "Test assignment name" Activity page logged in as teacher1
And I follow "View all submissions"
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 change window size to "medium"
@ -119,7 +119,7 @@ Feature: Assignments settings can be changed
And "Add a new attempt based on previous submission" "button" should not exist
And I am on the "Test assignment name" Activity page logged in as teacher1
And I follow "View all submissions"
And I navigate to "Submissions" in current page administration
And I change window size to "large"
And I open the action menu in "Student 3" "table_row"
And I change window size to "medium"

View File

@ -46,7 +46,7 @@ Feature: In an assignment, teachers can use table preferences.
Scenario: As a teacher I can filter student submissions on the View all submission page
When I log in as "teacher1"
And I am on the "Test assignment" Activity page
And I follow "View all submissions"
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"

View File

@ -38,7 +38,7 @@ Feature: Bulk released grades should not be sent to gradebook while submissions
| Test assignment name | student2 | I'm student2's submission |
# Mark the submissions.
And I am on the "Test assignment name" "assign activity" page logged in as "teacher1"
And I follow "View all submissions"
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 set the field "Grade out of 100" to "50"
@ -47,7 +47,7 @@ Feature: Bulk released grades should not be sent to gradebook while submissions
And I set the field "Notify student" to "0"
And I press "Save changes"
And I am on the "Test assignment name" "assign activity" page
And I follow "View all 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"
@ -58,7 +58,7 @@ Feature: Bulk released grades should not be sent to gradebook while submissions
And I set the field "Notify student" to "0"
And I press "Save changes"
And I am on the "Test assignment name" "assign activity" page
And I follow "View all submissions"
And I navigate to "Submissions" in current page administration
Then I should see "In review" in the "I'm student1's submission" "table_row"
And I should see "In review" in the "I'm student2's submission" "table_row"
@ -73,7 +73,7 @@ Feature: Bulk released grades should not be sent to gradebook while submissions
And I set the field "Notify student" to "No"
And I press "Save changes"
And I am on the "Test assignment name" "assign activity" page
And I follow "View all submissions"
And I navigate to "Submissions" in current page administration
Then I should see "Released" in the "I'm student1's submission" "table_row"
And I should see "Released" in the "I'm student2's submission" "table_row"
And I am on the "Course 1" "grades > User report > View" page logged in as "student1"
@ -83,7 +83,7 @@ Feature: Bulk released grades should not be sent to gradebook while submissions
Then I should not see "50"
And I should not see "Great job!"
And I am on the "Test assignment name" "assign activity" page logged in as "teacher1"
And I follow "View all submissions"
And I navigate to "Submissions" in current page administration
And I choose the "Reveal student identities" item in the "Actions" action menu
And I press "Continue"
Then I should see "Released" in the "Student 1" "table_row"
@ -108,7 +108,7 @@ Feature: Bulk released grades should not be sent to gradebook while submissions
And I set the field "Notify student" to "No"
And I press "Save changes"
And I am on the "Test assignment name" "assign activity" page
And I follow "View all submissions"
And I navigate to "Submissions" in current page administration
Then I should see "Released" in the "Student 1" "table_row"
And I should see "Released" in the "Student 2" "table_row"
And I am on the "Course 1" "grades > User report > View" page logged in as "student1"
@ -124,7 +124,7 @@ Feature: Bulk released grades should not be sent to gradebook while submissions
And I expand all fieldsets
And I set the field "Allow partial release of grades while marking anonymously" to "Yes"
And I press "Save and display"
And I follow "View all submissions"
And I navigate to "Submissions" in current page administration
When I set the field "selectall" to "1"
And I set the field "operation" to "Set marking workflow state"
And I click on "Go" "button" confirming the dialogue
@ -134,7 +134,7 @@ Feature: Bulk released grades should not be sent to gradebook while submissions
And I set the field "Notify student" to "No"
And I press "Save changes"
And I am on the "Test assignment name" "assign activity" page
And I follow "View all submissions"
And I navigate to "Submissions" in current page administration
Then I should see "Released" in the "I'm student1's submission" "table_row"
And I should see "Released" in the "I'm student2's submission" "table_row"
And I am on the "Course 1" "grades > User report > View" page logged in as "student1"

View File

@ -39,7 +39,7 @@ Feature: Bulk remove submissions
| role | editingteacher |
| mod/assign:editothersubmission | allow |
And I am on the "Test assignment name" Activity page logged in as teacher1
And I follow "View all submissions"
And I navigate to "Submissions" in current page administration
And I should see "I'm the student1 submission"
And I should see "I'm the student2 submission"
And I set the field "selectall" to "1"
@ -72,7 +72,7 @@ Feature: Bulk remove submissions
| Test assignment name | student2 | I'm the student2 submission |
When I am on the "Test assignment name" Activity page logged in as teacher1
And I follow "View all submissions"
And I navigate to "Submissions" in current page administration
And I should see "I'm the student1 submission"
And I should see "I'm the student2 submission"
And I set the field "selectall" to "1"
@ -97,7 +97,7 @@ Feature: Bulk remove submissions
| role | editingteacher |
| mod/assign:editothersubmission | allow |
And I am on the "Test assignment name" Activity page logged in as teacher1
And I follow "View all submissions"
And I navigate to "Submissions" in current page administration
And I should see "I'm the student1 submission"
And I should see "I'm the student2 submission"
And I set the field "selectall" to "1"
@ -132,7 +132,7 @@ Feature: Bulk remove submissions
| role | editingteacher |
| mod/assign:editothersubmission | allow |
And I am on the "Test assignment name" Activity page logged in as teacher1
And I follow "View all submissions"
And I navigate to "Submissions" in current page administration
And I should see "I'm the student1 submission"
And I should see "I'm the student2 submission"
And I set the field "selectall" to "1"

View File

@ -32,7 +32,7 @@ Feature: In an assignment, teachers can edit a students submission inline
| Test assignment name | student1 | I'm the student first submission |
When I am on the "Test assignment name" Activity page logged in as teacher1
And I follow "View all submissions"
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 change window size to "medium"

View File

@ -28,7 +28,7 @@ Feature: Check that the assignment grade can not be input in a wrong format.
| markingworkflow | 1 |
| submissiondrafts | 0 |
When I am on the "Test assignment name" Activity page logged in as teacher1
And I follow "View all submissions"
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 set the field "Grade out of 100" to "50,,6"
@ -59,7 +59,7 @@ Feature: Check that the assignment grade can not be input in a wrong format.
| markingworkflow | 1 |
| submissiondrafts | 0 |
When I am on the "Test assignment name" Activity page logged in as teacher1
And I follow "View all submissions"
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 set the field "Grade out of 100" to "50..6"

View File

@ -28,7 +28,7 @@ Feature: Check that the assignment grade can be updated correctly
| markingworkflow | 1 |
| submissiondrafts | 0 |
And I am on the "Test assignment name" Activity page logged in as teacher1
Then I follow "View all submissions"
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 set the field "Grade out of 100" to "50"
@ -63,7 +63,7 @@ Feature: Check that the assignment grade can be updated correctly
| teamsubmission | 1 |
| groupmode | 0 |
And I am on the "Test assignment name" Activity page logged in as teacher1
When I follow "View all submissions"
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 change window size to "medium"

View File

@ -33,7 +33,7 @@ Feature: In an assignment, teachers can edit feedback for a students previous su
| assign | user | onlinetext |
| Test assignment name | student2 | I'm the student first submission |
And I am on the "Test assignment name" Activity page logged in as teacher1
And I follow "View all submissions"
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 change window size to "medium"
@ -50,7 +50,7 @@ Feature: In an assignment, teachers can edit feedback for a students previous su
And I log out
And I am on the "Test assignment name" Activity page logged in as teacher1
And I follow "View all submissions"
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 change window size to "medium"

View File

@ -26,7 +26,7 @@ Feature: In an assignment, the administrator can edit students' submissions
| Test assignment name | student1 | I'm the student1 submission |
And I am on the "Test assignment name" Activity page logged in as admin
And I follow "View all submissions"
And I navigate to "Submissions" in current page administration
And I change window size to "large"
And I open the action menu in "Student 1" "table_row"
And I change window size to "medium"

View File

@ -32,7 +32,7 @@ Feature: In an assignment, teachers can filter displayed submissions by assigned
| markingworkflow | 1 |
| markingallocation | 1 |
And I am on the "Test assignment name" Activity page logged in as teacher1
And I follow "View all submissions"
And I navigate to "Submissions" in current page administration
And I click on "Grade" "link" in the "Student 1" "table_row"
And I set the field "allocatedmarker" to "Marker 1"
And I set the field "Notify student" to "0"
@ -40,7 +40,7 @@ Feature: In an assignment, teachers can filter displayed submissions by assigned
And I click on "Edit settings" "link"
When I am on the "Test assignment name" Activity page
And I follow "View all submissions"
And I navigate to "Submissions" in current page administration
And I set the field "markerfilter" to "Marker 1"
Then I should see "Student 1"
And I should not see "Student 2"

View File

@ -28,14 +28,14 @@ Feature: In an assignment, teachers can filter displayed submissions by marking
@javascript
Scenario: The marking workflow filter is available only when marking workflow is enabled in the assignment.
Given I am on the "Test assignment" Activity page logged in as teacher1
And I follow "View all submissions"
And I navigate to "Submissions" in current page administration
And I change window size to "large"
And "Advanced" "button" should not exist in the ".tertiary-navigation" "css_element"
When I am on the "Test assignment" "assign activity editing" page
And I expand all fieldsets
And I set the field "Use marking workflow" to "Yes"
And I press "Save and display"
And I follow "View all submissions"
And I navigate to "Submissions" in current page administration
Then "Advanced" "button" should exist in the ".tertiary-navigation" "css_element"
And I click on "Advanced" "button" in the ".tertiary-navigation" "css_element"
And "Marking state" "select" should exist in the ".extrafilters .dropdown-menu" "css_element"
@ -53,7 +53,7 @@ Feature: In an assignment, teachers can filter displayed submissions by marking
And I expand all fieldsets
And I set the field "Use marking workflow" to "Yes"
And I press "Save and display"
And I follow "View all submissions"
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"
@ -89,7 +89,7 @@ Feature: In an assignment, teachers can filter displayed submissions by marking
And I should see "+1" in the ".extrafilters .badge" "css_element"
# Ensure the filter remains applied when navigating away from and returning to the assignment submissions page.
And I am on the "Test assignment" Activity page
And I follow "View all submissions"
And I navigate to "Submissions" in current page administration
And the following should exist in the "submissions" table:
| -2- |
| Student 2 |
@ -129,7 +129,7 @@ Feature: In an assignment, teachers can filter displayed submissions by marking
And I expand all fieldsets
And I set the field "Use marking workflow" to "Yes"
And I press "Save and display"
And I follow "View all submissions"
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"

View File

@ -42,7 +42,7 @@ Feature: In an assignment, teachers can filter displayed submissions and see dra
@javascript
Scenario: View assignments with draft status on the view all submissions page
Given I am on the "Test assignment" Activity page logged in as teacher1
And I follow "View all submissions"
And I navigate to "Submissions" in current page administration
When I set the field "Filter" to "Draft"
Then I should see "Student 2"
And I should not see "Student 1"
@ -51,7 +51,7 @@ Feature: In an assignment, teachers can filter displayed submissions and see dra
@javascript
Scenario: View assignments with draft status in the grader
Given I am on the "Test assignment" Activity page logged in as teacher1
And I follow "View all submissions"
And I navigate to "Submissions" in current page administration
And I click on "Grade" "link" in the "Student 1" "table_row"
When I click on "[data-region=user-filters]" "css_element"
And I set the field "filter" to "Draft"

View File

@ -35,7 +35,7 @@ Feature: In an assignment, teachers can change filters in the grading app
@javascript
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 follow "View all submissions"
And I navigate to "Submissions" in current page administration
And I click on "Grade" "link" in the "Student 1" "table_row"
And I should not see "Course 1 &amp;"
And the "title" attribute of "a[title='Course: Course 1 &']" "css_element" should not contain "&amp;"
@ -46,7 +46,7 @@ Feature: In an assignment, teachers can change filters in the grading app
And I press "Save changes"
And I am on the "Test assignment name &" Activity page
And I follow "View all submissions"
And I navigate to "Submissions" in current page administration
And I set the field "filter" to "Not submitted"
And I set the field "markerfilter" to "Marker 1"
And I click on "Advanced" "button" in the ".tertiary-navigation" "css_element"
@ -62,7 +62,7 @@ Feature: In an assignment, teachers can change filters in the grading app
@javascript
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 follow "View all submissions"
And I navigate to "Submissions" in current page administration
And I click on "Grade" "link" in the "Student 1" "table_row"
And I set the field "allocatedmarker" to "Marker 1"
And I set the field "workflowstate" to "In marking"
@ -70,7 +70,7 @@ Feature: In an assignment, teachers can change filters in the grading app
And I press "Save changes"
And I am on the "Test assignment name &" Activity page
And I follow "View all submissions"
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 "[data-region=user-filters]" "css_element"
And I set the field "filter" to "Not submitted"

View File

@ -36,7 +36,7 @@ Feature: View the grading status of an assignment
| Test assignment name | student1 | I'm the student first submission |
# Mark the submission.
And I am on the "Test assignment name" "assign activity" page logged in as teacher1
And I follow "View all submissions"
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 should see "1 of 2"
@ -49,7 +49,7 @@ Feature: View the grading status of an assignment
And I set the field "Notify student" to "0"
And I press "Save changes"
And I am on the "Test assignment name" "assign activity" page
And I follow "View all submissions"
And I navigate to "Submissions" in current page administration
And I should see "In review" in the "Student 1" "table_row"
And I log out
# View the grading status as a student.
@ -59,7 +59,7 @@ Feature: View the grading status of an assignment
And I log out
# Mark the submission again but set the marking workflow to 'Released'.
And I am on the "Test assignment name" "assign activity" page logged in as teacher1
And I follow "View all submissions"
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"
@ -77,7 +77,7 @@ Feature: View the grading status of an assignment
And I log out
# Now, change the status from 'Released' to 'In marking' (this will remove the grade from the gradebook).
And I am on the "Test assignment name" "assign activity" page logged in as teacher1
And I follow "View all submissions"
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"
@ -87,7 +87,7 @@ Feature: View the grading status of an assignment
And I set the field "Notify student" to "0"
And I press "Save changes"
And I am on the "Test assignment name" "assign activity" page
And I follow "View all submissions"
And I navigate to "Submissions" in current page administration
And I should see "In marking" in the "Student 1" "table_row"
# The grade should also remain displayed as it's stored in the assign DB tables, but the final grade should be empty.
And "Student 1" row "Grade" column of "generaltable" table should contain "50.00"
@ -116,7 +116,7 @@ Feature: View the grading status of an assignment
| Test assignment name | student1 | I'm the student first submission |
# Mark the submission.
And I am on the "Test assignment name" "assign activity" page logged in as teacher1
And I follow "View all submissions"
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 should see "1 of 2"
@ -128,7 +128,7 @@ Feature: View the grading status of an assignment
And I press "Save changes"
And I click on "Edit settings" "link"
And I am on the "Test assignment name" "assign activity" page
And I follow "View all submissions"
And I navigate to "Submissions" in current page administration
And I should see "Graded" in the "Student 1" "table_row"
And I log out
# View the grading status as a student.
@ -145,7 +145,7 @@ Feature: View the grading status of an assignment
And I log out
# Teacher marks the submission again after noticing the 'Graded - resubmitted'.
And I am on the "Test assignment name" "assign activity" page logged in as teacher1
And I follow "View all submissions"
And I navigate to "Submissions" in current page administration
And I should see "Graded - resubmitted" in the "Student 1" "table_row"
And I wait "10" seconds
And I change window size to "large"
@ -157,7 +157,7 @@ Feature: View the grading status of an assignment
And I press "Save changes"
And I click on "Edit settings" "link"
And I am on the "Test assignment name" "assign activity" page
And I follow "View all submissions"
And I navigate to "Submissions" in current page administration
And I should see "Graded" in the "Student 1" "table_row"
And I log out
# View the grading status as a student again.

View File

@ -33,7 +33,7 @@ Feature: Grant an extension to an offline student
| activity | course | name | intro | assignsubmission_onlinetext_enabled | assignsubmission_file_enabled | duedate |
| assign | C1 | Test assignment name | Test assignment description | 0 | 0 | 1388534400 |
And I am on the "Test assignment name" Activity page logged in as teacher1
When I follow "View all submissions"
When I navigate to "Submissions" in current page administration
And I open the action menu in "Student 1" "table_row"
And I follow "Grant extension"
And I should see "Student 1 (student1@example.com)"
@ -51,7 +51,7 @@ Feature: Grant an extension to an offline student
| activity | course | name | intro | assignsubmission_onlinetext_enabled | assignsubmission_file_enabled | duedate |
| assign | C1 | Test assignment name | Test assignment description | 0 | 0 | 1388534400 |
And I am on the "Test assignment name" Activity page logged in as teacher1
When I follow "View all submissions"
When I navigate to "Submissions" in current page administration
And I set the field "selectall" to "1"
And I set the field "operation" to "Grant extension"
And I click on "Go" "button" confirming the dialogue
@ -80,7 +80,7 @@ Feature: Grant an extension to an offline student
| activity | course | name | intro | assignsubmission_onlinetext_enabled | assignsubmission_file_enabled | allowsubmissionsfromdate | duedate |
| assign | C1 | Test assignment name | Test assignment description | 0 | 0 | 1388534400 | 1388620800 |
And I am on the "Test assignment name" Activity page logged in as teacher1
When I follow "View all submissions"
When I navigate to "Submissions" in current page administration
And I open the action menu in "Student 1" "table_row"
And I follow "Grant extension"
And I should see "Student 1 (student1@example.com)"
@ -100,7 +100,7 @@ Feature: Grant an extension to an offline student
| activity | course | name | intro | assignsubmission_onlinetext_enabled | assignsubmission_file_enabled | allowsubmissionsfromdate | duedate |
| assign | C1 | Test assignment name | Test assignment description | 0 | 0 | 1388534400 | 1388620800 |
And I am on the "Test assignment name" Activity page logged in as teacher1
When I follow "View all submissions"
When I navigate to "Submissions" in current page administration
And I set the field "selectall" to "1"
And I set the field "operation" to "Grant extension"
And I click on "Go" "button" confirming the dialogue

View File

@ -80,7 +80,7 @@ Feature: Group assignment submissions
When I set the following fields to these values:
| Group mode | No groups |
And I press "Save and display"
And I follow "View all submissions"
And I navigate to "Submissions" in current page administration
Then ".groupsearchwidget" "css_element" should not exist
# The course has a specified group mode, but not enforced on modules.
And I am on the "C1" "course editing" page
@ -89,14 +89,14 @@ Feature: Group assignment submissions
| Force group mode | No |
And I press "Save and display"
And I am on the "Test assignment" Activity page
And I follow "View all submissions"
And I navigate to "Submissions" in current page administration
And ".groupsearchwidget" "css_element" should not exist
# The assignment has a specified group mode.
And I am on the "Test assignment" "assign activity editing" page
And I set the following fields to these values:
| Group mode | Visible groups |
And I press "Save and display"
And I follow "View all submissions"
And I navigate to "Submissions" in current page administration
And ".groupsearchwidget" "css_element" should exist
And I should see "Select visible groups" in the ".groupsearchwidget" "css_element"
And I confirm "All participants" exists in the "Search groups" search combo box
@ -107,7 +107,7 @@ Feature: Group assignment submissions
| Force group mode | Yes |
And I press "Save and display"
And I am on the "Test assignment" Activity page
And I follow "View all submissions"
And I navigate to "Submissions" in current page administration
And ".groupsearchwidget" "css_element" should exist
And I should see "Select separate groups" in the ".groupsearchwidget" "css_element"
And I confirm "All participants" exists in the "Search groups" search combo box
@ -122,7 +122,7 @@ Feature: Group assignment submissions
| submissiondrafts | 0 |
| teamsubmission | 1 |
And I am on the "Test assignment name" Activity page logged in as teacher1
When I follow "View all submissions"
When I navigate to "Submissions" in current page administration
Then I should see "Default group" in the "Student 0" "table_row"
And I should see "Default group" in the "Student 1" "table_row"
And I should see "Default group" in the "Student 2" "table_row"
@ -140,7 +140,7 @@ Feature: Group assignment submissions
| student0 | G1 |
| student1 | G1 |
And I am on the "Test assignment name" "assign activity" page
And I follow "View all submissions"
And I navigate to "Submissions" in current page administration
And I click on "Group 1" in the "Search groups" search combo box
And I should see "Group 1" in the "Student 0" "table_row"
And I should see "Group 1" in the "Student 1" "table_row"
@ -169,7 +169,7 @@ Feature: Group assignment submissions
| assign | user | onlinetext |
| 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
When I follow "View all submissions"
When I navigate to "Submissions" in current page administration
Then "Student 1" row "Status" column of "generaltable" table should contain "Submitted for grading"
And "Student 2" row "Status" column of "generaltable" table should contain "Submitted for grading"
And "Student 3" row "Status" column of "generaltable" table should not contain "Submitted for grading"
@ -178,7 +178,7 @@ Feature: Group assignment submissions
| assign | user | onlinetext |
| Test assignment name | student3 | I'm the student's first submission |
And I am on the "Test assignment name" Activity page
And I follow "View all submissions"
And I navigate to "Submissions" in current page administration
And "Student 1" row "Status" column of "generaltable" table should contain "Submitted for grading"
And "Student 2" row "Status" column of "generaltable" table should contain "Submitted for grading"
And "Student 3" row "Status" column of "generaltable" table should contain "Submitted for grading"
@ -205,7 +205,7 @@ Feature: Group assignment submissions
| assign | user | onlinetext |
| 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 follow "View all submissions"
And I navigate to "Submissions" in current page administration
And I click on "Grade" "link" in the "Student 1" "table_row"
And I set the following fields to these values:
| Grade out of 100 | 50.0 |
@ -215,7 +215,7 @@ Feature: Group assignment submissions
| Allow another attempt | 1 |
And I press "Save changes"
When I am on the "Test assignment name" "assign activity" page
And I follow "View all submissions"
And I navigate to "Submissions" in current page administration
Then "Student 1" row "Status" column of "generaltable" table should contain "Reopened"
And "Student 2" row "Status" column of "generaltable" table should contain "Reopened"
@ -301,7 +301,7 @@ Feature: Group assignment submissions
And I click on "Assignments" "link" in the "Activities" "block"
And I should see "Submitted for grading"
And I am on the "Test assignment name" Activity page logged in as teacher1
When I follow "View all submissions"
When I navigate to "Submissions" in current page administration
Then "Student 1" row "Status" column of "generaltable" table should contain "Submitted for grading"
And "Student 2" row "Status" column of "generaltable" table should contain "Submitted for grading"

View File

@ -36,7 +36,7 @@ Feature: Hide grader identities identity from students
# Grade the submission and leave feedback
And I am on the "Test assignment name" Activity page logged in as teacher1
And I follow "View all submissions"
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"
@ -45,7 +45,7 @@ Feature: Hide grader identities identity from students
And I set the field "Feedback comments" to "Catch for us the foxes."
And I press "Save changes"
And I follow "Test assignment name"
And I follow "View all submissions"
And I navigate to "Submissions" in current page administration
And I should see "Graded" in the "Student 1" "table_row"
And I log out

View File

@ -46,14 +46,14 @@ Feature: Outcome grading
| Online text | My online text |
And I press "Save changes"
When I am on the "Test assignment name" "assign activity" page logged in as teacher1
And I follow "View all submissions"
And I navigate to "Submissions" in current page administration
And I click on "Grade" "link" in the "Student 0" "table_row"
And I set the following fields to these values:
| Outcome Test: | Excellent |
And I press "Save changes"
And I click on "Edit settings" "link"
When I am on the "Test assignment name" "assign activity" page
And I follow "View all submissions"
And I navigate to "Submissions" in current page administration
Then I should see "Outcome Test: Excellent" in the "Student 0" "table_row"
And I should not see "Outcome Test: Excellent" in the "Student 1" "table_row"
@ -87,14 +87,14 @@ Feature: Outcome grading
| Online text | My online text |
And I press "Save changes"
When I am on the "Test assignment name" "assign activity" page logged in as teacher1
And I follow "View all submissions"
And I navigate to "Submissions" in current page administration
And I click on "Grade" "link" in the "Student 0" "table_row"
And I set the following fields to these values:
| Outcome Test: | Excellent |
| Apply grades and feedback to entire group | Yes |
And I press "Save changes"
And I am on the "Test assignment name" "assign activity" page
And I follow "View all submissions"
And I navigate to "Submissions" in current page administration
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"
@ -104,7 +104,7 @@ Feature: Outcome grading
| Apply grades and feedback to entire group | No |
And I press "Save changes"
And I am on the "Test assignment name" "assign activity" page
And I follow "View all submissions"
And I navigate to "Submissions" in current page administration
And I should see "Outcome Test: Excellent" in the "Student 0" "table_row"
And I should see "Outcome Test: Disappointing" in the "Student 1" "table_row"
And I should not see "Outcome Test: Disappointing" in the "Student 0" "table_row"

View File

@ -28,7 +28,7 @@ Feature: In an assignment, page titles are informative
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 follow "View all submissions"
And the page title should contain "C1: History of ants - Grading"
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 the page title should contain "C1: History of ants - Grading"

View File

@ -41,7 +41,7 @@ Feature: Prevent or allow assignment submission changes
And I log out
And I am on the "Test assignment name" Activity page logged in as teacher1
When I follow "View all submissions"
When I navigate to "Submissions" in current page administration
And I open the action menu in "Student 1" "table_row"
And I follow "Prevent submission changes"
Then I should see "Submission changes not allowed"
@ -53,7 +53,7 @@ Feature: Prevent or allow assignment submission changes
And I log out
And I am on the "Test assignment name" Activity page logged in as teacher1
And I follow "View all submissions"
And I navigate to "Submissions" in current page administration
And I open the action menu in "Student 1" "table_row"
And I follow "Allow submission changes"
And I should not see "Submission changes not allowed"
@ -78,7 +78,7 @@ Feature: Prevent or allow assignment submission changes
| Test assignment name | student2 | I'm the student2 submission |
And I am on the "Test assignment name" Activity page logged in as teacher1
When I follow "View all submissions"
When I navigate to "Submissions" in current page administration
And I set the field "selectall" to "1"
And I click on "Go" "button" confirming the dialogue
Then I should see "Submission changes not allowed" in the "Student 1" "table_row"
@ -90,7 +90,7 @@ Feature: Prevent or allow assignment submission changes
And I log out
And I am on the "Test assignment name" Activity page logged in as teacher1
And I follow "View all submissions"
And I navigate to "Submissions" in current page administration
And I set the field "selectall" to "1"
And I set the field "id_operation" to "Unlock submissions"
And I click on "Go" "button" confirming the dialogue

View File

@ -29,7 +29,7 @@ Feature: In an assignment, teachers grade multiple students on one page
| Test assignment name | student1 | I'm the student1 submission |
And I am on the "Test assignment name" Activity page logged in as teacher1
And I follow "View all submissions"
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 change window size to "medium"
@ -87,7 +87,7 @@ Feature: In an assignment, teachers grade multiple students on one page
| Online text | I'm the student2 submission |
And I press "Save changes"
And I am on the "Test assignment name" "assign activity" page logged in as teacher1
And I follow "View all submissions"
And I navigate to "Submissions" in current page administration
And I click on "Grade" "link" in the "Student 1" "table_row"
And I set the following fields to these values:
| Grade out of 100 | 50.0 |
@ -113,7 +113,7 @@ Feature: In an assignment, teachers grade multiple students on one page
And I click on "Course 1" "link" in the "region-main" "region"
And I should not see "1337"
And I am on the "Test assignment name" "assign activity" page logged in as teacher1
And I follow "View all submissions"
And I navigate to "Submissions" in current page administration
And I click on "Hide Full name" "link"
And I click on "Hide Email address" "link"
And I click on "Hide Status" "link"

View File

@ -80,7 +80,7 @@ I should be able to create an assignment with a due date relative to the course
And I am on the "Test assignment name" Activity page logged in as teacher1
And the activity date in "Test assignment name" should contain "after course start"
And I should see "Calculated for each student" in the "Time remaining" "table_row"
When I follow "View all submissions"
When I navigate to "Submissions" in current page administration
Then I should see "No submission" in the "Student 1" "table_row"
And I should see "Assignment is overdue by:" in the "Student 1" "table_row"
And I should see "No submission" in the "Student 2" "table_row"

View File

@ -46,7 +46,7 @@ Feature: Remove a submission
| Test assignment name | student1 | I'm the student submission |
And I am on the "Test assignment name" Activity page logged in as teacher1
And I follow "View all submissions"
And I navigate to "Submissions" in current page administration
And I open the action menu in "Student 1" "table_row"
When I follow "Remove submission"
And I click on "Continue" "button"
@ -74,7 +74,7 @@ Feature: Remove a submission
| Test assignment name | student1 | I'm the student submission |
And I am on the "Test assignment name" Activity page logged in as teacher1
And I follow "View all submissions"
And I navigate to "Submissions" in current page administration
And I open the action menu in "Student 1" "table_row"
When I follow "Remove submission"
And I click on "Continue" "button"
@ -106,7 +106,7 @@ Feature: Remove a submission
And I log out
When I am on the "Test assignment name" Activity page logged in as teacher1
And I follow "View all submissions"
And I navigate to "Submissions" in current page administration
Then I should not see "I'm the student submission"
And "Student 1" row "Status" column of "generaltable" table should contain "No submission"
And I log out
@ -147,7 +147,7 @@ Feature: Remove a submission
Then I should see "Are you sure you want to remove your submission? Please note that this will not reset your time limit."
And I press "Cancel"
And I am on the "Test assignment with time limit" Activity page logged in as admin
And I click on "View all submissions" "link"
And I navigate to "Submissions" in current page administration
And I open the action menu in "Student 1" "table_row"
And I follow "Remove submission"
And I should see "Are you sure you want to remove the submission for Student 1? Please note that this will not reset the student's time limit. You can give more time by adding a time limit user override."

View File

@ -34,7 +34,7 @@ Feature: Submissions are unlocked when a new attempt is given
| Test assignment name | student1 | I'm the student1 submission |
And I am on the "Test assignment name" Activity page logged in as teacher1
And I follow "View all submissions"
And I navigate to "Submissions" in current page administration
And I change window size to "large"
And I open the action menu in "Student 1" "table_row"
And I change window size to "medium"
@ -63,7 +63,7 @@ Feature: Submissions are unlocked when a new attempt is given
| Test assignment name | student1 | I'm the student1 submission |
And I am on the "Test assignment name" Activity page logged in as teacher1
And I follow "View all submissions"
And I navigate to "Submissions" in current page administration
And I change window size to "large"
When I open the action menu in "Student 1" "table_row"
And I change window size to "medium"

View File

@ -28,7 +28,7 @@ Feature: Check that the assignment grade can be rescaled when the max grade is c
| submissiondrafts | 0 |
And I am on the "Test assignment name" Activity page logged in as teacher1
And I follow "View all submissions"
And I navigate to "Submissions" in current page administration
And I click on "Grade" "link" in the "Student 1" "table_row"
And I set the field "Grade out of 100" to "40"
And I press "Save changes"
@ -42,7 +42,7 @@ Feature: Check that the assignment grade can be rescaled when the max grade is c
And I set the field "Rescale existing grades" to "No"
And I set the field "Maximum grade" to "80"
When I press "Save and display"
And I follow "View all submissions"
And I navigate to "Submissions" in current page administration
Then "Student 1" row "Grade" column of "generaltable" table should contain "40.00"
Scenario: Update an assignment without touching the max grades
@ -58,7 +58,7 @@ Feature: Check that the assignment grade can be rescaled when the max grade is c
And I set the field "Rescale existing grades" to "Yes"
And I set the field "Maximum grade" to "80"
When I press "Save and display"
And I follow "View all submissions"
And I navigate to "Submissions" in current page administration
Then "Student 1" row "Grade" column of "generaltable" table should contain "40.00"
Scenario: Update the max grade for an assignment rescaling existing grades
@ -67,11 +67,11 @@ Feature: Check that the assignment grade can be rescaled when the max grade is c
And I set the field "Rescale existing grades" to "Yes"
And I set the field "Maximum grade" to "50"
When I press "Save and display"
And I follow "View all submissions"
And I navigate to "Submissions" in current page administration
Then "Student 1" row "Grade" column of "generaltable" table should contain "20.00"
Scenario: Rescaling should not produce negative grades
Given I follow "View all submissions"
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 change window size to "medium"
@ -82,6 +82,6 @@ Feature: Check that the assignment grade can be rescaled when the max grade is c
And I set the field "Rescale existing grades" to "Yes"
And I set the field "Maximum grade" to "50"
When I press "Save and display"
And I follow "View all submissions"
And I navigate to "Submissions" in current page administration
# Make sure the student did not receive a negative grade.
Then "Student 2" row "Grade" column of "generaltable" table should not contain "-0.50"

View File

@ -100,7 +100,7 @@ Feature: Set availability dates for an assignment
And I am on the "Assignment name" Activity page logged in as teacher1
And I should see "1" in the "Submitted" "table_row"
And I follow "View all submissions"
And I navigate to "Submissions" in current page administration
And I should see "Submitted for grading" in the "Student 1" "table_row"
@_file_upload
@ -131,7 +131,7 @@ Feature: Set availability dates for an assignment
And I am on the "Assignment name" Activity page logged in as teacher1
And I should see "1" in the "Submitted" "table_row"
And I follow "View all submissions"
And I navigate to "Submissions" in current page administration
And I should see "Submitted for grading" in the "Student 1" "table_row"
And I should see "2 days 5 hours late" in the "Student 1" "table_row"
@ -214,7 +214,7 @@ Feature: Set availability dates for an assignment
And I am on the "Assignment name" Activity page logged in as teacher1
And I should see "0" in the "Submitted" "table_row"
And I follow "View all submissions"
And I navigate to "Submissions" in current page administration
And I should see "No submission" in the "Student 1" "table_row"
And I should see "Assignment is overdue by: 2 days 5 hours" in the "Student 1" "table_row"

View File

@ -34,7 +34,7 @@ Feature: Assignments correctly add feedback to the grade report when workflow an
# Mark the submission.
And I am on the "Test assignment name" Activity page logged in as teacher1
And I follow "View all submissions"
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 set the field "Grade out of 100" to "50"
@ -96,5 +96,5 @@ Feature: Assignments correctly add feedback to the grade report when workflow an
And I press "Save"
And I should see "Tuesday, 1 January 2030, 8:00"
And I am on the "Test assignment name" "assign activity" page
And I follow "View all submissions"
And I navigate to "Submissions" in current page administration
And I should see "In review" in the "I'm the student's first submission" "table_row"

View File

@ -53,7 +53,7 @@ Feature: In an assignment, students can comment in their submissions
| assign | user | onlinetext |
| Test assignment name | student1 | student one submission |
And I am on the "Test assignment name" Activity page logged in as teacher1
And I follow "View all submissions"
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 ".comment-link" "css_element"
When I set the field "content" to "Teacher feedback first comment"
@ -71,7 +71,7 @@ Feature: In an assignment, students can comment in their submissions
| Test assignment name | student1 | I'm the student submission |
And I am on the "Test assignment name" Activity page logged in as teacher1
And I follow "View all submissions"
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 ".comment-link" "css_element"
When I set the field "content" to "Teacher feedback first comment"
@ -88,7 +88,7 @@ Feature: In an assignment, students can comment in their submissions
| activity | course | name | assignsubmission_onlinetext_enabled | assignmentsubmission_file_enabled | assignfeedback_comments_enabled |
| assign | C1 | Test assignment name | 0 | 0 | 1 |
And I am on the "Test assignment name" Activity page logged in as teacher1
And I follow "View all submissions"
And I navigate to "Submissions" in current page administration
And I click on "Grade" "link" in the "Student 1" "table_row"
When I set the following fields to these values:
| Grade out of 100 | 50 |
@ -103,7 +103,7 @@ Feature: In an assignment, students can comment in their submissions
| activity | course | name | assignsubmission_onlinetext_enabled | assignmentsubmission_file_enabled | assignfeedback_comments_enabled |
| assign | C1 | Test assignment name | 0 | 0 | 1 |
And I am on the "Test assignment name" Activity page logged in as teacher1
And I follow "View all submissions"
And I navigate to "Submissions" in current page administration
And I click on "Grade" "link" in the "Student 1" "table_row"
And I set the following fields to these values:
| Grade out of 100 | 0 |

View File

@ -38,7 +38,7 @@ Feature: Within the assignment submissions page, test that we can search for use
And the following config values are set as admin:
| showuseridentity | idnumber,email,city,country,phone1,phone2,department,institution |
And I am on the "Test assignment one" Activity page logged in as teacher1
And I follow "View all submissions"
And I navigate to "Submissions" in current page administration
And I change window size to "large"
Scenario: A teacher can view and trigger the user search

View File

@ -81,7 +81,7 @@ Feature: Submit assignment without group
And I am on the "c1assign1" "assign activity" page logged in as teacher1
And I should see "1" in the "Groups" "table_row"
And I should not see "The setting 'Require group to make submission\' is enabled and some users are either not a member of any group, or are a member of more than one group, so are unable to make submissions."
And I follow "View all submissions"
And I navigate to "Submissions" in current page administration
And I should see "Default group" in the "Student 1" "table_row"
And I should see "Default group" in the "Student 2" "table_row"
And I should see "Submitted for grading" in the "Student 1" "table_row"
@ -89,7 +89,7 @@ Feature: Submit assignment without group
And I am on the "c1assign2" "assign activity" page
And I should see "0" in the "Groups" "table_row"
And I should see "The setting 'Require group to make submission' is enabled and some users are either not a member of any group, or are a member of more than one group, so are unable to make submissions."
And I follow "View all submissions"
And I navigate to "Submissions" in current page administration
And I should see "Not a member of any group, so unable to make submissions." in the "Student 1" "table_row"
And I should see "Not a member of any group, so unable to make submissions." in the "Student 2" "table_row"
And I should not see "Submitted for grading" in the "Student 1" "table_row"
@ -97,7 +97,7 @@ Feature: Submit assignment without group
And I am on the "c2assign1" "assign activity" page
And I should see "1" in the "Groups" "table_row"
And I should not see "The setting 'Require group to make submission' is enabled and some users are either not a member of any group, or are a member of more than one group, so are unable to make submissions."
And I follow "View all submissions"
And I navigate to "Submissions" in current page administration
And I should see "Group 1" in the "Student 1" "table_row"
And I should see "Group 1" in the "Student 2" "table_row"
And I should see "Submitted for grading" in the "Student 1" "table_row"
@ -112,7 +112,7 @@ Feature: Submit assignment without group
And I log out
And I am on the "c3assign1" "assign activity" page logged in as teacher1
And I should see "The setting 'Require group to make submission' is enabled and some users are either not a member of any group, or are a member of more than one group, so are unable to make submissions."
And I follow "View all submissions"
And I navigate to "Submissions" in current page administration
And I should see "Member of more than one group, so unable to make submissions." in the "Student 3" "table_row"
Scenario: All users are in groups, so no warning messages needed.