From 4eac169974ebb05cc227c44bb0899cfc57d25795 Mon Sep 17 00:00:00 2001 From: Rajesh Taneja Date: Mon, 1 Dec 2014 11:24:04 +0800 Subject: [PATCH] MDL-48426 behat: Wait for redirection after save After saving wiki comment, page is redirected Make sure to wait for redirection after save to avoid random fails --- mod/wiki/tests/behat/wiki_comments.feature | 1 + 1 file changed, 1 insertion(+) diff --git a/mod/wiki/tests/behat/wiki_comments.feature b/mod/wiki/tests/behat/wiki_comments.feature index 4ffa1a1aed7..afd3b499c82 100644 --- a/mod/wiki/tests/behat/wiki_comments.feature +++ b/mod/wiki/tests/behat/wiki_comments.feature @@ -40,6 +40,7 @@ Feature: Users can comment on wiki pages And I set the following fields to these values: | Comment | student 1 original comment | And I press "Save" + And I wait to be redirected @javascript Scenario: Student can edit and delete their own comment