Skip to content
Permalink
Browse files

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

Some errors have been detected when using Clean + Goutte.
  • Loading branch information...
sarjona committed Apr 9, 2019
1 parent 29bc29e commit 1929d6f88c8d04f209f407ea33ecefab98a4fe3f
Showing with 1 addition and 2 deletions.
  1. +1 −2 course/tests/behat/behat_course.php
@@ -777,11 +777,10 @@ public function i_move_activity_to_section($activityname, $sectionnumber) {
// 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",

0 comments on commit 1929d6f

Please sign in to comment.
You can’t perform that action at this time.