]> source.dussan.org Git - nextcloud-server.git/commitdiff
Adjust acceptance tests to changes in notifications markup 32259/head
authorDaniel Calviño Sánchez <danxuliu@gmail.com>
Tue, 3 May 2022 21:11:19 +0000 (23:11 +0200)
committerDaniel Calviño Sánchez <danxuliu@gmail.com>
Tue, 3 May 2022 21:16:24 +0000 (23:16 +0200)
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>
tests/acceptance/features/bootstrap/NotificationsContext.php

index 15ad6ee90c87489d661b62db59473bb1f6a76161..86b17219c03efaf56c38ccf50e7fd227005d0415 100644 (file)
@@ -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");
        }