mirror of
https://github.com/nextcloud/server.git
synced 2026-06-13 10:40:40 -04:00
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:
parent
290697b08f
commit
3c451f8357
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");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue