From 1929d6f88c8d04f209f407ea33ecefab98a4fe3f Mon Sep 17 00:00:00 2001 From: Sara Arjona Date: Tue, 9 Apr 2019 14:06:21 +0200 Subject: [PATCH] MDL-64819 course: fix behat errors with the move icon Some errors have been detected when using Clean + Goutte. --- course/tests/behat/behat_course.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/course/tests/behat/behat_course.php b/course/tests/behat/behat_course.php index aaa068d674e..7f2b057194c 100644 --- a/course/tests/behat/behat_course.php +++ b/course/tests/behat/behat_course.php @@ -777,11 +777,10 @@ class behat_course extends behat_base { // Ensure the destination is valid. $sectionxpath = $this->section_exists($sectionnumber); - $activitynode = $this->get_activity_element('Move', 'icon', $activityname); - // JS enabled. if ($this->running_javascript()) { + $activitynode = $this->get_activity_element('Move', 'icon', $activityname); $destinationxpath = $sectionxpath . "/descendant::ul[contains(concat(' ', normalize-space(@class), ' '), ' yui3-dd-drop ')]"; $this->execute("behat_general::i_drag_and_i_drop_it_in", -- 2.43.0