Show
Requirement
A course with a teacher and several students enrolled.
Test
Log in as a teacher in a course.
Go to the course's participants page.
Check the table of course participants
Confirm that you see a checkbox on the column header of the table's first column. Let's call this the master checkbox.
Confirm that without any item being selected on initial load, the " With selected users... " select box is rendered as disabled.
Check the behaviour of the master checkbox.
Confirm that:
When it's ticked, all users become selected and its hidden label becomes " Deselect all " (you might wanna inspect using the dev tools of your browser)
When everything's selected and you untick it, all users become deselected and its hidden label becomes " Select all "
Check the effect of clicking of one or more checkboxes beside each attempt.
Confirm that:
When you tick all checkboxes, the master checkbox becomes ticked and its hidden label becomes " Deselect all "
When all checkboxes are ticked and you untick at least one checkbox, the master checkbox becomes unticked and its hidden label becomes " Select all "
Check the behaviour of the " With selected users... " select box.
Confirm that:
When at least one checkbox is selected, the select box is enabled.
When there's no checkbox selected, the select box is disabled.