[tests-only] [full-ci] removing the setresponse in given/then step in spaces context (#7496)

* refactor given/when/then steps in spaces context

* pass the returned response without setting in then step

* added the missing when step whose response is checked by the then step

* addressed the reviews

* changed from decoded body to docoded response
This commit is contained in:
Karun Atreya
2023-10-17 11:41:47 +05:45
committed by GitHub
parent dc3ed28696
commit 83971fa19a
3 changed files with 455 additions and 212 deletions
@@ -140,7 +140,7 @@ Feature: Email notification
And user "Brian" has switched the system language to "es"
And user "Carol" has switched the system language to "de"
And user "Alice" has created a space "new-space" with the default quota using the GraphApi
When user "Alice" has shared a space "new-space" with settings:
When user "Alice" shares a space "new-space" with settings:
| shareWith | group1 |
| role | viewer |
Then the HTTP status code should be "200"