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 9.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  1. Feature: app-files
  2. Scenario: open and close the details view
  3. Given I am logged in
  4. When I open the details view for "welcome.txt"
  5. And I see that the details view is open
  6. And I close the details view
  7. Then I see that the details view is closed
  8. Scenario: open and close the details view twice
  9. Given I am logged in
  10. And I open the details view for "welcome.txt"
  11. And I see that the details view is open
  12. And I close the details view
  13. And I see that the details view is closed
  14. When I open the details view for "welcome.txt"
  15. And I see that the details view is open
  16. And I close the details view
  17. Then I see that the details view is closed
  18. Scenario: open and close the details view again after coming back from a different section
  19. Given I am logged in
  20. And I open the details view for "welcome.txt"
  21. And I see that the details view is open
  22. And I close the details view
  23. And I see that the details view is closed
  24. And I open the "Recent" section
  25. And I see that the current section is "Recent"
  26. And I open the details view for "welcome.txt"
  27. And I see that the details view is open
  28. And I close the details view
  29. And I see that the details view is closed
  30. When I open the "All files" section
  31. And I see that the current section is "All files"
  32. And I open the details view for "welcome.txt"
  33. And I see that the details view is open
  34. And I close the details view
  35. Then I see that the details view is closed
  36. Scenario: viewing a favorite file in its folder shows the correct sidebar view
  37. Given I am logged in
  38. And I create a new folder named "other"
  39. And I mark "other" as favorite
  40. And I mark "welcome.txt" as favorite
  41. And I see that "other" is marked as favorite
  42. And I see that "welcome.txt" is marked as favorite
  43. And I open the "Favorites" section
  44. And I open the details view for "other"
  45. And I see that the details view is open
  46. And I see that the file name shown in the details view is "other"
  47. When I view "welcome.txt" in folder
  48. Then I see that the current section is "All files"
  49. And I see that the details view is open
  50. And I see that the file name shown in the details view is "welcome.txt"
  51. When I open the details view for "other"
  52. And I see that the file name shown in the details view is "other"
  53. Scenario: viewing a favorite file in its folder does not prevent opening the details view in "All files" section
  54. Given I am logged in
  55. And I mark "welcome.txt" as favorite
  56. And I see that "welcome.txt" is marked as favorite
  57. And I open the "Favorites" section
  58. And I open the details view for "welcome.txt"
  59. And I see that the details view is open
  60. And I view "welcome.txt" in folder
  61. And I see that the current section is "All files"
  62. When I open the details view for "welcome.txt"
  63. Then I see that the details view is open
  64. Scenario: show recent files
  65. Given I am logged in
  66. And I create a new folder named "Folder just created"
  67. When I open the "Recent" section
  68. Then I see that the current section is "Recent"
  69. Then I see that the file list contains a file named "Folder just created"
  70. Scenario: show recent files for a second time
  71. Given I am logged in
  72. And I open the "Recent" section
  73. And I see that the current section is "Recent"
  74. And I open the "All files" section
  75. And I see that the current section is "All files"
  76. And I create a new folder named "Folder just created"
  77. When I open the "Recent" section
  78. Then I see that the current section is "Recent"
  79. Then I see that the file list contains a file named "Folder just created"
  80. Scenario: show favorites
  81. Given I am logged in
  82. And I mark "welcome.txt" as favorite
  83. When I open the "Favorites" section
  84. Then I see that the current section is "Favorites"
  85. Then I see that the file list contains a file named "welcome.txt"
  86. Scenario: show favorites for a second time
  87. Given I am logged in
  88. And I open the "Favorites" section
  89. And I see that the current section is "Favorites"
  90. And I open the "All files" section
  91. And I see that the current section is "All files"
  92. And I mark "welcome.txt" as favorite
  93. When I open the "Favorites" section
  94. Then I see that the current section is "Favorites"
  95. Then I see that the file list contains a file named "welcome.txt"
  96. Scenario: show shares
  97. Given I am logged in
  98. And I share the link for "welcome.txt"
  99. When I open the "Shares" section
  100. Then I see that the current section is "Shares"
  101. Then I see that the file list contains a file named "welcome.txt"
  102. Scenario: show shares for a second time
  103. Given I am logged in
  104. And I open the "Shares" section
  105. And I see that the current section is "Shares"
  106. And I open the "All files" section
  107. And I see that the current section is "All files"
  108. And I share the link for "welcome.txt"
  109. When I open the "Shares" section
  110. Then I see that the current section is "Shares"
  111. Then I see that the file list contains a file named "welcome.txt"
  112. Scenario: show deleted files
  113. Given I am logged in
  114. And I delete "welcome.txt"
  115. When I open the "Deleted files" section
  116. Then I see that the current section is "Deleted files"
  117. Then I see that the file list contains a file named "welcome.txt"
  118. Scenario: show deleted files for a second time
  119. Given I am logged in
  120. And I open the "Deleted files" section
  121. And I see that the current section is "Deleted files"
  122. And I open the "All files" section
  123. And I see that the current section is "All files"
  124. And I delete "welcome.txt"
  125. When I open the "Deleted files" section
  126. Then I see that the current section is "Deleted files"
  127. Then I see that the file list contains a file named "welcome.txt"
  128. Scenario: rename a file with the details view open
  129. Given I am logged in
  130. And I open the details view for "welcome.txt"
  131. When I rename "welcome.txt" to "farewell.txt"
  132. Then I see that the file list contains a file named "farewell.txt"
  133. And I see that the file name shown in the details view is "farewell.txt"
  134. Scenario: marking a file as favorite causes the file list to be sorted again
  135. Given I am logged in
  136. And I create a new folder named "A name alphabetically lower than welcome.txt"
  137. And I see that "A name alphabetically lower than welcome.txt" precedes "welcome.txt" in the file list
  138. # To mark the file as favorite the file actions menu has to be shown but, as
  139. # the details view is opened automatically when the folder is created,
  140. # clicking on the menu trigger could fail if it is covered by the details
  141. # view due to its opening animation. Instead of ensuring that the animations
  142. # of the contents and the details view have both finished it is easier to
  143. # close the details view and wait until it is closed before continuing.
  144. And I close the details view
  145. And I see that the details view is closed
  146. When I mark "welcome.txt" as favorite
  147. Then I see that "welcome.txt" is marked as favorite
  148. And I see that "welcome.txt" precedes "A name alphabetically lower than welcome.txt" in the file list
  149. Scenario: unmarking a file as favorite causes the file list to be sorted again
  150. Given I am logged in
  151. And I create a new folder named "A name alphabetically lower than welcome.txt"
  152. And I see that "A name alphabetically lower than welcome.txt" precedes "welcome.txt" in the file list
  153. # To mark the file as favorite the file actions menu has to be shown but, as
  154. # the details view is opened automatically when the folder is created,
  155. # clicking on the menu trigger could fail if it is covered by the details
  156. # view due to its opening animation. Instead of ensuring that the animations
  157. # of the contents and the details view have both finished it is easier to
  158. # close the details view and wait until it is closed before continuing.
  159. And I close the details view
  160. And I see that the details view is closed
  161. And I mark "welcome.txt" as favorite
  162. And I see that "welcome.txt" is marked as favorite
  163. And I see that "welcome.txt" precedes "A name alphabetically lower than welcome.txt" in the file list
  164. When I unmark "welcome.txt" as favorite
  165. Then I see that "welcome.txt" is not marked as favorite
  166. And I see that "A name alphabetically lower than welcome.txt" precedes "welcome.txt" in the file list
  167. Scenario: mark a file as favorite in the details view
  168. Given I am logged in
  169. And I open the details view for "welcome.txt"
  170. And I see that the details view is open
  171. When I mark the file as favorite in the details view
  172. Then I see that "welcome.txt" is marked as favorite
  173. And I see that the file is marked as favorite in the details view
  174. Scenario: unmark a file as favorite in the details view
  175. Given I am logged in
  176. And I open the details view for "welcome.txt"
  177. And I see that the details view is open
  178. And I mark the file as favorite in the details view
  179. And I see that "welcome.txt" is marked as favorite
  180. And I see that the file is marked as favorite in the details view
  181. When I unmark the file as favorite in the details view
  182. Then I see that "welcome.txt" is not marked as favorite
  183. And I see that the file is not marked as favorite in the details view