test: change share role Denied to-and-fro role in Personal and Project space

This commit is contained in:
pradip
2024-12-31 12:44:46 +05:45
parent 42014d70c0
commit 5383e55612
2 changed files with 112 additions and 2 deletions
+5 -2
View File
@@ -2058,15 +2058,18 @@ class SpacesContext implements Context {
* @return void
* @throws GuzzleException
*/
public function userShouldNotBeAbleToDownloadFileInsideSpace(
public function userShouldOrShouldNotBeAbleToDownloadFileFromSpace(
string $user,
string $fileName,
string $spaceName
): void {
$spaceId = $this->getSpaceIdByName($user, $spaceName);
$response = $this->featureContext->downloadFileAsUserUsingPassword(
$user,
$fileName,
$this->featureContext->getPasswordForUser($user)
$this->featureContext->getPasswordForUser($user),
null,
$spaceId
);
Assert::assertGreaterThanOrEqual(
400,