From 318edb0de81b311dbcceab621e524efe229e5a59 Mon Sep 17 00:00:00 2001 From: Niraj Acharya Date: Thu, 17 Oct 2024 10:15:04 +0545 Subject: [PATCH] adding test for editing space with role space editor without version --- .../features/apiSpaces/changeSpaces.feature | 21 ++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/tests/acceptance/features/apiSpaces/changeSpaces.feature b/tests/acceptance/features/apiSpaces/changeSpaces.feature index 18f7dd6da41..75f44b56745 100644 --- a/tests/acceptance/features/apiSpaces/changeSpaces.feature +++ b/tests/acceptance/features/apiSpaces/changeSpaces.feature @@ -600,4 +600,23 @@ Feature: Change data of space Examples: | role | | Space Editor Without Versions | - | Space Editor | \ No newline at end of file + | Space Editor | + @env-config + Scenario: space member with role 'Space Editor Without Versions' edits the space + Given the administrator has enabled the permissions role "Space Editor Without Versions" + And these users have been created with default attributes and without skeleton files: + | username | + | Carol | + And user "Alice" has sent the following space share invitation: + | space | Project Jupiter | + | sharee | Carol | + | shareType | user | + | permissionsRole | Space Editor Without Versions | + When user "Carol" creates a folder ".space" in space "Project Jupiter" using the WebDav Api + Then the HTTP status code should be "201" + When user "Carol" uploads a file inside space "Project Jupiter" with content "hello" to ".space/readme.md" using the WebDAV API + Then the HTTP status code should be "201" + When user "Carol" sets the file ".space/readme.md" as a description in a special section of the "Project Jupiter" space + Then the HTTP status code should be "200" + When user "Carol" removes the folder ".space" from space "Project Jupiter" + Then the HTTP status code should be "204" \ No newline at end of file