-
Functional Test
-
Minor
-
Moodle 3.9
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 quiz started) 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 HTML block.
- Configure the block with title "(new HTML block)" now showing using the cog → Configure (new HTML 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 HTML 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 quiz started) 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 HTML block.
- Configure the block with title "(new HTML block)" now showing using the cog → Configure (new HTML 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 quiz finished) 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 HTML block.
- Configure the block with title "(new HTML block)" now showing using the cog → Configure (new HTML 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 HTML 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 quiz finished) 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 HTML block.
- Configure the block with title "(new HTML block)" now showing using the cog → Configure (new HTML 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.