Show
Notes
The majority of the actual testing is already done in unit test.
These tests are looking for two things:
regressions in the previous behaviour; and
consistency between different views of the same information.
Following setup, most of the testing is very similar and easy.
Preparation
Run the generator ( https://github.com/andrewnicols/moodle-datagenerator )
Log in as admin
View the calendar
Create a number of site events, including at least one in the next few days
Open the Site home
Ensure that both the Calendar, and Upcoming Events block are on the Site Home page.
Visit CHEM101
View each parent course category (Chemistry, FST, 2017-18, etc.) and add both the calendar and upcoming blocks
Create category events
Log off
Testing
Test as guest
View the Site home without logging in
Confirm that you can see all of the Site Events that you created in the calendar block
Confirm that you can see all of the upcoming Site Events in the upcoming block
Take a note of which events show in the upcoming block
In the Upcoming block, click the " Go to calendar... " link
Log in as guest
Confirm that you can see the same events as in the upcoming block
Go back, and click on the current month name
Confirm that you can see the same events as in the calendar month block
If MDL-60608 has landed, attempt to change month with the month nav links (back and then forward for example)
Confirm that the correct events are shown
Click on the number of a day to enter day view
Confirm that you can see the same events as in the calendar for that day
If MDL-60608 has landed, attempt to change day (back and then forward for example)
Confirm that the correct events are shown
Test as teacher in a course
Log in as ' hannah ' (a teacher in CHEM101, and CHEM102)
View your Calendar
Confirm that you can see the site events
Confirm that you do not see any events for Physics
Confirm that you do not see any events for the Faculty of Arts and Social Sciences
Confirm that you do not see any events for any student societies
Create some user events
Confirm that you can see these events too
Switch months using the calendar nav
Confirm that the correct events load
Click on a day link to view that day
Confirm that you can see these events too
Switch day using the calendar nav
Confirm that the correct events load
Turn editing on and add the Upcoming events block
Confirm that your upcoming events are shown
Navigate to CHEM101
Create a quiz with due dates
Create some manual events in the course
Navigate to CHEM102
Create a quiz with due dates
Create some manual events in the course
Add both the Calendar, and Upcoming Events blocks to the page
Confirm that all of the events from the first set of confirmations are visible
Confirm that all of the events for CHEM102 are visible
Confirm that none of the events for CHEM101 are visible
In the Upcoming block, click the " Go to calendar... " link
Confirm that you can see the same events as in the upcoming block
Go back, and click on the current month name
Confirm that you can see the same events as in the calendar month block
Change month with the month nav links (back and then forward for example)
Confirm that the correct events are shown
Click on the number of a day to enter day view
Confirm that you can see the same events as in the calendar for that day
Change day (back and then forward for example)
Confirm that the correct events are shown
Follow the link for the Chemistry category
Confirm that you can see all events for both CHEM101, and CHEM102, and all other Chemistry, FST, 2017-18 categories, and Site events
Confirm that you still can't see Physics events
Repeat checks with upcoming + month blocks
Follow the link for the Chemistry category
Confirm that you can see all events for both CHEM101, and CHEM102, and all other Chemistry, FST, 2017-18 categories, and Site events
Confirm that you still can't see Physics events
Repeat checks with upcoming + month blocks
Repeat for each FST + 2017-18 parent categories