-
Functional Test
-
Minor
-
Moodle 3.7
-
None
NOTE: This requires an empty course and site admin access.
- Login as admin
- Enter a course and add the "Upcoming events" block
- Click on "new event" and add the following events:
- A site wide event roughly 6 months (180 days) from today called "6 mo test"
- A site wide event roughly 2 months (60 days) from today called "2 mo test"
- A site wide event 3 weeks (21 days) from today called "3 wk test"
- Navigate to User Menu > Preferences > Calendar preferences and check "Upcoming events look-ahead" is set to 3 weeks.
- Verify that no event is displayed in the "Upcoming events block"
- Navigate to User Menu > Preferences > Calendar preferences and change the setting "Upcoming events look-ahead" from 3 weeks to 1 months..
- Verify that the event "3 wk test" is displayed in the "Upcoming events block" but not the other two
- Navigate to User Menu > Preferences > Calendar preferences and change the setting "Upcoming events look-ahead" from 1 month to 4 months.
- Return to the course and verify that the event "3 wk test" and "2 mo test" appears in the "Upcoming events block"
- Navigate to User Menu > Preferences > Calendar preferences and change the setting "Upcoming events look-ahead"" from 4 months to 9 months.
- Return to the course and verify that the event "6 mo test" now appears in addition to the other two
- Go to calendar and click "Export Calendar"
- Select "All events" and "Custom range" options and click export.
- Make sure expected events get exported in file.