Show
Setup
For this test you will need to have or create few events in the calendar, preferable the current day and some days in the future.
Testing view selector
Log in as admin and go to Calendar.
Note the new calendar view drop-down.
It should display Month selected, click on the drop-down.
Make sure Month is selected (blue background)
Click Day option.
Make sure the Day option is selected and if you click the drop-down it displays the day option in blue background.
Make sure it loads the day view without reloading the whole page.
Please, do a exploratory testing in the calendar (day view) adding events, switch between past and future days, edit events, remove events, select a course in the course drop-down, hidding/showing event types in the Event key block..
Make sure the day view still behave as expected.
Click Upcoming events option.
Make sure it loads the Upcoming events view without reloading the whole page.
Make sure the Upcoming events option is selected in the view drop-down and if you click in the drop-down it displays the Upcoming events option in blue background.
Repeat that same exploratory testing done before, now in the Upcoming events view.
Please note there are no navigation between days in the upcoming view.
Make sure the Upcoming events view works as expected.
Click Month option.
Make sure the Month option is selected and if you click the drop-down it displays the Month option in blue background.
Make sure it loads the month view without reloading the whole page.
Please, do a exploratory testing in the calendar ( month view) adding events, switching between past and future months, edit events, remove events, opening event summary modal, selecting a course in the course drop-down... drag'n'drop of events between days and months, hidding/showing event types in the Event key block.
Try switch between the views few times, chaging months, days... the calendar view should work as expected at any point.
Change to the day view through the URL [http://\|http:] {{YOURSITE }}/integration_master/calendar/view.php?view=day}}
Make sure Day is selected in the view drop-down and when you click on it, it shows Day in blue background.
Change to the Upcoming events view through the URL: [http://\|http:] {{YOURSITE }}/integration_master/calendar/view.php?view=upcoming}}
Make sure Upcoming events is selected in the calendar view drop-down and when you click on it, it shows Upcoming events in blue background.
Testing AJAX day loading
Go back to month view.
Look for a day that contain at least one event
Click on the day number link.
Make sure the day view is loaded without reloading the whole page.
Try filtering by courses, add events, switch days...
Make sure it behaves as expected
Now go back to Month view and note the three month block on the right side.
Click on a day number link in the block
Make sure it loads the requested day without reloading the whole page
Click in a different day number
Make sure the three month block gets refreshed.
Make sure the correct day gets loaded without reloading the whole page
UI changes
Go to a course and add the calendar block (if you haven't already)
Click on the month name link to go to course calendar
Now, note the header is YOURCOURSE calendar :
Go back to Site home and then go to Calendar .
Look the header and make sure it displays just the Calendar word
Look calendar's main region, make sure it does not display Calendar heading any more.
Switch to upcoming in the view selector
Make sure the view now has a new heading Upcoming events and it is centred
Switch between views and make sure it does not display the strings:
Detailed month view for , Day view for and Upcoming events for .
In all views, please make sure :
The calendar view and course are next to each other
In all views, the New event button is aligned to the right