And I see that the "Sharing" tab in the details view is eventually loaded
And I see that the file is shared with me by "admin"
+ Scenario: reshare a file with another user
+ Given I act as John
+ And I am logged in as the admin
+ And I act as Jane
+ And I am logged in
+ And I act as Jim
+ And I am logged in as "user1"
+ And I act as John
+ And I rename "welcome.txt" to "farewell.txt"
+ And I see that the file list contains a file named "farewell.txt"
+ And I share "farewell.txt" with "user0"
+ And I see that the file is shared with "user0"
+ And I act as Jane
+ # The Files app is open again to reload the file list
+ And I open the Files app
+ When I share "farewell.txt" with "user1"
+ And I see that the file is shared with "user1"
+ And I act as Jim
+ # The Files app is open again to reload the file list
+ And I open the Files app
+ Then I see that the file list contains a file named "farewell.txt"
+ And I open the details view for "farewell.txt"
+ And I see that the details view is open
+ And I open the "Sharing" tab in the details view
+ And I see that the "Sharing" tab in the details view is eventually loaded
+ And I see that the file is shared with me by "user0"
+
Scenario: share an empty folder with another user
Given I act as John
And I am logged in as the admin
$this->filesAppContext->iSeeThatTheCurrentPageIsTheFilesApp();
}
+ /**
+ * @Given I am logged in as :userName
+ */
+ public function iAmLoggedInAs($userName) {
+ $this->featureContext->iVisitTheHomePage();
+ $this->iLogInWithUserAndPassword($userName, "123456acb");
+ $this->filesAppContext->iSeeThatTheCurrentPageIsTheFilesApp();
+ }
+
/**
* @Given I am logged in as the admin
*/
php occ maintenance:install --admin-pass=admin
OC_PASS=123456acb php occ user:add --password-from-env user0
+OC_PASS=123456acb php occ user:add --password-from-env user1
OC_PASS=123456acb php occ user:add --password-from-env disabledUser
php occ user:disable disabledUser