diff options
author | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2022-05-03 23:11:19 +0200 |
---|---|---|
committer | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2022-05-03 23:16:24 +0200 |
commit | 3c451f835779f364e4332ffa9d5bc7f811e174db (patch) | |
tree | ac972902e9f1a86ecd37766c6740522e6fc7e2a7 /tests/acceptance | |
parent | 290697b08f3ca4faa34b631cf70ea521cf52142f (diff) | |
download | nextcloud-server-3c451f835779f364e4332ffa9d5bc7f811e174db.tar.gz nextcloud-server-3c451f835779f364e4332ffa9d5bc7f811e174db.zip |
Adjust acceptance tests to changes in notifications markup
Since nextcloud/notifications#1178 each notification in the list is a
"<li>" rather than a "<div>".
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'tests/acceptance')
-rw-r--r-- | tests/acceptance/features/bootstrap/NotificationsContext.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/acceptance/features/bootstrap/NotificationsContext.php b/tests/acceptance/features/bootstrap/NotificationsContext.php index 15ad6ee90c8..86b17219c03 100644 --- a/tests/acceptance/features/bootstrap/NotificationsContext.php +++ b/tests/acceptance/features/bootstrap/NotificationsContext.php @@ -46,7 +46,7 @@ class NotificationsContext implements Context, ActorAwareInterface { * @return Locator */ public static function incomingShareNotificationForFile($fileName) { - return Locator::forThe()->xpath("//div[contains(concat(' ', normalize-space(@class), ' '), ' notification ') and //div[starts-with(normalize-space(), 'You received $fileName as a share by')]]")-> + return Locator::forThe()->xpath("//li[contains(concat(' ', normalize-space(@class), ' '), ' notification ') and //div[starts-with(normalize-space(), 'You received $fileName as a share by')]]")-> descendantOf(self::notificationsContainer())-> describedAs("Notification of incoming share for file $fileName"); } |