[tests-only][full-ci] updating given step for sharing and env in docs for starting email service (#9081)

* updating given step for sharing and env in docs for starting email service

* addressing review

* fixing the given steps of sharing
This commit is contained in:
Sabin Panta
2024-05-09 12:25:57 +05:45
committed by GitHub
parent 8ddd82fcd5
commit fff20ac8db
8 changed files with 85 additions and 34 deletions
@@ -765,6 +765,30 @@ class SharingNgContext implements Context {
);
}
/**
* @Given /^user "([^"]*)" has removed the access of (user|group) "([^"]*)" from (?:file|folder|resource) "([^"]*)" of space "([^"]*)"$/
*
* @param string $sharer
* @param string $recipientType (user|group)
* @param string $recipient can be both user or group
* @param string $resource
* @param string $space
*
* @return void
* @throws JsonException
* @throws GuzzleException
*/
public function userHasRemovedAccessOfUserOrGroupFromResourceOfSpace(
string $sharer,
string $recipientType,
string $recipient,
string $resource,
string $space
): void {
$response = $this->removeAccessToSpaceItem($sharer, $recipientType, $space, $resource);
$this->featureContext->theHTTPStatusCodeShouldBe(204, "", $response);
}
/**
* @When /^user "([^"]*)" removes the access of (user|group) "([^"]*)" from (?:file|folder|resource) "([^"]*)" of space "([^"]*)" using the Graph API$/
*