[tests-only] [full-ci] Use sharing ng in api spaces (#9082)

* update given step using sharingNg in changeSpaces.feature

* update given step using sharingNg in disableAndDeleteSpaces.feature

* update given step using sharingNg in editPublicLinkOfSpace.feature

* update given step using sharingNg in filePreviews.feature

* update given step using sharingNg in listSpaces.feature

* update given step using sharingNg in publicLink.feature

* update given step using sharingNg in removeSpaceObjects.feature
This commit is contained in:
Salipa Gurung
2024-05-09 14:07:56 +05:45
committed by GitHub
parent 2c115e2418
commit 971f34ac0a
11 changed files with 101 additions and 59 deletions
@@ -3449,7 +3449,7 @@ class SpacesContext implements Context {
if ($should) {
Assert::assertNotEmpty($responseArray, __METHOD__ . ' Response should contain a link, but it is empty');
foreach ($responseArray as $element) {
$expectedLinkId = (string) $this->featureContext->getLastCreatedPublicShare()->id;
$expectedLinkId = ($this->featureContext->isUsingSharingNG()) ? $this->featureContext->shareNgGetLastCreatedLinkShareID() : (string) $this->featureContext->getLastCreatedPublicShare()->id;
Assert::assertEquals($element["id"], $expectedLinkId, "link IDs are different");
}
} else {