From 07c047b0b22ff315030496ff68977d1c352c7bcc Mon Sep 17 00:00:00 2001 From: Dipak Acharya Date: Tue, 9 Jun 2020 11:46:55 +0545 Subject: [PATCH] [Tests-Only] fix regex for info string in the sharing dialog in ui tests --- .../acceptance/features/lib/FilesPageElement/SharingDialog.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/acceptance/features/lib/FilesPageElement/SharingDialog.php b/tests/acceptance/features/lib/FilesPageElement/SharingDialog.php index b7d1d762081d..c759c12004a4 100644 --- a/tests/acceptance/features/lib/FilesPageElement/SharingDialog.php +++ b/tests/acceptance/features/lib/FilesPageElement/SharingDialog.php @@ -50,7 +50,7 @@ class SharingDialog extends OwncloudPage { private $suffixToIdentifyUsers = " User"; private $suffixToIdentifyRemoteUsers = " Federated"; private $sharerInformationXpath = ".//*[@class='reshare']"; - private $sharedWithAndByRegEx = "^(?:[A-Z]\s)?Shared with you(?: and the group (.*))? by (.*)$"; + private $sharedWithAndByRegEx = "Shared with you(?: and the group (.*))? by (.*)$"; private $permissionsFieldByUserNameWithExtraInfo = "//*[@id='shareWithList']//span[contains(text(), '%s')]/parent::li[@data-share-with='%s']"; private $permissionsFieldByUserName = "//*[@id='shareWithList']//span[contains(text(), '%s')]/parent::li"; private $permissionsFieldByGroupName = "//*[@id='shareWithList']//span[contains(text(), '%s (group)')]/parent::li";