MDL-37750 behat: More time for AJAX-related actions
authorDavid Monllao <davidm@moodle.com>
Wed, 13 Feb 2013 05:19:56 +0000 (13:19 +0800)
committerDavid Monllao <davidm@moodle.com>
Wed, 13 Feb 2013 05:19:56 +0000 (13:19 +0800)
When we want to assert against data coming
from an AJAX request with 1 second we don't
have enough time to ensure the elements are
loaded

admin/tool/behat/tests/behat/data_generators.feature

index 19aeb51..ef5a993 100644 (file)
@@ -102,8 +102,8 @@ Feature: Set up contextual data for tests
     Then the "groups" select box should contain "Group 1 (1)"
     And the "groups" select box should contain "Group 2 (1)"
     And I select "Group 1 (1)" from "groups"
-    And I wait "1" seconds
+    And I wait "5" seconds
     And the "members" select box should contain "Student 1"
     And I select "Group 2 (1)" from "groups"
-    And I wait "1" seconds
+    And I wait "5" seconds
     And the "members" select box should contain "Student 2"