diff options
author | Christopher Ng <chrng8@gmail.com> | 2023-01-24 17:40:17 -0800 |
---|---|---|
committer | Christopher Ng <chrng8@gmail.com> | 2023-01-24 17:40:17 -0800 |
commit | 0236c9e8cd1162ea8f0b284dfd846c21f7d3a5be (patch) | |
tree | d5ab0764a64f667a66b134d356736bdb02056dd5 /tests/acceptance | |
parent | 75d7203f579f5761fc921d9506579bec48ebab74 (diff) | |
download | nextcloud-server-0236c9e8cd1162ea8f0b284dfd846c21f7d3a5be.tar.gz nextcloud-server-0236c9e8cd1162ea8f0b284dfd846c21f7d3a5be.zip |
Port files sharing selector
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'tests/acceptance')
-rw-r--r-- | tests/acceptance/features/bootstrap/FilesAppSharingContext.php | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/acceptance/features/bootstrap/FilesAppSharingContext.php b/tests/acceptance/features/bootstrap/FilesAppSharingContext.php index 40c055ed06e..b0f1fbe930b 100644 --- a/tests/acceptance/features/bootstrap/FilesAppSharingContext.php +++ b/tests/acceptance/features/bootstrap/FilesAppSharingContext.php @@ -41,7 +41,7 @@ class FilesAppSharingContext implements Context, ActorAwareInterface { * @return Locator */ public static function shareWithInput() { - return Locator::forThe()->css(".sharing-search__input .multiselect__input")-> + return Locator::forThe()->css(".sharing-search__input input")-> descendantOf(FilesAppContext::detailsView())-> describedAs("Share with input in the details view in Files app"); } @@ -50,8 +50,7 @@ class FilesAppSharingContext implements Context, ActorAwareInterface { * @return Locator */ public static function shareWithInputResults() { - return Locator::forThe()->css(".sharing-search__input .multiselect__content-wrapper")-> - descendantOf(FilesAppContext::detailsView())-> + return Locator::forThe()->css(".vs__dropdown-menu")-> describedAs("Share with input results list in the details view in Files app"); } @@ -59,7 +58,7 @@ class FilesAppSharingContext implements Context, ActorAwareInterface { * @return Locator */ public static function shareWithInputResult($result) { - return Locator::forThe()->xpath("//li[contains(concat(' ', normalize-space(@class), ' '), ' multiselect__element ')]//span[normalize-space() = '$result']/ancestor::li")-> + return Locator::forThe()->xpath("//li//span[normalize-space() = '$result']/ancestor::li")-> descendantOf(self::shareWithInputResults())-> describedAs("Share with input result from the results list in the details view in Files app"); } |