[tests-only][full-ci] removing the setresponse in given/then step in SettingContext and TUSContext (#7298)

* refactor given when then steps in settings and tus contexts

* set resource location from response

* addressed the reviews

* reset  spaceidfromocis

* reset after scenario using after hook
This commit is contained in:
Karun Atreya
2023-09-25 13:32:42 +05:45
committed by GitHub
parent bea303fd87
commit 49d9d3bd24
4 changed files with 104 additions and 66 deletions
@@ -126,7 +126,8 @@ class SpacesTUSContext implements Context {
TableNode $headers
): void {
$this->spacesContext->setSpaceIDByName($user, $spaceName);
$this->tusContext->createNewTUSResourceWithHeaders($user, $headers, $content);
$response = $this->tusContext->createNewTUSResourceWithHeaders($user, $headers, $content);
$this->featureContext->setResponse($response);
}
/**