X-Git-Url: http://git.moodle.org/gw?p=moodle.git;a=blobdiff_plain;f=blocks%2Fcompletionstatus%2Ftests%2Fbehat%2Fblock_completionstatus_manual_other.feature;h=eb859d0b09e33bed07ad247d7e935c24de09b04a;hp=1aaed0a398997a9b6917485930727fccdadbc5bf;hb=442a3651ec71a29aab639292691a6b0e3861c273;hpb=33892edf189f5e2c9041c67119e1fd5fbe540635 diff --git a/blocks/completionstatus/tests/behat/block_completionstatus_manual_other.feature b/blocks/completionstatus/tests/behat/block_completionstatus_manual_other.feature index 1aaed0a3989..eb859d0b09e 100644 --- a/blocks/completionstatus/tests/behat/block_completionstatus_manual_other.feature +++ b/blocks/completionstatus/tests/behat/block_completionstatus_manual_other.feature @@ -39,7 +39,10 @@ Feature: Enable Block Completion in a course using manual completion by others And I follow "Course 1" And I navigate to "Course completion" node in "Reports" And I follow "Click to mark user complete" - And I trigger cron + # Running completion task just after clicking sometimes fail, as record + # should be created before the task runs. + And I wait "1" seconds + And I run the scheduled task "core\task\completion_regular_task" And I am on site homepage And I log out And I log in as "student1" @@ -87,7 +90,10 @@ Feature: Enable Block Completion in a course using manual completion by others And I follow "Course 1" And I navigate to "Course completion" node in "Reports" And I follow "Click to mark user complete" - And I trigger cron + # Running completion task just after clicking sometimes fail, as record + # should be created before the task runs. + And I wait "1" seconds + And I run the scheduled task "core\task\completion_regular_task" And I am on site homepage And I log out And I log in as "student1"