Merge pull request #32259 from nextcloud/adjust-acceptance-tests-to-changes-in-notifications-markup

Adjust acceptance tests to changes in notifications markup
pull/32278/head
Joas Schilling 2022-05-05 09:21:00 +07:00 committed by GitHub
commit d3efd40a24
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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