Skip to content

Commit

Permalink
adding test for editing space with role space editor without version
Browse files Browse the repository at this point in the history
  • Loading branch information
nirajacharya2 committed Oct 28, 2024
1 parent 703a526 commit 318edb0
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion tests/acceptance/features/apiSpaces/changeSpaces.feature
Original file line number Diff line number Diff line change
Expand Up @@ -600,4 +600,23 @@ Feature: Change data of space
Examples:
| role |
| Space Editor Without Versions |
| Space Editor |
| 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"

0 comments on commit 318edb0

Please sign in to comment.