From 0236c9e8cd1162ea8f0b284dfd846c21f7d3a5be Mon Sep 17 00:00:00 2001 From: Christopher Ng Date: Tue, 24 Jan 2023 17:40:17 -0800 Subject: Port files sharing selector Signed-off-by: Christopher Ng --- tests/acceptance/features/bootstrap/FilesAppSharingContext.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'tests') 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"); } -- cgit v1.2.3