From 98b560170eb5a1a92ea91efeaa6ad1c33f8420a7 Mon Sep 17 00:00:00 2001 From: Saugat Pachhai Date: Wed, 23 Jan 2019 16:02:09 +0545 Subject: [PATCH] Wait for the element to appear. Resolves #34186 --- .../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 1913e8f82b0a..6cf135ec79fc 100644 --- a/tests/acceptance/features/lib/FilesPageElement/SharingDialog.php +++ b/tests/acceptance/features/lib/FilesPageElement/SharingDialog.php @@ -301,7 +301,7 @@ public function setSharingPermissions( $xpathLocator = \sprintf( $this->permissionsFieldByUserName, $shareReceiverName ); - $permissionsField = $this->find("xpath", $xpathLocator); + $permissionsField = $this->waitTillElementIsNotNull($xpathLocator); $this->assertElementNotNull( $permissionsField, __METHOD__