From 3c451f835779f364e4332ffa9d5bc7f811e174db Mon Sep 17 00:00:00 2001 From: =?utf8?q?Daniel=20Calvi=C3=B1o=20S=C3=A1nchez?= Date: Tue, 3 May 2022 23:11:19 +0200 Subject: [PATCH] Adjust acceptance tests to changes in notifications markup MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Since nextcloud/notifications#1178 each notification in the list is a "
  • " rather than a "
    ". Signed-off-by: Daniel Calviño Sánchez --- tests/acceptance/features/bootstrap/NotificationsContext.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); } -- 2.39.5