From c515848ce0e48d28827c3e88365ac348ebb3e0b7 Mon Sep 17 00:00:00 2001 From: Mathew May Date: Tue, 10 Mar 2020 09:01:17 +0800 Subject: [PATCH] MDL-68030 core_course: Update behat --- course/tests/behat/behat_course.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"; -- 2.43.0