Skip to content

Commit

Permalink
MDL-52347 behat: fix random failures on fast computer
Browse files Browse the repository at this point in the history
  • Loading branch information
marinaglancy authored and Rajesh Taneja committed Dec 24, 2015
1 parent ebc7b73 commit f11ab3b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
Expand Up @@ -23,13 +23,15 @@ Background:
And I press "Post to forum"
And I wait to be redirected
And I follow "Course 1"
And I wait "1" seconds
And I press "Add a new discussion topic"
And I set the following fields to these values:
| Subject | Forum Post 9 |
| Message | This is forum post nine |
And I press "Post to forum"
And I wait to be redirected
And I follow "Course 1"
And I wait "1" seconds
And I press "Add a new discussion topic"
And I set the following fields to these values:
| Subject | Forum Post 8 |
Expand Down Expand Up @@ -78,6 +80,7 @@ Background:
| Message | This is forum post two |
And I press "Post to forum"
And I wait to be redirected
And I wait "1" seconds
And I follow "Course 1"
And I press "Add a new discussion topic"
And I set the following fields to these values:
Expand Down
2 changes: 2 additions & 0 deletions message/tests/behat/display_history.feature
Expand Up @@ -11,6 +11,7 @@ Feature: Message history displays correctly
| user2 | User | Two | two@example.com |
And I log in as "user1"
And I send "Message 1 from user1 to user2" message to "User Two" user
And I wait "1" seconds
And I send "Message 2 from user1 to user2" message to "User Two" user
And I send "Message 3 from user1 to user2" message to "User Two" user
And I send "Message 4 from user1 to user2" message to "User Two" user
Expand All @@ -19,6 +20,7 @@ Feature: Message history displays correctly
And I send "Message 7 from user1 to user2" message to "User Two" user
And I send "Message 8 from user1 to user2" message to "User Two" user
And I send "Message 9 from user1 to user2" message to "User Two" user
And I wait "1" seconds
And I send "Message 10 from user1 to user2" message to "User Two" user

Scenario: View sent messages
Expand Down
1 change: 1 addition & 0 deletions mod/forum/tests/behat/discussion_navigation.feature
Expand Up @@ -56,6 +56,7 @@ Feature: A user can navigate to previous and next discussions
And I follow "Discussion 1"
And I should see "Discussion 2"
And I should not see "Discussion 3"
And I wait "1" seconds
And I follow "Reply"
And I set the following fields to these values:
| Message | Answer to discussion |
Expand Down

0 comments on commit f11ab3b

Please sign in to comment.