This test requires completion tracking to be enabled by an administrator in Site administration > Advanced features and also enabled in the course settings.
1. Login as a teacher, access a resource and edit the settings.
2. Set the completion tracking to 'Show activity as complete when conditions are met'.
3. Select 'Student must view this activity to complete it'.
4. Login as a student and view the resource.
5. Login as the teacher again, access the course and check that the resource is marked as complete for the student in Reports > Activity completion.