This MR adds a new condition "Course completed" and "Course not completed".
To test you'd need to have courses with enabled/disabled completion and get some users to complete those courses. Then configure a rule with "Course completed" condition (ANY, BEFORE and AFTER operator) and check if matching users are same as users that completed course(s). Then you can disable completion or delete configured courses and confirm a rule becomes broken with a relevant message.
This MR adds a new condition "Course completed" and "Course not completed".
To test you'd need to have courses with enabled/disabled completion and get some users to complete those courses. Then configure a rule with "Course completed" condition (ANY, BEFORE and AFTER operator) and check if matching users are same as users that completed course(s). Then you can disable completion or delete configured courses and confirm a rule becomes broken with a relevant message.