MDL-42282 Behat: Automated test for MDLQA-509

MDLQA-509: A teacher can prevent students from accessing an activity
between specified dates