summaryrefslogtreecommitdiffstats
path: root/tests/acceptance/features/bootstrap/SettingsMenuContext.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/acceptance/features/bootstrap/SettingsMenuContext.php')
-rw-r--r--tests/acceptance/features/bootstrap/SettingsMenuContext.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/acceptance/features/bootstrap/SettingsMenuContext.php b/tests/acceptance/features/bootstrap/SettingsMenuContext.php
index 9ce8df4caef..1ff5d94e98f 100644
--- a/tests/acceptance/features/bootstrap/SettingsMenuContext.php
+++ b/tests/acceptance/features/bootstrap/SettingsMenuContext.php
@@ -61,7 +61,8 @@ class SettingsMenuContext implements Context, ActorAwareInterface {
* @return Locator
*/
private static function menuItemFor($itemText) {
- return Locator::forThe()->content($itemText)->descendantOf(self::settingsMenu())->
+ return Locator::forThe()->xpath("//a[normalize-space() = '$itemText']")->
+ descendantOf(self::settingsMenu())->
describedAs($itemText . " item in Settings menu");
}