From 6d01dfe627d10b00473f6b035f64382e4f7678a4 Mon Sep 17 00:00:00 2001 From: Tim Hunt Date: Mon, 9 Mar 2015 13:30:24 +0000 Subject: [PATCH] MDL-49445 behat: selectors should match the most specific tr or li I also fixed the text rule, which already did this, to use the same idiom. It is unnecessarily inefficient to count all the things and compare to 0. Not exists should be faster. Also, updated all the selectors here to consistently start relative to the current node (.//, not //). --- lib/behat/classes/behat_selectors.php | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/lib/behat/classes/behat_selectors.php b/lib/behat/classes/behat_selectors.php index 5fd807e9351..add2130ec74 100644 --- a/lib/behat/classes/behat_selectors.php +++ b/lib/behat/classes/behat_selectors.php @@ -93,51 +93,51 @@ class behat_selectors { */ protected static $moodleselectors = array( 'activity' => << << << << << << << << << << <<