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>
This commit is contained in:
Daniel Calviño Sánchez 2022-05-03 23:11:19 +02:00
parent 290697b08f
commit 3c451f8357

View 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");
}