From a01475c41f703d6c0d9fd08781e702cbcfd32652 Mon Sep 17 00:00:00 2001 From: nirajacharya2 <122071597+nirajacharya2@users.noreply.github.com> Date: Wed, 31 Jan 2024 14:05:35 +0545 Subject: [PATCH] using graph api to share in share with me test (#8323) --- .../features/apiSharingNg/sharedWithMe.feature | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/tests/acceptance/features/apiSharingNg/sharedWithMe.feature b/tests/acceptance/features/apiSharingNg/sharedWithMe.feature index a938483bb..2969d80c3 100644 --- a/tests/acceptance/features/apiSharingNg/sharedWithMe.feature +++ b/tests/acceptance/features/apiSharingNg/sharedWithMe.feature @@ -14,7 +14,12 @@ Feature: an user gets the resources shared to them Scenario: user lists the file shared with them Given user "Alice" has uploaded file with content "hello world" to "/textfile0.txt" - And user "Alice" has shared file "textfile0.txt" with user "Brian" + And user "Alice" has sent the following share invitation: + | resource | textfile0.txt | + | space | Personal | + | sharee | Brian | + | shareType | user | + | permissionsRole | Viewer | When user "Brian" lists the resources shared with him using the Graph API Then the HTTP status code should be "200" And the JSON data of the response should match @@ -252,7 +257,12 @@ Feature: an user gets the resources shared to them Scenario: user lists the folder shared with them Given user "Alice" has created folder "folder" - And user "Alice" has shared folder "folder" with user "Brian" + And user "Alice" has sent the following share invitation: + | resource | folder | + | space | Personal | + | sharee | Brian | + | shareType | user | + | permissionsRole | Viewer | When user "Brian" lists the resources shared with him using the Graph API Then the HTTP status code should be "200" And the JSON data of the response should match