diff --git a/.github/workflows/k8s.yml b/.github/workflows/k8s.yml index 1a7d06c4c95..fd7808d2fad 100644 --- a/.github/workflows/k8s.yml +++ b/.github/workflows/k8s.yml @@ -58,7 +58,7 @@ jobs: - suite: apiSharingNgPermissions - suite: apiSharingNgAdditionalShareRole - suite: apiSharingNgDriveInvitation - # - suite: apiSharingNgItemInvitation + - suite: apiSharingNgItemInvitation - suite: apiSharingNgDriveLinkShare - suite: apiSharingNgItemLinkShare - suite: apiSharingNgLinkShareManagement diff --git a/tests/acceptance/bootstrap/SharingNgContext.php b/tests/acceptance/bootstrap/SharingNgContext.php index a9383ff579e..0d7e9de4ecd 100644 --- a/tests/acceptance/bootstrap/SharingNgContext.php +++ b/tests/acceptance/bootstrap/SharingNgContext.php @@ -2376,6 +2376,27 @@ class SharingNgContext implements Context { $this->checkIfShareExists($share, $sharee, $sharer, $space, $shouldOrNot === "should"); } + /** + * @Then /^user "([^"]*)" should have a share "([^"]*)" with permissions role "([^"]*)" shared by user "([^"]*)" from space "([^"]*)"$/ + * + * @param string $sharee + * @param string $share + * @param string $role + * @param string $sharer + * @param string $space + * + * @return void + */ + public function userShouldHaveShareWithPermissionsRole( + string $sharee, + string $share, + string $role, + string $sharer, + string $space, + ): void { + $this->checkIfShareExists($share, $sharee, $sharer, $space, true, false, $role); + } + /** * @Then user :sharee should have the following resource shares: * diff --git a/tests/acceptance/features/apiSharingNgItemInvitation/itemShareInvitations.feature b/tests/acceptance/features/apiSharingNgItemInvitation/itemShareInvitations.feature index 97f97e3a5a9..31ab23b9e4c 100644 --- a/tests/acceptance/features/apiSharingNgItemInvitation/itemShareInvitations.feature +++ b/tests/acceptance/features/apiSharingNgItemInvitation/itemShareInvitations.feature @@ -117,8 +117,10 @@ Feature: Send a sharing invitations | shareType | group | | permissionsRole | | Then the HTTP status code should be "200" - And user "Brian" should have a share "" shared by user "Alice" from space "Personal" - And user "Carol" should have a share "" shared by user "Alice" from space "Personal" + And user "Brian" should have a share "" synced + And user "Carol" should have a share "" synced + And user "Brian" should have a share "" with permissions role "" shared by user "Alice" from space "Personal" + And user "Carol" should have a share "" with permissions role "" shared by user "Alice" from space "Personal" And the JSON data of the response should match """ { @@ -1661,6 +1663,8 @@ Feature: Send a sharing invitations | shareType | group | | permissionsRole | | Then the HTTP status code should be "200" + And user "Brian" should have a share "" synced + And user "Carol" should have a share "" synced And user "Brian" should have a share "" shared by user "Alice" from space "NewSpace" And user "Carol" should have a share "" shared by user "Alice" from space "NewSpace" And the JSON data of the response should match