-
Functional Test
-
Minor
-
Moodle 4.2
-
None
Test Pre-requisites:
This test requires a quiz containing several questions.
Test Steps showing blocks before the start of the quiz:
- Login as an admin, edit the setting displayblocksbeforestart (Site administration → Plugins → Activity modules → Quiz Safe Exam Browser access rule → Display blocks before starting quiz) to be checked.
- Log in as a teacher, edit the quiz setting for 'Require the use of Safe Exam Browser' to be 'Yes – Configure manually'.
- Go to the quiz, and using "Add a block", add a text block.
- Configure the block with title "(new text block)" now showing using the cog → Configure (new text block) block.
- Set a title and some text.
- Under "Where this block appears", set "Display on page type" to "Quiz information page".
- Login as a student and access the quiz.
- Do start the quiz attempt (which should trigger Safe Exam Browser to be used).
- CONFIRM there IS the text block.
Test Steps suppressing blocks before the start of the quiz:
- Login as an admin, edit the setting displayblocksbeforestart (Site administration → Plugins → Activity modules → Quiz Safe Exam Browser access rule → Display blocks before starting quiz) not to be checked.
- Log in as a teacher, edit the quiz settings for 'Require the use of Safe Exam Browser' to be 'Yes – Configure manually'.
- Go to the quiz, and using "Add a block", add a text block.
- Configure the block with title "(new text block)" now showing using the cog → Configure (new text block) block.
- Set a title and some text.
- Under "Where this block appears", set "Display on page type" to "Quiz information page".
- Login as a student and access the quiz.
- Do start the quiz attempt (which should trigger Safe Exam Browser to be used).
- CONFIRM there is NO block.
Test Steps showing blocks after the end of the quiz:
- Log in as a teacher, edit the quiz settings for 'Require the use of Safe Exam Browser' to be 'Yes – Configure manually'.
- Login as an admin, edit the setting displayblockswhenfinished (Site administration → Plugins → Activity modules → Quiz Safe Exam Browser access rule → Display blocks after finishing quiz) to be checked.
- Log in as a teacher, edit the settings for 'Require the use of Safe Exam Browser' to be 'Yes – Configure manually'.
- Go to the quiz, and using "Add a block", add a text block.
- Configure the block with title "(new text block)" now showing using the cog → Configure (new text block) block.
- Set a title and some text.
- Under "Where this block appears", set "Display on page type" to "Any quiz module page".
- Login as a student and access the quiz.
- Do start the quiz attempt (which should trigger Safe Exam Browser to be used).
- Submit the quiz attempt and complete the review.
- CONFIRM there IS the text block.
Test Steps suppressing blocks after the end of the quiz:
- Log in as a teacher, edit the settings for 'Require the use of Safe Exam Browser' to be 'Yes – Configure manually'.
- Login as an admin, edit the setting displayblockswhenfinished (Site administration → Plugins → Activity modules → Quiz Safe Exam Browser access rule → Display blocks after finishing quiz) not to be checked.
- Log in as a teacher, edit the settings for 'Require the use of Safe Exam Browser' to be 'Yes – Configure manually'.
- Go to the quiz, and using "Add a block", add a text block.
- Configure the block with title "(new text block)" now showing using the cog → Configure (new text block) block.
- Set a title and some text.
- Under "Where this block appears", set "Display on page type" to "Any quiz module page".
- Login as a student and access the quiz.
- Do start the quiz attempt (which should trigger Safe Exam Browser to be used).
- Submit the quiz attempt and complete the review
- CONFIRM there is NO block.