From b8335fd56bb48314583544616b99ebd87aafe324 Mon Sep 17 00:00:00 2001 From: David Monllao Date: Mon, 22 Jul 2013 23:53:36 +0200 Subject: [PATCH] MDL-40825 behat: Giving time to display the ajax response --- .../navigation/tests/behat/view_my_courses.feature | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/blocks/navigation/tests/behat/view_my_courses.feature b/blocks/navigation/tests/behat/view_my_courses.feature index 102a03cef83..567250b0e4d 100644 --- a/blocks/navigation/tests/behat/view_my_courses.feature +++ b/blocks/navigation/tests/behat/view_my_courses.feature @@ -57,12 +57,15 @@ Feature: View my courses in navigation block Then I should see "cat1" in the "div.block_navigation .type_system" "css_element" And I should see "cat3" in the "div.block_navigation .type_system" "css_element" And I should not see "cat2" in the "div.block_navigation .type_system" "css_element" - When I expand "cat3" node - Then I should see "cat31" in the "div.block_navigation .type_system" "css_element" + And I expand "cat3" node + And I wait "2" seconds + And I should see "cat31" in the "div.block_navigation .type_system" "css_element" And I should see "cat33" in the "div.block_navigation .type_system" "css_element" And I should not see "cat32" in the "div.block_navigation .type_system" "css_element" - When I expand "cat31" node - Then I should see "c31" in the "div.block_navigation .type_system" "css_element" - When I expand "cat33" node + And I expand "cat31" node + And I wait "2" seconds + And I should see "c31" in the "div.block_navigation .type_system" "css_element" + And I expand "cat33" node + And I wait "2" seconds And I should see "c331" in the "div.block_navigation .type_system" "css_element" And I should not see "c332" in the "div.block_navigation .type_system" "css_element"