diff --git a/tests/acceptance/features/api/directUpload.feature b/tests/acceptance/features/api/directUpload.feature index 6435bed6b..722f762b0 100644 --- a/tests/acceptance/features/api/directUpload.feature +++ b/tests/acceptance/features/api/directUpload.feature @@ -725,8 +725,8 @@ Feature: API endpoint for direct upload Scenario: Upload a file into a folder, exceeding the users quota - Given the quota of user "Carol" has been set to "9 B" - And user "Carol" has created folder "/forOP" + Given user "Carol" has created folder "/forOP" + And the quota of user "Carol" has been set to "9 B" And user "Carol" got a direct-upload token for "/forOP" When an anonymous user sends a multipart form data POST request to the "direct-upload/%last-created-direct-upload-token%" endpoint with: | file_name | file.txt | @@ -748,9 +748,9 @@ Feature: API endpoint for direct upload Scenario: Upload a file into a shared folder exceeding the quota of the user sharing the folder Given user "Brian" has been created + And user "Brian" has created folder "/toShare" And the quota of user "Carol" has been set to "10 B" And the quota of user "Brian" has been set to "9 B" - And user "Brian" has created folder "/toShare" And user "Brian" has shared folder "/toShare" with user "Carol" with "all" permissions And user "Carol" got a direct-upload token for "/toShare" When an anonymous user sends a multipart form data POST request to the "direct-upload/%last-created-direct-upload-token%" endpoint with: @@ -773,9 +773,9 @@ Feature: API endpoint for direct upload Scenario: Upload a file into a shared folder exceeding the quota of sharee but not that of sharer Given user "Brian" has been created + And user "Brian" has created folder "/toShare" And the quota of user "Carol" has been set to "10 B" And the quota of user "Brian" has been set to "20 B" - And user "Brian" has created folder "/toShare" And user "Brian" has shared folder "/toShare" with user "Carol" with "all" permissions And user "Carol" got a direct-upload token for "/toShare" When an anonymous user sends a multipart form data POST request to the "direct-upload/%last-created-direct-upload-token%" endpoint with: