From 8b88ba475e426363afd39105e66ae72519937499 Mon Sep 17 00:00:00 2001 From: Rajesh Taneja Date: Thu, 5 Mar 2015 13:26:14 +0800 Subject: [PATCH] MDL-48962 mod_lesson: Fixed behat with new timeout setting and string --- mod/lesson/tests/behat/time_limit.feature | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mod/lesson/tests/behat/time_limit.feature b/mod/lesson/tests/behat/time_limit.feature index 800c5e8cec6..6df2e36a3af 100644 --- a/mod/lesson/tests/behat/time_limit.feature +++ b/mod/lesson/tests/behat/time_limit.feature @@ -23,7 +23,9 @@ Feature: A teacher can set a time limit for a lesson And I add a "Lesson" to section "1" and I fill the form with: | Name | Test lesson | | Description | Test lesson description | - | timelimit | 60 | + | timelimit[enabled] | 1 | + | timelimit[timeunit] | 60 | + | timelimit[number] | 1 | And I follow "Test lesson" And I follow "Add a content page" And I set the following fields to these values: @@ -35,7 +37,7 @@ Feature: A teacher can set a time limit for a lesson And I log in as "student1" And I follow "Course 1" When I follow "Test lesson" - Then I should see "You have 1 minute(s) to finish the lesson." + Then I should see "You have 1 min to finish the lesson." And I wait "3" seconds And I should see "Time remaining" And I press "Single button"