mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
MDL-45164 behat: Add a wait to avoid random failures
It may fail in fast systems as the JS animation to remove the delete comment may be slower than the following steps where we check that the element is not there anymore.
This commit is contained in:
parent
a0461340ff
commit
2353a68fa8
@ -31,6 +31,8 @@ Feature: In an assignment, students can comment in their submissions
|
||||
Then I should see "First student comment"
|
||||
And the field "content" matches value "Add a comment..."
|
||||
And I follow "Delete this comment"
|
||||
# Wait for the animation to finish.
|
||||
And I wait "2" seconds
|
||||
And I set the field "content" to "Second student comment"
|
||||
And I follow "Save comment"
|
||||
And I should see "Second student comment"
|
||||
|
Loading…
x
Reference in New Issue
Block a user