diff options
author | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2022-07-26 15:13:18 +0200 |
---|---|---|
committer | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2022-07-26 15:13:18 +0200 |
commit | 525cf58735fc19501f1371aaec0830ffef3f6ac1 (patch) | |
tree | ff0c40c18c65e99c73dbffa32e9db36759a41c3e /tests/acceptance/features | |
parent | b4353c46519ffc44c30eb258210911a044bbca41 (diff) | |
download | nextcloud-server-525cf58735fc19501f1371aaec0830ffef3f6ac1.tar.gz nextcloud-server-525cf58735fc19501f1371aaec0830ffef3f6ac1.zip |
Adjust acceptance tests to changes in sharing tab
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>
Diffstat (limited to 'tests/acceptance/features')
-rw-r--r-- | tests/acceptance/features/bootstrap/FilesAppSharingContext.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/acceptance/features/bootstrap/FilesAppSharingContext.php b/tests/acceptance/features/bootstrap/FilesAppSharingContext.php index d71b0196dbb..ce3158f9bd9 100644 --- a/tests/acceptance/features/bootstrap/FilesAppSharingContext.php +++ b/tests/acceptance/features/bootstrap/FilesAppSharingContext.php @@ -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"); } |