add Given form for steps

This commit is contained in:
ScharfViktor
2021-12-02 00:01:52 +01:00
parent 7a8c513cf7
commit 216a62cf2e
6 changed files with 194 additions and 78 deletions
@@ -8,12 +8,11 @@ Feature: Change data of space
Background:
Given user "Alice" has been created with default attributes and without skeleton files
And the administrator gives "Alice" the role "Admin" using the settings api
And the administrator has given "Alice" the role "Admin" using the settings api
Scenario: Alice changes a name of the space via the Graph api, she expects a 204 code and checks that the space name has changed
When user "Alice" creates a space "Project Jupiter" of type "project" with quota "20" using the GraphApi
And user "Alice" lists all available spaces via the GraphApi
And user "Alice" changes the name of the "Project Jupiter" space to "Project Death Star"
Given user "Alice" has created a space "Project Jupiter" of type "project" with quota "20"
When user "Alice" changes the name of the "Project Jupiter" space to "Project Death Star"
Then the HTTP status code should be "204"
When user "Alice" lists all available spaces via the GraphApi
Then the json responded should contain a space "Project Death Star" with these key and value pairs:
@@ -24,9 +23,8 @@ Feature: Change data of space
| root@@@webDavUrl | %base_url%/dav/spaces/%space_id% |
Scenario: Alice increases quota of the space via the Graph api, she expects a 204 code and checks that the quota has changed
When user "Alice" creates a space "Project Earth" of type "project" with quota "20" using the GraphApi
And user "Alice" lists all available spaces via the GraphApi
And user "Alice" changes the quota of the "Project Earth" space to "100"
Given user "Alice" has created a space "Project Earth" of type "project" with quota "20"
When user "Alice" changes the quota of the "Project Earth" space to "100"
Then the HTTP status code should be "204"
When user "Alice" lists all available spaces via the GraphApi
Then the json responded should contain a space "Project Earth" with these key and value pairs: