[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
@@ -54,7 +54,7 @@ Feature: date search
And using spaces DAV path
And user "Alice" has created folder "sharedFolder"
And user "Alice" uploads a file "filesForUpload/textfile.txt" to "/sharedFolder/yesterday.txt" with mtime "yesterday" via TUS inside of the space "Personal" using the WebDAV API
And user "Alice" has sent the following share invitation:
And user "Alice" has sent the following resource share invitation:
| resource | sharedFolder |
| space | Personal |
| sharee | Brian |
@@ -35,7 +35,7 @@ Feature: Search
Scenario Outline: user can search items from the shares
Given using <dav-path-version> DAV path
And user "Alice" has sent the following share invitation:
And user "Alice" has sent the following resource share invitation:
| resource | folderMain |
| space | project101 |
| sharee | Brian |
@@ -74,7 +74,7 @@ Feature: Search
Scenario Outline: user cannot search pending share
Given user "Brian" has disabled auto-accepting
And using <dav-path-version> DAV path
And user "Alice" has sent the following share invitation:
And user "Alice" has sent the following resource share invitation:
| resource | folderMain |
| space | project101 |
| sharee | Brian |
@@ -96,7 +96,7 @@ Feature: Search
Scenario Outline: user cannot search declined share
Given using <dav-path-version> DAV path
And user "Alice" has sent the following share invitation:
And user "Alice" has sent the following resource share invitation:
| resource | folderMain |
| space | project101 |
| sharee | Brian |
@@ -163,7 +163,7 @@ Feature: Search
Scenario Outline: search inside folder in shares
Given using <dav-path-version> DAV path
And user "Alice" has sent the following share invitation:
And user "Alice" has sent the following resource share invitation:
| resource | folderMain |
| space | project101 |
| sharee | Brian |
@@ -246,7 +246,7 @@ Feature: Search
Given using <dav-path-version> DAV path
And user "Alice" has created a folder "foo/sharedToBrian" in space "Alice Hansen"
And user "Alice" has created a folder "sharedToCarol" in space "Alice Hansen"
And user "Alice" has sent the following share invitation:
And user "Alice" has sent the following resource share invitation:
| resource | foo |
| space | Personal |
| sharee | Brian |