From 3eacb315272201262ce20538b88329f0e223a74f Mon Sep 17 00:00:00 2001 From: Rajesh Taneja Date: Tue, 26 Jul 2016 10:14:53 +0800 Subject: [PATCH] MDL-55337 behat: Added 1 sec delay between post Ensure post is created at different timestamp, else returned posts will be different and test fails. This will happen on a fast machine. --- mod/forum/tests/behat/discussion_navigation.feature | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/forum/tests/behat/discussion_navigation.feature b/mod/forum/tests/behat/discussion_navigation.feature index 314bc8819ea..c7a79954ea7 100644 --- a/mod/forum/tests/behat/discussion_navigation.feature +++ b/mod/forum/tests/behat/discussion_navigation.feature @@ -47,6 +47,7 @@ Feature: A user can navigate to previous and next discussions And I add a new discussion to "Test forum name" forum with: | Subject | Discussion 3 | | Message | Test post message | + And I wait "1" seconds When I follow "Discussion 3" Then I should not see "Discussion 1" And I should see "Discussion 2" @@ -60,7 +61,6 @@ Feature: A user can navigate to previous and next discussions And I set the following fields to these values: | Message | Answer to discussion | And I press "Post to forum" - And I wait to be redirected And I should not see "Discussion 2" And I should see "Discussion 3" And I follow "Discussion 3"