MDL-42281 Behat: Automated test for MDLQA-510

MDLQA-510: A teacher can set grade conditions to restrict availability
of an activity