refacor given when and then steps in checksum and favorite context (#7268)

making helper function, checking and setting response in given step and when steo respectively

returning response and using in given/then steps as required in favoritesContext

set the returned response on SpaceContext

changed to inline variable in some lines as required

to check for the specific https response code
This commit is contained in:
Karun Atreya
2023-09-13 16:25:00 +05:45
committed by GitHub
parent 71daf3f6ba
commit fa36fd4ec2
3 changed files with 113 additions and 70 deletions
@@ -3038,7 +3038,7 @@ class SpacesContext implements Context {
*/
public function userFavoritesElementInSpaceUsingTheWebdavApi(string $user, string $path, string $spaceName): void {
$this->setSpaceIDByName($user, $spaceName);
$this->favoritesContext->userFavoritesElement($user, $path);
$this->featureContext->setResponse($this->favoritesContext->userFavoritesElement($user, $path));
}
/**