-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor share via api for link share
address reviews
- Loading branch information
Showing
5 changed files
with
27 additions
and
27 deletions.
There are no files selected for viewing
37 changes: 17 additions & 20 deletions
37
tests/e2e/cucumber/features/smoke/internalLink.ocis.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,34 @@ | ||
Feature: internal link share | ||
|
||
Scenario: link share as an internal role | ||
Scenario: share a link with internal role | ||
Given "Admin" creates following users | ||
| id | | ||
| Alice | | ||
| Brian | | ||
And "Alice" creates the following folder in personal space using API | ||
| name | | ||
| folderPublic | | ||
| name | | ||
| myfolder | | ||
And "Alice" shares the following resource using API | ||
| resource | recipient | type | role | | ||
| myfolder | Brian | user | editor | | ||
And "Alice" logs in | ||
And "Alice" opens the "files" app | ||
And "Alice" uploads the following resources | ||
| resource | to | | ||
| lorem.txt | folderPublic | | ||
And "Alice" shares the following resource using the sidebar panel | ||
| resource | recipient | type | role | | ||
| folderPublic | Brian | user | editor | | ||
And "Alice" creates a public link for the resource "folderPublic" using the sidebar panel | ||
When "Alice" edits the public link named "Link" of resource "folderPublic" changing role to "internal" | ||
And "Alice" creates a public link for the resource "myfolder" using the sidebar panel | ||
When "Alice" edits the public link named "Link" of resource "myfolder" changing role to "internal" | ||
And "Brian" opens the public link "Link" | ||
And "Brian" logs in from the internal link | ||
And "Brian" opens shared-with-me page from the internal link | ||
And "Brian" accepts the following share | ||
| name | | ||
| folderPublic | | ||
| name | | ||
| myfolder | | ||
And "Brian" uploads the following resource | ||
| resource | to | | ||
| simple.pdf | folderPublic | | ||
| resource | to | | ||
| simple.pdf | myfolder | | ||
And "Alice" updates following sharee role | ||
| resource | recipient | type | role | | ||
| folderPublic | Brian | user | custom_permissions:read | | ||
| resource | recipient | type | role | | ||
| myfolder | Brian | user | custom_permissions:read | | ||
And "Alice" logs out | ||
# Then "Brian" should not able to edit the following resources | ||
# | resource | | ||
# | folderPublic | | ||
Then "Brian" should not be able to reshare the following resource | ||
| resource | | ||
| myfolder | | ||
And "Brian" logs out |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters