Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

app-comments.feature 14KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325
  1. Feature: app-comments
  2. # Scenario: Writing a comment
  3. # Given I am logged in
  4. # And I open the details view for "welcome.txt"
  5. # And I open the "Comments" tab in the details view
  6. # When I create a new comment with "Hello world" as message
  7. # Then I see a comment with "Hello world" as message
  8. # Scenario: open the comments for a different file
  9. # Given I am logged in
  10. # And I create a new folder named "Folder"
  11. # And I open the details view for "welcome.txt"
  12. # And I open the "Comments" tab in the details view
  13. # And I create a new comment with "Hello world" as message
  14. # And I see a comment with "Hello world" as message
  15. # When I open the details view for "Folder"
  16. # The "Comments" tab should already be opened
  17. # Then I see that there are no comments
  18. Scenario: write a comment in a file right after writing a comment in another file
  19. Given I am logged in
  20. And I create a new folder named "Folder"
  21. And I open the details view for "Folder"
  22. And I open the "Comments" tab in the details view
  23. And I create a new comment with "Comment in Folder" as message
  24. And I see a comment with "Comment in Folder" as message
  25. And I open the details view for "welcome.txt"
  26. # The "Comments" tab should already be opened
  27. When I create a new comment with "Comment in welcome.txt" as message
  28. Then I see a comment with "Comment in welcome.txt" as message
  29. And I see that there is no comment with "Comment in Folder" as message
  30. Scenario: read a comment written by the sharer
  31. Given I act as John
  32. And I am logged in as the admin
  33. And I act as Jane
  34. And I am logged in
  35. And I act as John
  36. And I rename "welcome.txt" to "shared.txt"
  37. And I share "shared.txt" with "user0"
  38. And I see that the file is shared with "user0"
  39. # The details view should already be open
  40. And I open the "Comments" tab in the details view
  41. And I create a new comment with "Hello world" as message
  42. And I see a comment with "Hello world" as message
  43. When I act as Jane
  44. # The Files app is open again to reload the file list and the comments
  45. And I open the Files app
  46. And I open the details view for "shared.txt"
  47. And I open the "Comments" tab in the details view
  48. Then I see a comment with "Hello world" as message
  49. Scenario: read a comment written by the sharee
  50. Given I act as John
  51. And I am logged in as the admin
  52. And I act as Jane
  53. And I am logged in
  54. And I act as John
  55. And I rename "welcome.txt" to "shared.txt"
  56. And I share "shared.txt" with "user0"
  57. And I see that the file is shared with "user0"
  58. And I act as Jane
  59. # The Files app is open again to reload the file list
  60. And I open the Files app
  61. And I open the details view for "shared.txt"
  62. And I open the "Comments" tab in the details view
  63. And I create a new comment with "Hello world" as message
  64. And I see a comment with "Hello world" as message
  65. When I act as John
  66. # The Files app is open again to reload the file list and the comments
  67. And I open the Files app
  68. And I open the details view for "shared.txt"
  69. And I open the "Comments" tab in the details view
  70. Then I see a comment with "Hello world" as message
  71. Scenario: unread comment icon shown for comment written by the sharer in a shared file
  72. Given I act as John
  73. And I am logged in as the admin
  74. And I act as Jane
  75. And I am logged in
  76. And I act as John
  77. And I rename "welcome.txt" to "shared.txt"
  78. And I share "shared.txt" with "user0"
  79. And I see that the file is shared with "user0"
  80. # The details view should already be open
  81. And I open the "Comments" tab in the details view
  82. And I create a new comment with "Hello world" as message
  83. And I see a comment with "Hello world" as message
  84. When I act as Jane
  85. # The Files app is open again to reload the file list and the comments
  86. And I open the Files app
  87. Then I see that "shared.txt" has unread comments
  88. And I open the unread comments for "shared.txt"
  89. And I see that the details view is open
  90. And I see a comment with "Hello world" as message
  91. Scenario: unread comment icon shown for comment written by the sharee in a shared file
  92. Given I act as John
  93. And I am logged in as the admin
  94. And I act as Jane
  95. And I am logged in
  96. And I act as John
  97. And I rename "welcome.txt" to "shared.txt"
  98. And I share "shared.txt" with "user0"
  99. And I see that the file is shared with "user0"
  100. And I act as Jane
  101. # The Files app is open again to reload the file list
  102. And I open the Files app
  103. And I open the details view for "shared.txt"
  104. And I open the "Comments" tab in the details view
  105. And I create a new comment with "Hello world" as message
  106. And I see a comment with "Hello world" as message
  107. When I act as John
  108. # The Files app is open again to reload the file list and the comments
  109. And I open the Files app
  110. Then I see that "shared.txt" has unread comments
  111. And I open the unread comments for "shared.txt"
  112. And I see that the details view is open
  113. And I see a comment with "Hello world" as message
  114. Scenario: unread comment icon shown for comment written by the sharer in a shared folder
  115. Given I act as John
  116. And I am logged in as the admin
  117. And I act as Jane
  118. And I am logged in
  119. And I act as John
  120. And I create a new folder named "Folder"
  121. And I share "Folder" with "user0"
  122. And I see that the file is shared with "user0"
  123. # The details view should already be open
  124. And I open the "Comments" tab in the details view
  125. And I create a new comment with "Hello world" as message
  126. And I see a comment with "Hello world" as message
  127. When I act as Jane
  128. # The Files app is open again to reload the file list and the comments
  129. And I open the Files app
  130. Then I see that "Folder" has unread comments
  131. And I open the unread comments for "Folder"
  132. And I see that the details view is open
  133. And I see a comment with "Hello world" as message
  134. Scenario: unread comment icon shown for comment written by the sharee in a shared folder
  135. Given I act as John
  136. And I am logged in as the admin
  137. And I act as Jane
  138. And I am logged in
  139. And I act as John
  140. And I create a new folder named "Folder"
  141. And I share "Folder" with "user0"
  142. And I see that the file is shared with "user0"
  143. And I act as Jane
  144. # The Files app is open again to reload the file list
  145. And I open the Files app
  146. And I open the details view for "Folder"
  147. And I open the "Comments" tab in the details view
  148. And I create a new comment with "Hello world" as message
  149. And I see a comment with "Hello world" as message
  150. When I act as John
  151. # The Files app is open again to reload the file list and the comments
  152. And I open the Files app
  153. Then I see that "Folder" has unread comments
  154. And I open the unread comments for "Folder"
  155. And I see that the details view is open
  156. And I see a comment with "Hello world" as message
  157. Scenario: unread comment icon shown for comment written by the sharer in a child folder of a shared folder
  158. Given I act as John
  159. And I am logged in as the admin
  160. And I act as Jane
  161. And I am logged in
  162. And I act as John
  163. And I create a new folder named "Folder"
  164. And I share "Folder" with "user0"
  165. And I see that the file is shared with "user0"
  166. And I enter in the folder named "Folder"
  167. And I create a new folder named "Child folder"
  168. # The details view should already be open
  169. And I open the "Comments" tab in the details view
  170. And I create a new comment with "Hello world" as message
  171. And I see a comment with "Hello world" as message
  172. When I act as Jane
  173. # The Files app is open again to reload the file list and the comments
  174. And I open the Files app
  175. And I enter in the folder named "Folder"
  176. Then I see that "Child folder" has unread comments
  177. And I open the unread comments for "Child folder"
  178. And I see that the details view is open
  179. And I see a comment with "Hello world" as message
  180. Scenario: unread comment icon shown for comment written by the sharee in a child folder of a shared folder
  181. Given I act as John
  182. And I am logged in as the admin
  183. And I act as Jane
  184. And I am logged in
  185. And I act as John
  186. And I create a new folder named "Folder"
  187. And I share "Folder" with "user0"
  188. And I see that the file is shared with "user0"
  189. And I act as Jane
  190. # The Files app is open again to reload the file list
  191. And I open the Files app
  192. And I enter in the folder named "Folder"
  193. And I create a new folder named "Child folder"
  194. # The details view should already be open
  195. And I open the "Comments" tab in the details view
  196. And I create a new comment with "Hello world" as message
  197. And I see a comment with "Hello world" as message
  198. When I act as John
  199. And I enter in the folder named "Folder"
  200. Then I see that "Child folder" has unread comments
  201. And I open the unread comments for "Child folder"
  202. And I see that the details view is open
  203. And I see a comment with "Hello world" as message
  204. Scenario: search a comment
  205. Given I am logged in
  206. And I open the details view for "welcome.txt"
  207. And I open the "Comments" tab in the details view
  208. And I create a new comment with "Hello world" as message
  209. And I see a comment with "Hello world" as message
  210. When I search for "hello"
  211. # Search results for comments also include the user that wrote the comment.
  212. Then I see that the search result 1 is "user0Hello world"
  213. And I see that the search result 1 was found in "welcome.txt"
  214. Scenario: search a comment in a child folder
  215. Given I am logged in
  216. And I create a new folder named "Folder"
  217. And I enter in the folder named "Folder"
  218. And I create a new folder named "Child folder"
  219. And I open the details view for "Child folder"
  220. And I open the "Comments" tab in the details view
  221. And I create a new comment with "Hello world" as message
  222. And I see a comment with "Hello world" as message
  223. # The Files app is open again to reload the file list
  224. And I open the Files app
  225. When I search for "hello"
  226. # Search results for comments also include the user that wrote the comment.
  227. Then I see that the search result 1 is "user0Hello world"
  228. And I see that the search result 1 was found in "Folder/Child folder"
  229. Scenario: search a comment by a another user
  230. Given I act as John
  231. And I am logged in as the admin
  232. And I act as Jane
  233. And I am logged in
  234. And I act as John
  235. And I rename "welcome.txt" to "shared.txt"
  236. And I share "shared.txt" with "user0"
  237. And I see that the file is shared with "user0"
  238. And I act as Jane
  239. # The Files app is open again to reload the file list
  240. And I open the Files app
  241. And I open the details view for "shared.txt"
  242. And I open the "Comments" tab in the details view
  243. And I create a new comment with "Hello world" as message
  244. And I see a comment with "Hello world" as message
  245. When I act as John
  246. And I search for "hello"
  247. # Search results for comments also include the user that wrote the comment.
  248. Then I see that the search result 1 is "user0Hello world"
  249. And I see that the search result 1 was found in "shared.txt"
  250. Scenario: open a search result for a comment in a file
  251. Given I am logged in
  252. And I open the details view for "welcome.txt"
  253. And I open the "Comments" tab in the details view
  254. And I create a new comment with "Hello world" as message
  255. And I see a comment with "Hello world" as message
  256. # Force the details view to change to a different file before closing it
  257. And I create a new folder named "Folder"
  258. And I close the details view
  259. When I search for "hello"
  260. And I open the search result 1
  261. Then I see that the details view is open
  262. And I see that the file name shown in the details view is "welcome.txt"
  263. And I see a comment with "Hello world" as message
  264. And I see that the file list is currently in "Home"
  265. And I see that the file list contains a file named "welcome.txt"
  266. Scenario: open a search result for a comment in a folder named like its child folder
  267. Given I am logged in
  268. And I create a new folder named "Folder"
  269. And I open the details view for "Folder"
  270. And I open the "Comments" tab in the details view
  271. And I create a new comment with "Hello world" as message
  272. And I see a comment with "Hello world" as message
  273. And I enter in the folder named "Folder"
  274. And I create a new folder named "Folder"
  275. # The Files app is open again to reload the file list
  276. And I open the Files app
  277. When I search for "hello"
  278. And I open the search result 1
  279. Then I see that the details view is open
  280. And I see that the file name shown in the details view is "Folder"
  281. And I see a comment with "Hello world" as message
  282. And I see that the file list is currently in "Home"
  283. And I see that the file list contains a file named "welcome.txt"
  284. And I see that the file list contains a file named "Folder"
  285. Scenario: open a search result for a comment in a child folder
  286. Given I am logged in
  287. And I create a new folder named "Folder"
  288. And I enter in the folder named "Folder"
  289. And I create a new folder named "Child folder"
  290. And I open the details view for "Child folder"
  291. And I open the "Comments" tab in the details view
  292. And I create a new comment with "Hello world" as message
  293. And I see a comment with "Hello world" as message
  294. # The Files app is open again to reload the file list
  295. And I open the Files app
  296. When I search for "hello"
  297. And I open the search result 1
  298. Then I see that the details view is open
  299. And I see that the file name shown in the details view is "Child folder"
  300. And I see a comment with "Hello world" as message
  301. And I see that the file list is currently in "Home/Folder"
  302. And I see that the file list contains a file named "Child folder"