Skip to content

Commit

Permalink
Refactor for folder share
Browse files Browse the repository at this point in the history
  • Loading branch information
amrita-shrestha committed Jan 6, 2023
1 parent ab59e39 commit 824daf5
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 11 deletions.
2 changes: 1 addition & 1 deletion tests/e2e/cucumber/features/smoke/share.oc10.feature
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ Feature: share
| resource | recipient |
| folder_to_shared/testavatar.jpeg | Brian |
And "Alice" logs out
When "Brian" opens the "files" app
#When "Brian" opens the "files" app
#Then "Brian" should not see the following resource
# | Shares/testavatar_new.jpeg |
#But "Brian" should see the following resource
Expand Down
30 changes: 20 additions & 10 deletions tests/e2e/cucumber/features/smoke/share.ocis.feature
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,27 @@ Feature: share
| Brian |

Scenario: folder
When "Alice" logs in
Given "Alice" creates the following folder in personal space using API
| name |
| folder_to_shared |
| folder_to_customShared |
And "Alice" logs in
And "Alice" opens the "files" app
And "Alice" creates the following resources
| resource | type |
| folder_to_shared | folder |
And "Alice" uploads the following resource
| resource | to |
| lorem.txt | folder_to_shared |
| resource | to |
| lorem.txt | folder_to_shared |
| lorem-big.txt | folder_to_customShared |
When "Alice" shares the following resource using the sidebar panel
| resource | recipient | type | role |
| folder_to_shared | Brian | user | editor |
| resource | recipient | type | role |
| folder_to_shared | Brian | user | editor |
| folder_to_customShared | Brian | user | editor |
And "Brian" logs in
And "Brian" opens the "files" app
And "Brian" navigates to the shared with me page
And "Brian" accepts the following share
| name |
| folder_to_shared |
| name |
| folder_to_shared |
| folder_to_customShared |
And "Brian" renames the following resource
| resource | as |
| folder_to_shared/lorem.txt | lorem_new.txt |
Expand All @@ -40,6 +44,12 @@ Feature: share
When "Brian" restores following resources
| resource | to | version |
| simple.pdf | folder_to_shared | 1 |
And "Alice" removes following sharee
| resource | recipient |
| folder_to_customShared | Brian |
And "Brian" should not be able to see the following shares
| resource | owner |
| folder_to_customShared | Alice Hansen |
When "Alice" deletes the following resources
| resource |
| folder_to_shared/lorem_new.txt |
Expand Down

0 comments on commit 824daf5

Please sign in to comment.