From 5e449f8a674abf39f6907432dcc6b7f15020e813 Mon Sep 17 00:00:00 2001 From: Sabin Panta <64484313+S-Panta@users.noreply.github.com> Date: Thu, 2 May 2024 14:52:18 +0545 Subject: [PATCH] changing given step of creating share in feature file (#9023) --- .../apiContract/spacesSharesReport.feature | 30 +++++++++++-------- 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/tests/acceptance/features/apiContract/spacesSharesReport.feature b/tests/acceptance/features/apiContract/spacesSharesReport.feature index dd245f1cce..e1cf311812 100644 --- a/tests/acceptance/features/apiContract/spacesSharesReport.feature +++ b/tests/acceptance/features/apiContract/spacesSharesReport.feature @@ -20,10 +20,12 @@ Feature: Report test Scenario: check the response of the found folder - Given user "Alice" has created a share inside of space "find data" with settings: - | path | folderMain | - | shareWith | Brian | - | role | viewer | + Given user "Alice" has sent the following share invitation: + | resource | folderMain | + | space | find data | + | sharee | Brian | + | shareType | user | + | permissionsRole | Viewer | When user "Brian" searches for "SubFolder1" using the WebDAV API Then the HTTP status code should be "207" And the following headers should match these regular expressions @@ -40,10 +42,12 @@ Feature: Report test Scenario: check the response of the found file - Given user "Alice" has created a share inside of space "find data" with settings: - | path | folderMain | - | shareWith | Brian | - | role | editor | + Given user "Alice" has sent the following share invitation: + | resource | folderMain | + | space | find data | + | sharee | Brian | + | shareType | user | + | permissionsRole | Editor | When user "Brian" searches for "insideTheFolder.txt" using the WebDAV API Then the HTTP status code should be "207" And the following headers should match these regular expressions @@ -61,10 +65,12 @@ Feature: Report test Scenario: search for the shared folder when the share is not accepted Given user "Brian" has disabled auto-accepting - And user "Alice" has created a share inside of space "find data" with settings: - | path | folderMain | - | shareWith | Brian | - | role | viewer | + And user "Alice" has sent the following share invitation: + | resource | folderMain | + | space | find data | + | sharee | Brian | + | shareType | user | + | permissionsRole | Viewer | When user "Brian" searches for "folderMain" using the WebDAV API Then the HTTP status code should be "207" And the following headers should match these regular expressions