aboutsummaryrefslogtreecommitdiffstats
path: root/tests/acceptance/features/bootstrap/NotificationContext.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/acceptance/features/bootstrap/NotificationContext.php')
-rw-r--r--tests/acceptance/features/bootstrap/NotificationContext.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/acceptance/features/bootstrap/NotificationContext.php b/tests/acceptance/features/bootstrap/NotificationContext.php
index f8b784e2465..ac9838562e1 100644
--- a/tests/acceptance/features/bootstrap/NotificationContext.php
+++ b/tests/acceptance/features/bootstrap/NotificationContext.php
@@ -31,7 +31,8 @@ class NotificationContext implements Context, ActorAwareInterface {
* @return Locator
*/
public static function notificationMessage($message) {
- return Locator::forThe()->content($message)->descendantOf(self::notificationContainer())->
+ return Locator::forThe()->xpath("//*[@class = 'row' and normalize-space() = '$message']")->
+ descendantOf(self::notificationContainer())->
describedAs("$message notification");
}