1
0

app-files.feature 14 KB

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