test: wait and check for sync status before action

This commit is contained in:
Saw-jan
2024-06-28 09:51:07 +05:45
parent 37f619c11c
commit 80c72f59be
2 changed files with 9 additions and 0 deletions

View File

@@ -20,6 +20,7 @@ Feature: enable or disable sync of incoming shares
| sharee | Brian |
| shareType | user |
| permissionsRole | Viewer |
And user "Brian" has a share "<resource>" synced
When user "Brian" disables sync of share "<resource>" using the Graph API
Then the HTTP status code should be "204"
When user "Brian" lists the shares shared with him using the Graph API
@@ -141,6 +142,7 @@ Feature: enable or disable sync of incoming shares
| sharee | grp1 |
| shareType | group |
| permissionsRole | Viewer |
And user "Alice" has a share "<resource>" synced
When user "Alice" disables sync of share "<resource>" using the Graph API
Then the HTTP status code should be "204"
And user "Alice" should have sync disabled for share "<resource>"
@@ -196,6 +198,7 @@ Feature: enable or disable sync of incoming shares
| sharee | Brian |
| shareType | user |
| permissionsRole | Viewer |
And user "Brian" has a share "<resource>" synced
When user "Brian" disables sync of share "<resource>" using the Graph API
Then the HTTP status code should be "204"
When user "Brian" lists the shares shared with him using the Graph API
@@ -289,6 +292,7 @@ Feature: enable or disable sync of incoming shares
| sharee | grp1 |
| shareType | group |
| permissionsRole | Viewer |
And user "Alice" has a share "<resource>" synced
When user "Alice" disables sync of share "<resource>" using the Graph API
Then the HTTP status code should be "204"
And user "Alice" should have sync disabled for share "<resource>"
@@ -766,6 +770,7 @@ Feature: enable or disable sync of incoming shares
| sharee | Brian |
| shareType | user |
| permissionsRole | Viewer |
And user "Brian" has a share "<resource>" synced
When user "Brian" enables sync of share "<resource>" offered by "Alice" from "Personal" space using the Graph API
Then the HTTP status code should be "409"
And the JSON data of the response should match
@@ -867,6 +872,7 @@ Feature: enable or disable sync of incoming shares
| sharee | Brian |
| shareType | user |
| permissionsRole | Viewer |
And user "Brian" has a share "<resource>" synced
When user "Brian" enables sync of share "<resource>" offered by "Alice" from "NewSpace" space using the Graph API
Then the HTTP status code should be "409"
And the JSON data of the response should match

View File

@@ -192,6 +192,7 @@ Feature: copying file using file id
| sharee | Brian |
| shareType | user |
| permissionsRole | Editor |
And user "Brian" has a share "folder" synced
When user "Brian" copies a file "Shares/folder/sub-folder/test.txt" into "Shares/folder" inside space "Shares" using file-id path "<dav-path>"
Then the HTTP status code should be "201"
And for user "Brian" folder "folder" of the space "Shares" should contain these files:
@@ -219,6 +220,7 @@ Feature: copying file using file id
| permissionsRole | Editor |
And user "Brian" has uploaded file with content "some data" to "/test.txt"
And we save it into "FILEID"
And user "Brian" has a share "folder" synced
When user "Brian" copies a file "/test.txt" into "Shares/folder" inside space "Shares" using file-id path "<dav-path>"
Then the HTTP status code should be "201"
And for user "Brian" folder "folder" of the space "Shares" should contain these files:
@@ -244,6 +246,7 @@ Feature: copying file using file id
| sharee | Brian |
| shareType | user |
| permissionsRole | Editor |
And user "Brian" has a share "folder" synced
When user "Brian" copies a file "/test.txt" into "/" inside space "Personal" using file-id path "<dav-path>"
Then the HTTP status code should be "201"
And for user "Brian" folder "folder" of the space "Shares" should contain these files: