You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

app-files.feature 15KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303
  1. @apache
  2. Feature: app-files
  3. Scenario: open and close the details view
  4. Given I am logged in
  5. When I open the details view for "welcome.txt"
  6. And I see that the details view is open
  7. And I close the details view
  8. Then I see that the details view is closed
  9. Scenario: open and close the details view twice
  10. Given I am logged in
  11. And I open the details view for "welcome.txt"
  12. And I see that the details view is open
  13. And I close the details view
  14. And I see that the details view is closed
  15. When I open the details view for "welcome.txt"
  16. And I see that the details view is open
  17. And I close the details view
  18. Then I see that the details view is closed
  19. Scenario: open and close the details view again after coming back from a different section
  20. Given I am logged in
  21. And I open the details view for "welcome.txt"
  22. And I see that the details view is open
  23. And I close the details view
  24. And I see that the details view is closed
  25. And I open the "Recent" section
  26. And I see that the current section is "Recent"
  27. # The acceptance tests using the recent view fail since the vue migration.
  28. # The step is looking for a row in the filelist with a span having the class nametext, matching the
  29. # file name "welcome.txt" and button inside having the class action-menu. The markup for the files list
  30. # looks very different after the vue migration and therefor the test is failing.
  31. #And I open the details view for "welcome.txt"
  32. #And I see that the details view is open
  33. #And I close the details view
  34. #And I see that the details view is closed
  35. When I open the "All files" section
  36. And I see that the current section is "All files"
  37. And I open the details view for "welcome.txt"
  38. And I see that the details view is open
  39. And I close the details view
  40. Then I see that the details view is closed
  41. # Scenario: viewing a favorite file in its folder shows the correct sidebar view
  42. # Given I am logged in
  43. # And I create a new folder named "other"
  44. # And I mark "other" as favorite
  45. # And I mark "welcome.txt" as favorite
  46. # And I see that "other" is marked as favorite
  47. # And I see that "welcome.txt" is marked as favorite
  48. # And I open the "Favorites" section
  49. # And I open the details view for "other"
  50. # And I see that the details view is open
  51. # And I see that the file name shown in the details view is "other"
  52. # When I view "welcome.txt" in folder
  53. # Then I see that the current section is "All files"
  54. # And I see that the details view is open
  55. # And I see that the file name shown in the details view is "welcome.txt"
  56. # When I open the details view for "other"
  57. # And I see that the file name shown in the details view is "other"
  58. # Scenario: viewing a favorite file in its folder does not prevent opening the details view in "All files" section
  59. # Given I am logged in
  60. # And I mark "welcome.txt" as favorite
  61. # And I see that "welcome.txt" is marked as favorite
  62. # And I open the "Favorites" section
  63. # And I open the details view for "welcome.txt"
  64. # And I see that the details view is open
  65. # And I view "welcome.txt" in folder
  66. # And I see that the current section is "All files"
  67. # When I open the details view for "welcome.txt"
  68. # Then I see that the details view is open
  69. # Scenario: show recent files
  70. # Given I am logged in
  71. # And I create a new folder named "Folder just created"
  72. # When I open the "Recent" section
  73. # Then I see that the current section is "Recent"
  74. # Then I see that the file list contains a file named "Folder just created"
  75. # Scenario: show recent files for a second time
  76. # Given I am logged in
  77. # And I open the "Recent" section
  78. # And I see that the current section is "Recent"
  79. # And I open the "All files" section
  80. # And I see that the current section is "All files"
  81. # And I create a new folder named "Folder just created"
  82. # When I open the "Recent" section
  83. # Then I see that the current section is "Recent"
  84. # Then I see that the file list contains a file named "Folder just created"
  85. # Scenario: show favorites
  86. # Given I am logged in
  87. # And I mark "welcome.txt" as favorite
  88. # When I open the "Favorites" section
  89. # Then I see that the current section is "Favorites"
  90. # Then I see that the file list contains a file named "welcome.txt"
  91. # Scenario: show favorites for a second time
  92. # Given I am logged in
  93. # And I open the "Favorites" section
  94. # And I see that the current section is "Favorites"
  95. # And I open the "All files" section
  96. # And I see that the current section is "All files"
  97. # And I mark "welcome.txt" as favorite
  98. # When I open the "Favorites" section
  99. # Then I see that the current section is "Favorites"
  100. # Then I see that the file list contains a file named "welcome.txt"
  101. # TODO: disabled unreliable test
  102. # Scenario: show shares
  103. # Given I am logged in
  104. # And I share the link for "welcome.txt"
  105. # When I open the "Shares" section
  106. # Then I see that the current section is "Shares"
  107. # Then I see that the file list contains a file named "welcome.txt"
  108. # Scenario: show shares for a second time
  109. # Given I am logged in
  110. # And I open the "Shares" section
  111. # And I see that the current section is "Shares"
  112. # And I open the "All files" section
  113. # And I see that the current section is "All files"
  114. # And I share the link for "welcome.txt"
  115. # When I open the "Shares" section
  116. # Then I see that the current section is "Shares"
  117. # Then I see that the file list contains a file named "welcome.txt"
  118. # Scenario: show deleted files
  119. # Given I am logged in
  120. # And I delete "welcome.txt"
  121. # When I open the "Deleted files" section
  122. # Then I see that the current section is "Deleted files"
  123. # Then I see that the file list contains a file named "welcome.txt"
  124. # Scenario: show deleted files for a second time
  125. # Given I am logged in
  126. # And I open the "Deleted files" section
  127. # And I see that the current section is "Deleted files"
  128. # And I open the "All files" section
  129. # And I see that the current section is "All files"
  130. # And I delete "welcome.txt"
  131. # When I open the "Deleted files" section
  132. # Then I see that the current section is "Deleted files"
  133. # Then I see that the file list contains a file named "welcome.txt"
  134. # Scenario: move a file to another folder
  135. # Given I am logged in
  136. # And I create a new folder named "Destination"
  137. # When I start the move or copy operation for "welcome.txt"
  138. # And I select "Destination" in the file picker
  139. # And I move to the last selected folder in the file picker
  140. # Then I see that the file list does not contain a file named "welcome.txt"
  141. # And I enter in the folder named "Destination"
  142. # And I see that the file list contains a file named "welcome.txt"
  143. # Scenario: move a selection to another folder
  144. # Given I am logged in
  145. # And I create a new folder named "Folder"
  146. # And I create a new folder named "Not selected folder"
  147. # And I create a new folder named "Destination"
  148. # When I select "welcome.txt"
  149. # And I select "Folder"
  150. # And I start the move or copy operation for the selected files
  151. # And I select "Destination" in the file picker
  152. # And I move to the last selected folder in the file picker
  153. # Then I see that the file list does not contain a file named "welcome.txt"
  154. # And I see that the file list does not contain a file named "Folder"
  155. # And I see that the file list contains a file named "Not selected folder"
  156. # And I enter in the folder named "Destination"
  157. # And I see that the file list contains a file named "welcome.txt"
  158. # And I see that the file list contains a file named "Folder"
  159. # And I see that the file list does not contain a file named "Not selected folder"
  160. # Scenario: copy a file to another folder
  161. # Given I am logged in
  162. # And I create a new folder named "Destination"
  163. # When I start the move or copy operation for "welcome.txt"
  164. # And I select "Destination" in the file picker
  165. # And I copy to the last selected folder in the file picker
  166. # Then I enter in the folder named "Destination"
  167. # # The file will appear in the destination once the copy operation finishes
  168. # And I see that the file list contains a file named "welcome.txt"
  169. # # The Files app is open again to reload the file list in the root folder
  170. # And I open the Files app
  171. # And I see that the file list contains a file named "welcome.txt"
  172. # Scenario: copy a selection to another folder
  173. # Given I am logged in
  174. # And I create a new folder named "Folder"
  175. # And I create a new folder named "Not selected folder"
  176. # And I create a new folder named "Destination"
  177. # When I select "welcome.txt"
  178. # And I select "Folder"
  179. # And I start the move or copy operation for the selected files
  180. # And I select "Destination" in the file picker
  181. # And I copy to the last selected folder in the file picker
  182. # Then I enter in the folder named "Destination"
  183. # # The files will appear in the destination once the copy operation finishes
  184. # And I see that the file list contains a file named "welcome.txt"
  185. # And I see that the file list contains a file named "Folder"
  186. # And I see that the file list does not contain a file named "Not selected folder"
  187. # # The Files app is open again to reload the file list in the root folder
  188. # And I open the Files app
  189. # And I see that the file list contains a file named "welcome.txt"
  190. # And I see that the file list contains a file named "Folder"
  191. # And I see that the file list contains a file named "Not selected folder"
  192. Scenario: copy a file in its same folder
  193. Given I am logged in
  194. When I start the move or copy operation for "welcome.txt"
  195. # No folder was explicitly selected, so the last selected folder is the
  196. # current folder.
  197. And I copy to the last selected folder in the file picker
  198. Then I see that the file list contains a file named "welcome.txt"
  199. And I see that the file list contains a file named "welcome (copy).txt"
  200. Scenario: copy a file twice in its same folder
  201. Given I am logged in
  202. And I start the move or copy operation for "welcome.txt"
  203. # No folder was explicitly selected, so the last selected folder is the
  204. # current folder.
  205. And I copy to the last selected folder in the file picker
  206. When I start the move or copy operation for "welcome.txt"
  207. And I copy to the last selected folder in the file picker
  208. Then I see that the file list contains a file named "welcome.txt"
  209. And I see that the file list contains a file named "welcome (copy).txt"
  210. And I see that the file list contains a file named "welcome (copy 2).txt"
  211. Scenario: copy a copy of a file in its same folder
  212. Given I am logged in
  213. And I start the move or copy operation for "welcome.txt"
  214. # No folder was explicitly selected, so the last selected folder is the
  215. # current folder.
  216. And I copy to the last selected folder in the file picker
  217. When I start the move or copy operation for "welcome (copy).txt"
  218. And I copy to the last selected folder in the file picker
  219. Then I see that the file list contains a file named "welcome.txt"
  220. And I see that the file list contains a file named "welcome (copy).txt"
  221. And I see that the file list contains a file named "welcome (copy 2).txt"
  222. # Scenario: rename a file with the details view open
  223. # Given I am logged in
  224. # And I open the details view for "welcome.txt"
  225. # When I rename "welcome.txt" to "farewell.txt"
  226. # Then I see that the file list contains a file named "farewell.txt"
  227. # And I see that the file name shown in the details view is "farewell.txt"
  228. Scenario: marking a file as favorite causes the file list to be sorted again
  229. Given I am logged in
  230. And I create a new folder named "A name alphabetically lower than welcome.txt"
  231. And I see that "A name alphabetically lower than welcome.txt" precedes "welcome.txt" in the file list
  232. # To mark the file as favorite the file actions menu has to be shown but, as
  233. # the details view is opened automatically when the folder is created,
  234. # clicking on the menu trigger could fail if it is covered by the details
  235. # view due to its opening animation. Instead of ensuring that the animations
  236. # of the contents and the details view have both finished it is easier to
  237. # close the details view and wait until it is closed before continuing.
  238. And I close the details view
  239. And I see that the details view is closed
  240. When I mark "welcome.txt" as favorite
  241. Then I see that "welcome.txt" is marked as favorite
  242. And I see that "welcome.txt" precedes "A name alphabetically lower than welcome.txt" in the file list
  243. Scenario: unmarking a file as favorite causes the file list to be sorted again
  244. Given I am logged in
  245. And I create a new folder named "A name alphabetically lower than welcome.txt"
  246. And I see that "A name alphabetically lower than welcome.txt" precedes "welcome.txt" in the file list
  247. # To mark the file as favorite the file actions menu has to be shown but, as
  248. # the details view is opened automatically when the folder is created,
  249. # clicking on the menu trigger could fail if it is covered by the details
  250. # view due to its opening animation. Instead of ensuring that the animations
  251. # of the contents and the details view have both finished it is easier to
  252. # close the details view and wait until it is closed before continuing.
  253. And I close the details view
  254. And I see that the details view is closed
  255. And I mark "welcome.txt" as favorite
  256. And I see that "welcome.txt" is marked as favorite
  257. And I see that "welcome.txt" precedes "A name alphabetically lower than welcome.txt" in the file list
  258. When I unmark "welcome.txt" as favorite
  259. Then I see that "welcome.txt" is not marked as favorite
  260. And I see that "A name alphabetically lower than welcome.txt" precedes "welcome.txt" in the file list
  261. Scenario: mark a file as favorite in the details view
  262. Given I am logged in
  263. And I open the details view for "welcome.txt"
  264. And I see that the details view is open
  265. When I mark the file as favorite in the details view
  266. Then I see that "welcome.txt" is marked as favorite
  267. And I see that the file is marked as favorite in the details view
  268. Scenario: unmark a file as favorite in the details view
  269. Given I am logged in
  270. And I open the details view for "welcome.txt"
  271. And I see that the details view is open
  272. And I mark the file as favorite in the details view
  273. And I see that "welcome.txt" is marked as favorite
  274. And I see that the file is marked as favorite in the details view
  275. When I unmark the file as favorite in the details view
  276. Then I see that "welcome.txt" is not marked as favorite
  277. And I see that the file is not marked as favorite in the details view