-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[e2e] separate upload step for internal link
- Loading branch information
Showing
5 changed files
with
79 additions
and
41 deletions.
There are no files selected for viewing
41 changes: 0 additions & 41 deletions
41
tests/e2e/cucumber/features/smoke/spaces/internalLink.feature
This file was deleted.
Oops, something went wrong.
39 changes: 39 additions & 0 deletions
39
tests/e2e/cucumber/features/smoke/spaces/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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
Feature: internal link share in project space | ||
|
||
Scenario: share a link with internal role | ||
Given "Admin" creates following users | ||
| id | | ||
| Alice | | ||
| Brian | | ||
And "Admin" assigns following roles to the users | ||
| id | role | | ||
| Alice | SpaceAdmin | | ||
And "Alice" creates the following project space using API | ||
| name | id | | ||
| Marketing | marketing.1 | | ||
And "Alice" creates the following folder in space "Marketing" using API | ||
| name | | ||
| myfolder | | ||
And "Alice" creates the following file in space "Marketing" using API | ||
| name | content | | ||
| myfolder/plan.txt | secret plan | | ||
And "Alice" logs in | ||
And "Alice" navigates to the projects space page | ||
And "Alice" navigates to the project space "marketing.1" | ||
And "Alice" adds following users to the project space | ||
| user | role | kind | | ||
| Brian | editor | user | | ||
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" uploads the following resource in internal link named "Link" | ||
| resource | | ||
| simple.pdf | | ||
When "Alice" changes the roles of the following users in the project space | ||
| user | role | | ||
| Brian | viewer | | ||
And "Alice" logs out | ||
And "Brian" reloads the spaces page | ||
Then "Brian" should see file "plan.txt" but should not be able to edit | ||
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