Skip to content

Commit

Permalink
Adapted test to new comments steps
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioBertolinSG committed May 5, 2017
1 parent eb7071f commit 673b18b
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions tests/integration/features/comments.feature
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,11 @@ Feature: Comments

Scenario: Creating a comment with an emoji on a file belonging to myself
Given user "user0" exists
Given As an "user0"
Given User "user0" uploads file "data/textfile.txt" to "/myFileToComment.txt"
When "user0" posts a comment with content "😜" 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"
And the response should contain a property "oc:childrenCount" with value "0"
And the response should contain a property "oc:verb" with value "comment"
And the response should contain a property "oc:actorType" with value "users"
And the response should contain a property "oc:objectType" with value "files"
And the response should contain a property "oc:message" with value "😜"
And the response should contain a property "oc:actorDisplayName" with value "user0"
And the response should contain only "1" comments
And As an "user0"
And User "user0" uploads file "data/textfile.txt" to "/myFileToComment.txt"
When user "user0" comments with content "😜" on file "/myFileToComment.txt"
Then user "user0" should have the following comments on file "/myFileToComment.txt"
| user0 | 😜 |

Scenario: Creating a comment on a shared file belonging to another user
Given user "user0" exists
Expand Down

0 comments on commit 673b18b

Please sign in to comment.