-
Functional Test
-
Minor
-
Moodle 3.5
-
None
This test requires a course with a teacher and student enrolled.
- Log in as a teacher and create five choice activities as follows:
- Choice A (in the past) - enable 'Allow responses until' and set it to a date in the past (and optionally set 'Allow responses from' to a date in the past)
- Choice B (in progress) - set 'Allow responses until' to a date in the future (and optionally set 'Allow responses from' to a date in the past)
- Choice C (in progress) - set as for Choice B and also set 'Allow choice to be updated' to Yes
- Choice D (in the future) - set 'Allow responses from' to a date in the future
- Choice E (in the future) - set 'Allow responses from' to a date in the future and set 'Allow responses until' to a date further in the future
- Log in as a student and go to the course overview on the dashboard.
- Check that Choice A is not shown.
- Check that 'Choice B closes' and 'Choice C closes' are shown with dates as set for 'Allow responses until' and there are 'View choices' links going to the choice activities.
- Check that 'Choice D opens' is shown with the date as set for 'Allow responses from' and there is no 'View choices' link (only text in grey).
- Check that 'Choice E closes' is shown with the date as set for 'Allow responses until' and there is no 'View choices' link (only text in grey).
- Go to Choice B and submit a response.
- Check that Choice B is no longer shown in the course overview.
- Go to Choice C and submit a response.
- Check that Choice C is no longer shown in the course overview.