summaryrefslogtreecommitdiffstats
path: root/build/integration/features/comments.feature
diff options
context:
space:
mode:
Diffstat (limited to 'build/integration/features/comments.feature')
-rw-r--r--build/integration/features/comments.feature18
1 files changed, 12 insertions, 6 deletions
diff --git a/build/integration/features/comments.feature b/build/integration/features/comments.feature
index 0ee11bc9873..0f3a4cc75cf 100644
--- a/build/integration/features/comments.feature
+++ b/build/integration/features/comments.feature
@@ -18,10 +18,11 @@ Feature: comments
Given user "user0" exists
Given user "12345" exists
Given User "user0" uploads file "data/textfile.txt" to "/myFileToComment.txt"
- Given As "user0" sending "POST" to "/apps/files_sharing/api/v1/shares" with
+ Given as "user0" creating a share with
| path | myFileToComment.txt |
| shareWith | 12345 |
| shareType | 0 |
+ Given user "12345" accepts last share
When "12345" posts a comment with content "A comment from another user" on the file named "/myFileToComment.txt" it should return "201"
Then As "12345" load all the comments of the file named "/myFileToComment.txt" it should return "207"
And the response should contain a property "oc:parentId" with value "0"
@@ -68,10 +69,11 @@ Feature: comments
Given user "user1" exists
Given As an "user0"
Given User "user0" uploads file "data/textfile.txt" to "/myFileToComment.txt"
- Given As "user0" sending "POST" to "/apps/files_sharing/api/v1/shares" with
+ Given as "user0" creating a share with
| path | myFileToComment.txt |
| shareWith | user1 |
| shareType | 0 |
+ And user "user1" accepts last share
Given "user1" posts a comment with content "My first comment" on the file named "/myFileToComment.txt" it should return "201"
When As "user1" load all the comments of the file named "/myFileToComment.txt" it should return "207"
Then the response should contain a property "oc:parentId" with value "0"
@@ -90,10 +92,11 @@ Feature: comments
Given user "user0" exists
Given user "user1" exists
Given User "user0" uploads file "data/textfile.txt" to "/myFileToComment.txt"
- Given As "user0" sending "POST" to "/apps/files_sharing/api/v1/shares" with
+ Given as "user0" creating a share with
| path | myFileToComment.txt |
| shareWith | user1 |
| shareType | 0 |
+ And user "user1" accepts last share
Given "user1" posts a comment with content "My first comment" on the file named "/myFileToComment.txt" it should return "201"
When As "user1" load all the comments of the file named "/myFileToComment.txt" it should return "207"
Then the response should contain a property "oc:parentId" with value "0"
@@ -135,10 +138,11 @@ Feature: comments
Given user "user0" exists
Given user "user1" exists
Given User "user0" uploads file "data/textfile.txt" to "/myFileToComment.txt"
- Given As "user0" sending "POST" to "/apps/files_sharing/api/v1/shares" with
+ Given as "user0" creating a share with
| path | myFileToComment.txt |
| shareWith | user1 |
| shareType | 0 |
+ And user "user1" accepts last share
Given "user1" posts a comment with content "My first comment" on the file named "/myFileToComment.txt" it should return "201"
When As "user0" load all the comments of the file named "/myFileToComment.txt" it should return "207"
Then the response should contain a property "oc:parentId" with value "0"
@@ -163,10 +167,11 @@ Feature: comments
Given user "user0" exists
Given user "user1" exists
Given User "user0" uploads file "data/textfile.txt" to "/myFileToComment.txt"
- Given As "user0" sending "POST" to "/apps/files_sharing/api/v1/shares" with
+ Given as "user0" creating a share with
| path | myFileToComment.txt |
| shareWith | user1 |
| shareType | 0 |
+ And user "user1" accepts last share
When "user1" posts a comment with content "My first comment" on the file named "/myFileToComment.txt" it should return "201"
Then As "user0" load all the comments of the file named "/myFileToComment.txt" it should return "207"
And the response should contain a property "oc:parentId" with value "0"
@@ -192,10 +197,11 @@ Feature: comments
Given user "user0" exists
Given user "user1" exists
Given User "user0" uploads file "data/textfile.txt" to "/myFileToComment.txt"
- Given As "user0" sending "POST" to "/apps/files_sharing/api/v1/shares" with
+ Given as "user0" creating a share with
| path | myFileToComment.txt |
| shareWith | user1 |
| shareType | 0 |
+ And user "user1" accepts last share
Given "user1" posts a comment with content "My first comment" on the file named "/myFileToComment.txt" it should return "201"
When As "user0" load all the comments of the file named "/myFileToComment.txt" it should return "207"
Then the response should contain a property "oc:parentId" with value "0"