MDL-40825 behat: Giving time to display the ajax response

This commit is contained in:
David Monllao 2013-07-22 23:53:36 +02:00 committed by David Monllao
parent bdd045c5ec
commit b8335fd56b

View File

@ -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"