Refactored feature files to make consistent inter-scenarios space

This commit is contained in:
Prarup Gurung
2022-11-01 15:13:14 +05:45
parent a39f754afd
commit 35672b0014
11 changed files with 17 additions and 2 deletions
@@ -300,7 +300,6 @@ Feature: copy file
| viewer | should not | 403 |
Scenario Outline: User copies a folder from a space project with different role to a space project with different role
Given the administrator has given "Brian" the role "Space Admin" using the settings api
And user "Brian" has created a space "Project1" with the default quota using the GraphApi
@@ -13,6 +13,7 @@ Feature: create file or folder named similar to Shares folder
And user "Alice" has shared folder "/FOLDER" with user "Brian" with permissions "read,update"
And user "Brian" has accepted share "/FOLDER" offered by user "Alice"
Scenario Outline: create a folder with a name similar to Shares
Given using spaces DAV path
When user "Brian" creates folder "<folder_name>" using the WebDAV API
@@ -25,6 +26,7 @@ Feature: create file or folder named similar to Shares folder
| shares |
| Share1 |
Scenario Outline: create a file with a name similar to Shares
Given using spaces DAV path
When user "Brian" uploads file with content "some text" to "<file_name>" using the WebDAV API
@@ -40,6 +42,7 @@ Feature: create file or folder named similar to Shares folder
| shares |
| Share1 |
Scenario: try to create a folder named Shares
Given using spaces DAV path
When user "Brian" creates folder "/Shares" using the WebDAV API
@@ -47,6 +50,7 @@ Feature: create file or folder named similar to Shares folder
And for user "Brian" the space "Shares" should contain these entries:
| FOLDER/ |
Scenario: try to create a file named Shares
Given using spaces DAV path
When user "Brian" uploads file with content "some text" to "/Shares" using the WebDAV API
@@ -9,6 +9,7 @@ Feature: check etag propagation after different file alterations
And using spaces DAV path
And user "Alice" has created folder "/upload"
Scenario: copying a file inside a folder as a share receiver changes its etag for all collaborators
Given user "Alice" has uploaded file with content "uploaded content" to "/upload/file.txt"
And user "Alice" has shared folder "/upload" with user "Brian"
@@ -36,6 +37,7 @@ Feature: check etag propagation after different file alterations
| Alice | /upload/file.txt | Personal |
| Brian | /upload/file.txt | Shares |
Scenario: copying a file inside a folder as a sharer changes its etag for all collaborators
Given user "Alice" has uploaded file with content "uploaded content" to "/upload/file.txt"
And user "Alice" has shared folder "/upload" with user "Brian"
@@ -11,6 +11,7 @@ Feature: move (rename) file
| Brian |
And using spaces DAV path
Scenario Outline: Moving a file within same space project with role manager and editor
Given the administrator has given "Brian" the role "Space Admin" using the settings api
And user "Brian" has created a space "Project" with the default quota using the GraphApi
@@ -301,7 +302,8 @@ Feature: move (rename) file
And for user "Brian" the space "Personal" should not contain these entries:
| /testshare/testsubfolder |
Scenario: Overwriting a file while moving
Scenario: Overwriting a file while moving
Given user "Brian" has created folder "/folder"
And user "Brian" has uploaded file with content "old content version 1" to "/folder/testfile.txt"
And user "Brian" has uploaded file with content "old content version 2" to "/folder/testfile.txt"