From 655e604576b22229069a6f18209daf13d68a27d4 Mon Sep 17 00:00:00 2001 From: Noel De Martin Date: Mon, 12 Dec 2022 10:51:27 +0100 Subject: [PATCH] MOBILE-4081 behat: Improve flaky tests --- local_moodleappbehat/tests/behat/behat_app.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/local_moodleappbehat/tests/behat/behat_app.php b/local_moodleappbehat/tests/behat/behat_app.php index a5af4a3ca..168bfa9d5 100644 --- a/local_moodleappbehat/tests/behat/behat_app.php +++ b/local_moodleappbehat/tests/behat/behat_app.php @@ -621,6 +621,9 @@ class behat_app extends behat_app_helper { }); $this->wait_for_pending_js(); + + // Wait for UI to settle after refreshing. + $this->getSession()->wait(300); } /**