[full-ci] [tests-only] Used sharing-ng in given steps (#9120)

* publicLinkDownload.feature: Used sharingNG for sharing in given step

* shareOperations.feature: Used sharingNG for sharing in given step
This commit is contained in:
Prarup Gurung
2024-05-09 17:17:14 +05:45
committed by GitHub
parent 5b240e6df4
commit b4b51437a0
4 changed files with 205 additions and 169 deletions
@@ -3878,7 +3878,7 @@ class SpacesContext implements Context {
* @throws GuzzleException|JsonException
*/
public function publicDownloadsTheFolderFromTheLastCreatedPublicLink(string $resource) {
$token = $this->featureContext->getLastCreatedPublicShareToken();
$token = ($this->featureContext->isUsingSharingNG()) ? $this->featureContext->shareNgGetLastCreatedLinkShareToken() : $this->featureContext->getLastCreatedPublicShareToken();
$response = $this->featureContext->listFolderAndReturnResponseXml(
$token,
$resource,