[tests-only] separate different SharingNG share steps (#9097)

* separate When steps using root and permissions endpoints

test: separate resource sharing GIven step from space share

test: share space via root endpoint in Given steps

test: use existing step

test: fix more steps

* test: separate resource and space link share creation

test: fix php code style
This commit is contained in:
Sawjan Gurung
2024-05-08 14:22:52 +05:45
committed by GitHub
parent 41af5f7168
commit abb537f08f
43 changed files with 690 additions and 526 deletions
@@ -16,12 +16,12 @@ Feature: Download file in project space
And the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
And user "Alice" has created a space "download file" with the default quota using the Graph API
And user "Alice" has uploaded a file inside space "download file" with content "some content" to "file.txt"
And user "Alice" has sent the following share invitation:
And user "Alice" has sent the following space share invitation:
| space | download file |
| sharee | Brian |
| shareType | user |
| permissionsRole | Space Editor |
And user "Alice" has sent the following share invitation:
And user "Alice" has sent the following space share invitation:
| space | download file |
| sharee | Bob |
| shareType | user |
@@ -29,7 +29,7 @@ Feature: Download space
Scenario Outline: user downloads a shared space (shared by others)
Given user "Alice" has sent the following share invitation:
Given user "Alice" has sent the following space share invitation:
| space | Project-space |
| sharee | Brian |
| shareType | user |