MDL-64819 course: fix behat errors with the move icon

Some errors have been detected when using Clean + Goutte.
This commit is contained in:
Sara Arjona
2019-04-09 14:16:42 +02:00
parent 0a91d215c6
commit cc145e54fd
+1 -2
View File
@@ -775,11 +775,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",