diff options
author | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2019-06-13 14:04:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-13 14:04:50 +0200 |
commit | b3bfae8cfe84555000a7acc29ce92b1e30d8bced (patch) | |
tree | 85eaeb46577414e88472afa5ff53206d15c4aeed | |
parent | 452d7696ff7e663f1794742d9708bb62a2771097 (diff) | |
parent | df8406dbae7e5d5bae77af969b0e2d25102dfbe6 (diff) | |
download | nextcloud-server-b3bfae8cfe84555000a7acc29ce92b1e30d8bced.tar.gz nextcloud-server-b3bfae8cfe84555000a7acc29ce92b1e30d8bced.zip |
Adjust acceptance tests to notifications based on toastify (#15938)
Adjust acceptance tests to notifications based on toastify
-rw-r--r-- | tests/acceptance/features/bootstrap/NotificationContext.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/acceptance/features/bootstrap/NotificationContext.php b/tests/acceptance/features/bootstrap/NotificationContext.php index ac9838562e1..717de4302da 100644 --- a/tests/acceptance/features/bootstrap/NotificationContext.php +++ b/tests/acceptance/features/bootstrap/NotificationContext.php @@ -31,7 +31,7 @@ class NotificationContext implements Context, ActorAwareInterface { * @return Locator */ public static function notificationMessage($message) { - return Locator::forThe()->xpath("//*[@class = 'row' and normalize-space() = '$message']")-> + return Locator::forThe()->xpath("//*[contains(concat(' ', normalize-space(@class), ' '), ' toastify ') and normalize-space(text()) = '$message']")-> descendantOf(self::notificationContainer())-> describedAs("$message notification"); } @@ -40,7 +40,7 @@ class NotificationContext implements Context, ActorAwareInterface { * @return Locator */ private static function notificationContainer() { - return Locator::forThe()->id("notification-container")-> + return Locator::forThe()->id("content")-> describedAs("Notification container"); } |