From 91d6ee2578db65856a7e0ca28e3e16094ec82e53 Mon Sep 17 00:00:00 2001 From: Swikriti Tripathi <41103328+SwikritiT@users.noreply.github.com> Date: Fri, 10 Feb 2023 16:28:36 +0545 Subject: [PATCH] Add api test to delete the expiration date from a share subitem of space (#5537) --- .../apiSpacesShares/shareSubItemOfSpace.feature | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tests/acceptance/features/apiSpacesShares/shareSubItemOfSpace.feature b/tests/acceptance/features/apiSpacesShares/shareSubItemOfSpace.feature index 8d8a6a012..e1b25aa65 100644 --- a/tests/acceptance/features/apiSpacesShares/shareSubItemOfSpace.feature +++ b/tests/acceptance/features/apiSpacesShares/shareSubItemOfSpace.feature @@ -126,3 +126,17 @@ Feature: Share a file or folder that is inside a space Then the HTTP status code should be "200" And the information about the last share for user "Brian" should include | expiration | 2044-01-01 | + + + Scenario: A user deletes the expiration date + Given user "Alice" has created a share inside of space "share sub-item" with settings: + | path | folder | + | shareWith | Brian | + | role | viewer | + | expireDate | 2042-01-01T23:59:59+0100 | + And user "Brian" has accepted share "/folder" offered by user "Alice" + When user "Alice" changes the last share with settings: + | expireDate | | + Then the HTTP status code should be "200" + And the information about the last share for user "Brian" should include + | expiration | |