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.
This commit is contained in:
Rajesh Taneja
2016-07-26 18:59:51 +08:00
parent 90a8bdbfc0
commit 4505459083
@@ -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"