Skip to content

Commit

Permalink
open link in authenticated context (#9572)
Browse files Browse the repository at this point in the history
  • Loading branch information
ScharfViktor authored Aug 11, 2023
1 parent ab1d801 commit 0dde64e
Showing 1 changed file with 15 additions and 16 deletions.
31 changes: 15 additions & 16 deletions tests/e2e/cucumber/features/smoke/spaces/publicLink.feature
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ Feature: spaces public link
| name | id |
| team | team.1 |
And "Alice" creates the following folder in space "team" using API
| name |
| spaceFolder |
| name |
| spaceFolder/subFolder |
And "Alice" adds the following members to the space "team" using API
| user | role | shareType |
| Brian | Can edit | space |
| Carol | Can view | space |
| David | Can manage | space |
| Brian | Can edit | space |
| Carol | Can view | space |
| David | Can manage | space |
And "Alice" navigates to the projects space page
And "Alice" navigates to the project space "team.1"
And "Alice" creates a public link for the space using the sidebar panel
Expand All @@ -30,20 +30,19 @@ Feature: spaces public link
And "Alice" renames the most recently created public link of resource "spaceFolder" to "folderLink"
And "Alice" logs out
When "Brian" logs in
And "Brian" navigates to the projects space page
And "Brian" navigates to the project space "team.1"
But "Brian" should not be able to edit the public link named "spaceLink"
And "Brian" opens the public link "spaceLink"
Then "Brian" should not be able to edit the public link named "spaceLink"
And "Brian" should not be able to edit the public link named "folderLink"
And "Brian" logs out
When "David" logs in
And "David" navigates to the projects space page
And "David" navigates to the project space "team.1"
And "David" edits the public link named "spaceLink" of the space changing role to "Can edit"
And "David" edits the public link named "folderLink" of resource "spaceFolder" changing role to "Can edit"
And "David" logs out
When "Carol" logs in
And "Carol" navigates to the projects space page
And "Carol" navigates to the project space "team.1"
And "Carol" opens the public link "spaceLink"
But "Carol" should not be able to edit the public link named "spaceLink"
And "Carol" should not be able to edit the public link named "folderLink"
When "Carol" opens the public link "folderLink"
Then "Carol" should see folder "subFolder" but should not be able to edit
And "Carol" logs out
When "David" logs in
And "David" opens the public link "spaceLink"
And "David" edits the public link named "spaceLink" of the space changing role to "Can edit"
And "David" edits the public link named "folderLink" of resource "spaceFolder" changing role to "Can edit"
And "David" logs out

0 comments on commit 0dde64e

Please sign in to comment.