From 3f1fa45771a5f3062c2a5d9cd1ad5aea07d92429 Mon Sep 17 00:00:00 2001 From: Damyon Wiese Date: Mon, 24 Oct 2016 10:37:07 +0800 Subject: [PATCH] MDL-55074 theme_boost: Phantomjs robustness Raj was seeing some fails with phantomjs because the action menus were not open after clicking on the link to open them. Make sure we look for the open menu before continuing. --- theme/boost/tests/behat/behat_theme_boost_behat_course.php | 1 + 1 file changed, 1 insertion(+) diff --git a/theme/boost/tests/behat/behat_theme_boost_behat_course.php b/theme/boost/tests/behat/behat_theme_boost_behat_course.php index d3cfa21b60b..032384b3c56 100644 --- a/theme/boost/tests/behat/behat_theme_boost_behat_course.php +++ b/theme/boost/tests/behat/behat_theme_boost_behat_course.php @@ -58,6 +58,7 @@ class behat_theme_boost_behat_course extends behat_course { array("a[data-toggle='dropdown']", "css_element", $this->escape($activityname)) ); + $this->actions_menu_should_be_open($activityname); } public function i_close_actions_menu($activityname) {