refactor given/when/then steps in spaces context (#7506)
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:
@@ -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"
|
||||
|
||||
@@ -339,6 +339,7 @@ Feature: Change data of space
|
||||
When user "<user>" uploads a file inside space "Project Jupiter" owned by the user "Alice" with content "new content" to ".space/readme.md" using the WebDAV API
|
||||
Then the HTTP status code should be "<code>"
|
||||
And for user "<user>" the content of the file ".space/readme.md" of the space "Project Jupiter" should be "<expectedContent>"
|
||||
When user "<user>" lists all available spaces via the GraphApi
|
||||
And the JSON response should contain space called "Project Jupiter" owned by "Alice" with description file ".space/readme.md" and match
|
||||
"""
|
||||
{
|
||||
@@ -422,7 +423,7 @@ Feature: Change data of space
|
||||
Given user "Alice" has created a folder ".space" in space "Project Jupiter"
|
||||
And user "Alice" has uploaded a file inside space "Project Jupiter" with content "" to ".space/spaceImage.jpeg"
|
||||
And user "Alice" has set the file ".space/spaceImage.jpeg" as a space image in a special section of the "Project Jupiter" space
|
||||
When user "<user>" has uploaded a file inside space "Project Jupiter" with content "" to ".space/newSpaceImage.png"
|
||||
When user "<user>" uploads a file inside space "Project Jupiter" with content "" to ".space/newSpaceImage.png" using the WebDAV API
|
||||
And user "<user>" sets the file ".space/newSpaceImage.png" as a space image in a special section of the "Project Jupiter" space
|
||||
Then the HTTP status code should be "200"
|
||||
And the JSON response should contain space called "Project Jupiter" owned by "Alice" with description file ".space/newSpaceImage.png" and match
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user