From 99bb8879659138822777ea31de3eed41e3a0573a Mon Sep 17 00:00:00 2001 From: Prarup Gurung Date: Mon, 13 May 2024 17:04:08 +0545 Subject: [PATCH] shareSubItemOfSpaceViaPublicLink.feature: Used sharingNG for sharing in given step --- .../shareSubItemOfSpaceViaPublicLink.feature | 42 +++++++++++-------- 1 file changed, 24 insertions(+), 18 deletions(-) diff --git a/tests/acceptance/features/apiSpacesShares/shareSubItemOfSpaceViaPublicLink.feature b/tests/acceptance/features/apiSpacesShares/shareSubItemOfSpaceViaPublicLink.feature index 4553fc21c1..c606a0b4d6 100644 --- a/tests/acceptance/features/apiSpacesShares/shareSubItemOfSpaceViaPublicLink.feature +++ b/tests/acceptance/features/apiSpacesShares/shareSubItemOfSpaceViaPublicLink.feature @@ -67,9 +67,11 @@ Feature: Share a file or folder that is inside a space via public link @issue-5139 Scenario Outline: user participant of the project space with space manager role can share an entity inside project space via public link - Given user "Alice" has shared a space "share sub-item" with settings: - | shareWith | Brian | - | role | manager | + Given user "Alice" has sent the following space share invitation: + | space | share sub-item | + | sharee | Brian | + | shareType | user | + | permissionsRole | Manager | When user "Brian" creates a public link share inside of space "share sub-item" with settings: | path | | | shareType | 3 | @@ -97,9 +99,11 @@ Feature: Share a file or folder that is inside a space via public link @skipOnRevaMaster Scenario Outline: user participant of the project space without space manager role cannot share an entity inside project space via public link - Given user "Alice" has shared a space "share sub-item" with settings: - | shareWith | Brian | - | role | | + Given user "Alice" has sent the following space share invitation: + | space | share sub-item | + | sharee | Brian | + | shareType | user | + | permissionsRole | | When user "Brian" creates a public link share inside of space "share sub-item" with settings: | path | | | shareType | 3 | @@ -111,11 +115,11 @@ Feature: Share a file or folder that is inside a space via public link And the OCS status code should be "403" And the OCS status message should be "No share permission" Examples: - | resource | space-role | - | folder | editor | - | folder | viewer | - | folder/file.txt | editor | - | folder/file.txt | viewer | + | resource | space-role | + | folder | Space Editor | + | folder | Space Viewer | + | folder/file.txt | Space Editor | + | folder/file.txt | Space Viewer | Scenario Outline: user creates a new public link share of a file inside the personal space with edit permissions @@ -147,9 +151,11 @@ Feature: Share a file or folder that is inside a space via public link @issue-5139 Scenario Outline: user participant of the project space can see the created public resources link - Given user "Alice" has shared a space "share sub-item" with settings: - | shareWith | Brian | - | role | | + Given user "Alice" has sent the following space share invitation: + | space | share sub-item | + | sharee | Brian | + | shareType | user | + | permissionsRole | | When user "Alice" creates a public link share inside of space "share sub-item" with settings: | path | folder/file.txt | | shareType | 3 | @@ -169,7 +175,7 @@ Feature: Share a file or folder that is inside a space via public link | space_id | %space_id% | And for user "Brian" the space "share sub-item" should contain the last created public link of the file "folder/file.txt" Examples: - | space-role | - | editor | - | viewer | - | manager | + | space-role | + | Space Editor | + | Space Viewer | + | Manager |