Skip to content

Commit

Permalink
add test for emoji in comments
Browse files Browse the repository at this point in the history
  • Loading branch information
davitol authored and Ubuntu committed Apr 18, 2017
1 parent f712e3b commit 2629bf8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
Empty file added tests/integration/data/😃.txt
Empty file.
15 changes: 15 additions & 0 deletions tests/integration/features/comments.feature
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,21 @@ Feature: Comments
Then user "user0" should have the following comments on file "/myFileToComment.txt"
| user0 | My first comment |

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

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

0 comments on commit 2629bf8

Please sign in to comment.