From 0dde64e363fb47431503a1f9e6d5f4771db6faa9 Mon Sep 17 00:00:00 2001 From: Viktor Scharf Date: Fri, 11 Aug 2023 22:28:03 +0200 Subject: [PATCH] open link in authenticated context (#9572) --- .../features/smoke/spaces/publicLink.feature | 31 +++++++++---------- 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/tests/e2e/cucumber/features/smoke/spaces/publicLink.feature b/tests/e2e/cucumber/features/smoke/spaces/publicLink.feature index df0ac68aec7..2db517391c5 100644 --- a/tests/e2e/cucumber/features/smoke/spaces/publicLink.feature +++ b/tests/e2e/cucumber/features/smoke/spaces/publicLink.feature @@ -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 @@ -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