This test requires conditional access to be enabled by an administrator in Site administration > Advanced features.
1. Login as a teacher and create an online text assignment.
2. Create a page resource with a grade condition of the online text assignment being at least 20%.
3. Select 'Show activity greyed-out, with restriction information' for 'Before activity is available'.
4. Login as a student, view the course page and check that the page resource is shown greyed-out with the grade condition specified.
5. Attempt the online text assignment.
6. Login as the teacher and give the student's online text submission at least 20%.
7. Login as the student, view the course page and check that page resource is now available.