diff --git a/tests/acceptance/features/webUIRestrictSharing/disableSharing.feature b/tests/acceptance/features/webUIRestrictSharing/disableSharing.feature index 74148b605049..b83c55ce149c 100644 --- a/tests/acceptance/features/webUIRestrictSharing/disableSharing.feature +++ b/tests/acceptance/features/webUIRestrictSharing/disableSharing.feature @@ -5,11 +5,12 @@ Feature: disable sharing So that users cannot share files Background: - Given user "user1" has been created with default attributes and skeleton files + Given user "user1" has been created with default attributes and without skeleton files @TestAlsoOnExternalUserBackend @smokeTest Scenario: Users tries to share via WebUI when Sharing is disabled - Given the setting "Allow apps to use the Share API" in the section "Sharing" has been disabled + Given user "user1" has created folder "simple-folder" + And the setting "Allow apps to use the Share API" in the section "Sharing" has been disabled When user "user1" logs in using the webUI Then it should not be possible to share folder "simple-folder" using the webUI diff --git a/tests/acceptance/features/webUIRestrictSharing/restrictReSharing.feature b/tests/acceptance/features/webUIRestrictSharing/restrictReSharing.feature index b938a687f626..d444e26ee0b9 100644 --- a/tests/acceptance/features/webUIRestrictSharing/restrictReSharing.feature +++ b/tests/acceptance/features/webUIRestrictSharing/restrictReSharing.feature @@ -6,7 +6,7 @@ Feature: restrict resharing I want to be able to forbid a user that received a share from me to share it further Background: - Given these users have been created with default attributes and skeleton files: + Given these users have been created with default attributes and without skeleton files: | username | | user1 | | user2 | @@ -15,6 +15,8 @@ Feature: restrict resharing | grp1 | And user "user1" has been added to group "grp1" And user "user2" has been added to group "grp1" + And user "user1" has created folder "simple-folder" + And user "user2" has created folder "simple-folder" And user "user2" has logged in using the webUI @skipOnMICROSOFTEDGE @TestAlsoOnExternalUserBackend diff --git a/tests/acceptance/features/webUIRestrictSharing/restrictSharing.feature b/tests/acceptance/features/webUIRestrictSharing/restrictSharing.feature index 271ecf63a7ba..44eddb2eed16 100644 --- a/tests/acceptance/features/webUIRestrictSharing/restrictSharing.feature +++ b/tests/acceptance/features/webUIRestrictSharing/restrictSharing.feature @@ -5,18 +5,18 @@ Feature: restrict Sharing So that users can only share files with specific users and groups Background: - Given these users have been created with default attributes and skeleton files: + Given these users have been created with default attributes and without skeleton files: | username | | user1 | | user2 | - | user3 | And these groups have been created: | groupname | | grp1 | | grp2 | And user "user1" has been added to group "grp1" And user "user2" has been added to group "grp1" - And user "user3" has been added to group "grp2" + And user "user1" has created folder "simple-folder" + And user "user2" has created folder "simple-folder" And user "user2" has logged in using the webUI @TestAlsoOnExternalUserBackend @@ -41,7 +41,10 @@ Feature: restrict Sharing @TestAlsoOnExternalUserBackend Scenario: Do not restrict users to only share with groups they are member of - Given the setting "Restrict users to only share with groups they are member of" in the section "Sharing" has been disabled + Given user "user3" has been created with default attributes and without skeleton files + And user "user3" has been added to group "grp2" + And user "user3" has created folder "simple-folder" + And the setting "Restrict users to only share with groups they are member of" in the section "Sharing" has been disabled And the user browses to the files page When the user shares folder "simple-folder" with group "grp2" using the webUI And the user re-logs in as "user3" using the webUI