From 3c451f835779f364e4332ffa9d5bc7f811e174db Mon Sep 17 00:00:00 2001 From: Daniel Calviño Sánchez Date: Tue, 3 May 2022 23:11:19 +0200 Subject: Adjust acceptance tests to changes in notifications markup MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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(-) (limited to 'tests/acceptance') 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"); } -- cgit v1.2.3