[tests-only] add file/folder creation and list sharedByMe of link shares (#9150)

* test: add more edge-case tests for file/folder creation

* test: add list sharedByMe tests for link shares

* test: fix tests

* test: list sharedByMe of drive link share

* test: add issue tag

* test: split scenario
This commit is contained in:
Sawjan Gurung
2024-05-17 14:19:53 +05:45
committed by GitHub
parent 87bdd0e4a8
commit 590a40d979
6 changed files with 1690 additions and 66 deletions
@@ -837,6 +837,26 @@ class SharingNgContext implements Context {
);
}
/**
* @When /^user "([^"]*)" has removed the last link share of (?:file|folder) "([^"]*)" from space "([^"]*)"$/
*
* @param string $sharer
* @param string $resource
* @param string $space
*
* @return void
* @throws JsonException
* @throws GuzzleException
*/
public function userHasRemovedTheLastLinkShareOfFileOrFolderFromSpace(
string $sharer,
string $resource,
string $space
): void {
$response = $this->removeAccessToSpaceItem($sharer, 'link', $space, $resource);
$this->featureContext->theHTTPStatusCodeShouldBe(204, "", $response);
}
/**
* @When /^user "([^"]*)" removes the link of (?:file|folder) "([^"]*)" from space "([^"]*)" using the Graph API$/
*