From: Mathew May Date: Tue, 10 Mar 2020 01:01:17 +0000 (+0800) Subject: MDL-68030 core_course: Update behat X-Git-Tag: v3.9.0-beta~463^2~1 X-Git-Url: http://git.moodle.org/gw?p=moodle.git;a=commitdiff_plain;h=c515848ce0e48d28827c3e88365ac348ebb3e0b7 MDL-68030 core_course: Update behat --- diff --git a/course/tests/behat/behat_course.php b/course/tests/behat/behat_course.php index ed41a46fad9..1f16af605b6 100644 --- a/course/tests/behat/behat_course.php +++ b/course/tests/behat/behat_course.php @@ -250,7 +250,7 @@ class behat_course extends behat_base { // Clicks the selected activity if it exists. $activityxpath = "//div[contains(concat(' ', normalize-space(@class), ' '), ' modchooser ')]" . "/descendant::div[contains(concat(' ', normalize-space(@class), ' '), ' optioninfo ')]" . - "/descendant::span[contains(concat(' ', normalize-space(@class), ' '), ' optionname ')]" . + "/descendant::p[contains(concat(' ', normalize-space(@class), ' '), ' optionname ')]" . "[normalize-space(.)=$activityliteral]" . "/parent::a";