]> source.dussan.org Git - nextcloud-server.git/commitdiff
Adjust acceptance tests to changes in sharing tab 33360/head
authorDaniel Calviño Sánchez <danxuliu@gmail.com>
Tue, 26 Jul 2022 13:13:18 +0000 (15:13 +0200)
committerDaniel Calviño Sánchez <danxuliu@gmail.com>
Tue, 26 Jul 2022 13:13:18 +0000 (15:13 +0200)
The name of the user shared with is now marked with a "span" rather than
with "h5".

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
tests/acceptance/features/bootstrap/FilesAppSharingContext.php

index d71b0196dbb5e875a6689d217429770355537a23..ce3158f9bd9b0629cbdb7a448460a02310f6ba87 100644 (file)
@@ -79,7 +79,7 @@ class FilesAppSharingContext implements Context, ActorAwareInterface {
        public static function sharedWithRow($sharedWithName) {
                // "username" class is used for any type of share, not only for shares
                // with users.
-               return Locator::forThe()->xpath("//li[contains(concat(' ', normalize-space(@class), ' '), ' sharing-entry ')]//h5[normalize-space() = '$sharedWithName']/ancestor::li")->
+               return Locator::forThe()->xpath("//li[contains(concat(' ', normalize-space(@class), ' '), ' sharing-entry ')]//span[normalize-space() = '$sharedWithName']/ancestor::li")->
                                descendantOf(self::shareeList())->
                                describedAs("Shared with $sharedWithName row in the details view in Files app");
        }