From 69a397cd2c2fb9e048568b2d9cfa29f051dbb80b Mon Sep 17 00:00:00 2001 From: David Monllao Date: Mon, 27 May 2013 14:23:45 +0800 Subject: [PATCH] MDL-39795 behat: Adapting features to consider spaces --- backup/util/ui/tests/behat/restore_moodle2_courses.feature | 2 +- mod/lesson/tests/behat/time_limit.feature | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/backup/util/ui/tests/behat/restore_moodle2_courses.feature b/backup/util/ui/tests/behat/restore_moodle2_courses.feature index f415f07f92f..4c603718832 100644 --- a/backup/util/ui/tests/behat/restore_moodle2_courses.feature +++ b/backup/util/ui/tests/behat/restore_moodle2_courses.feature @@ -88,7 +88,7 @@ Feature: Restore Moodle 2 course backups | id_startdate_year | 2020 | | id_format | Weekly format | And I press "Save changes" - And I should see "1 January - 7 January" + And I should see "1 January - 7 January" And I should see "Test forum name" And I follow "Edit settings" And I expand all fieldsets diff --git a/mod/lesson/tests/behat/time_limit.feature b/mod/lesson/tests/behat/time_limit.feature index 97666e3f3a9..853fc352684 100644 --- a/mod/lesson/tests/behat/time_limit.feature +++ b/mod/lesson/tests/behat/time_limit.feature @@ -39,10 +39,11 @@ Feature: A teacher can set a time limit for a lesson And I wait "3" seconds And I should see "Time remaining" And I press "Single button" - And I should see " 0:00:" + And I should see "0:00:" And I should see "Warning: You have 1 minute or less to finish the lesson." And I wait "60" seconds And I press "Single button" - And I should see "Attention: You ran out of time for this lesson. Your last answer may not have counted if it was answered after the time was up." + And I should see "You ran out of time for this lesson." + And I should see "Your last answer may not have counted if it was answered after the time was up." And I should see "Congratulations - end of lesson reached" And I should not see "Single lesson page contents"