Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

app-files-sharing-link.feature 11KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248
  1. Feature: app-files-sharing-link
  2. Scenario: open the menu in a public shared link
  3. Given I act as John
  4. And I am logged in
  5. And I share the link for "welcome.txt"
  6. And I write down the shared link
  7. When I act as Jane
  8. And I visit the shared link I wrote down
  9. And I see that the current page is the shared link I wrote down
  10. And I open the Share menu
  11. Then I see that the Share menu is shown
  12. Scenario: hide download in a public shared link
  13. Given I act as John
  14. And I am logged in
  15. And I share the link for "welcome.txt"
  16. And I set the download of the shared link as hidden
  17. And I write down the shared link
  18. When I act as Jane
  19. And I visit the shared link I wrote down
  20. And I see that the current page is the shared link I wrote down
  21. Then I see that the download button is not shown
  22. And I see that the Share menu button is not shown
  23. Scenario: show download again in a public shared link
  24. Given I act as John
  25. And I am logged in
  26. And I share the link for "welcome.txt"
  27. And I set the download of the shared link as hidden
  28. And I set the download of the shared link as shown
  29. And I write down the shared link
  30. When I act as Jane
  31. And I visit the shared link I wrote down
  32. And I see that the current page is the shared link I wrote down
  33. Then I see that the download button is shown
  34. And I open the Share menu
  35. And I see that the Share menu is shown
  36. Scenario: open a subfolder in a public shared folder
  37. Given I act as John
  38. And I am logged in
  39. And I create a new folder named "Shared folder with subfolders"
  40. And I enter in the folder named "Shared folder with subfolders"
  41. And I create a new folder named "Subfolder"
  42. And I enter in the folder named "Subfolder"
  43. And I create a new folder named "Subsubfolder"
  44. And I see that the file list contains a file named "Subsubfolder"
  45. # The Files app is open again to reload the file list
  46. And I open the Files app
  47. And I share the link for "Shared folder with subfolders"
  48. And I write down the shared link
  49. When I act as Jane
  50. And I visit the shared link I wrote down
  51. And I see that the current page is the shared link I wrote down
  52. Then I see that the file list contains a file named "Subfolder"
  53. And I enter in the folder named "Subfolder"
  54. And I see that the file list contains a file named "Subsubfolder"
  55. Scenario: creation is not possible by default in a public shared folder
  56. Given I act as John
  57. And I am logged in
  58. And I create a new folder named "Shared folder"
  59. # To share the link the "Share" inline action has to be clicked but, as the
  60. # details view is opened automatically when the folder is created, clicking
  61. # on the inline action could fail if it is covered by the details view due
  62. # to its opening animation. Instead of ensuring that the animations of the
  63. # contents and the details view have both finished it is easier to close the
  64. # details view and wait until it is closed before continuing.
  65. And I close the details view
  66. And I see that the details view is closed
  67. And I share the link for "Shared folder"
  68. And I write down the shared link
  69. When I act as Jane
  70. And I visit the shared link I wrote down
  71. And I see that the current page is the shared link I wrote down
  72. And I see that the file list is eventually loaded
  73. Then I see that it is not possible to create new files
  74. Scenario: create folder in a public editable shared folder
  75. Given I act as John
  76. And I am logged in
  77. And I create a new folder named "Editable shared folder"
  78. # To share the link the "Share" inline action has to be clicked but, as the
  79. # details view is opened automatically when the folder is created, clicking
  80. # on the inline action could fail if it is covered by the details view due
  81. # to its opening animation. Instead of ensuring that the animations of the
  82. # contents and the details view have both finished it is easier to close the
  83. # details view and wait until it is closed before continuing.
  84. And I close the details view
  85. And I see that the details view is closed
  86. And I share the link for "Editable shared folder"
  87. And I set the shared link as editable
  88. And I write down the shared link
  89. When I act as Jane
  90. And I visit the shared link I wrote down
  91. And I see that the current page is the shared link I wrote down
  92. And I create a new folder named "Subfolder"
  93. Then I see that the file list contains a file named "Subfolder"
  94. Scenario: owner sees folder created in the public page of an editable shared folder
  95. Given I act as John
  96. And I am logged in
  97. And I create a new folder named "Editable shared folder"
  98. # To share the link the "Share" inline action has to be clicked but, as the
  99. # details view is opened automatically when the folder is created, clicking
  100. # on the inline action could fail if it is covered by the details view due
  101. # to its opening animation. Instead of ensuring that the animations of the
  102. # contents and the details view have both finished it is easier to close the
  103. # details view and wait until it is closed before continuing.
  104. And I close the details view
  105. And I see that the details view is closed
  106. And I share the link for "Editable shared folder"
  107. And I set the shared link as editable
  108. And I write down the shared link
  109. And I act as Jane
  110. And I visit the shared link I wrote down
  111. And I see that the current page is the shared link I wrote down
  112. And I create a new folder named "Subfolder"
  113. And I see that the file list contains a file named "Subfolder"
  114. When I act as John
  115. And I enter in the folder named "Editable shared folder"
  116. Then I see that the file list contains a file named "Subfolder"
  117. Scenario: set a password to a shared link
  118. Given I am logged in
  119. And I share the link for "welcome.txt"
  120. When I protect the shared link with the password "abcdef"
  121. Then I see that the password protect is disabled while loading
  122. And I see that the link share is password protected
  123. # As Talk is not enabled in the acceptance tests of the server the checkbox
  124. # is never shown.
  125. And I see that the checkbox to protect the password of the link share by Talk is not shown
  126. Scenario: access a shared link protected by password with a valid password
  127. Given I act as John
  128. And I am logged in
  129. And I share the link for "welcome.txt" protected by the password "abcdef"
  130. And I write down the shared link
  131. When I act as Jane
  132. And I visit the shared link I wrote down
  133. And I see that the current page is the Authenticate page for the shared link I wrote down
  134. And I authenticate with password "abcdef"
  135. Then I see that the current page is the shared link I wrote down
  136. And I see that the shared file preview shows the text "Welcome to your Nextcloud account!"
  137. Scenario: access a shared link protected by password with an invalid password
  138. Given I act as John
  139. And I am logged in
  140. And I share the link for "welcome.txt" protected by the password "abcdef"
  141. And I write down the shared link
  142. When I act as Jane
  143. And I visit the shared link I wrote down
  144. And I authenticate with password "fedcba"
  145. Then I see that the current page is the Authenticate page for the shared link I wrote down
  146. And I see that a wrong password for the shared file message is shown
  147. Scenario: access a direct download shared link protected by password with a valid password
  148. Given I act as John
  149. And I am logged in
  150. And I share the link for "welcome.txt" protected by the password "abcdef"
  151. And I write down the shared link
  152. When I act as Jane
  153. And I visit the direct download shared link I wrote down
  154. And I see that the current page is the Authenticate page for the direct download shared link I wrote down
  155. And I authenticate with password "abcdef"
  156. # download starts no page redirection
  157. And I see that the current page is the Authenticate page for the direct download shared link I wrote down
  158. Scenario: sharee can not reshare by link if resharing is disabled in the settings after the share is created
  159. Given I act as John
  160. And I am logged in as the admin
  161. And I act as Jane
  162. And I am logged in
  163. And I act as John
  164. And I rename "welcome.txt" to "farewell.txt"
  165. And I see that the file list contains a file named "farewell.txt"
  166. And I share "farewell.txt" with "user0"
  167. And I see that the file is shared with "user0"
  168. And I visit the settings page
  169. And I open the "Sharing" section of the "Administration" group
  170. And I disable resharing
  171. And I see that resharing is disabled
  172. When I act as Jane
  173. # The Files app is open again to reload the file list
  174. And I open the Files app
  175. Then I see that the file list contains a file named "farewell.txt"
  176. And I open the details view for "farewell.txt"
  177. And I see that the details view is open
  178. And I open the "Sharing" tab in the details view
  179. And I see that the "Sharing" tab in the details view is eventually loaded
  180. And I see that the file is shared with me by "admin"
  181. And I see that resharing the file by link is not available
  182. Scenario: sharee can unshare a reshare by link if resharing is disabled in the settings after the reshare is created
  183. Given I act as John
  184. And I am logged in as the admin
  185. And I act as Jane
  186. And I am logged in
  187. And I act as John
  188. And I rename "welcome.txt" to "farewell.txt"
  189. And I see that the file list contains a file named "farewell.txt"
  190. And I share "farewell.txt" with "user0"
  191. And I see that the file is shared with "user0"
  192. And I act as Jane
  193. # The Files app is open again to reload the file list
  194. And I open the Files app
  195. And I share the link for "farewell.txt"
  196. And I write down the shared link
  197. And I act as John
  198. And I visit the settings page
  199. And I open the "Sharing" section of the "Administration" group
  200. And I disable resharing
  201. And I see that resharing is disabled
  202. When I act as Jane
  203. # The Files app is open again to reload the file list
  204. And I open the Files app
  205. And I open the details view for "farewell.txt"
  206. And I see that the details view is open
  207. And I open the "Sharing" tab in the details view
  208. And I see that the "Sharing" tab in the details view is eventually loaded
  209. And I unshare the link share
  210. Then I see that resharing the file by link is not available
  211. Scenario: reshare by link can be accessed if resharing is disabled in the settings after the reshare is created
  212. Given I act as John
  213. And I am logged in as the admin
  214. And I act as Jane
  215. And I am logged in
  216. And I act as John
  217. And I rename "welcome.txt" to "farewell.txt"
  218. And I see that the file list contains a file named "farewell.txt"
  219. And I share "farewell.txt" with "user0"
  220. And I see that the file is shared with "user0"
  221. And I act as Jane
  222. # The Files app is open again to reload the file list
  223. And I open the Files app
  224. And I share the link for "farewell.txt"
  225. And I write down the shared link
  226. And I act as John
  227. And I visit the settings page
  228. And I open the "Sharing" section of the "Administration" group
  229. And I disable resharing
  230. And I see that resharing is disabled
  231. When I act as Jim
  232. And I visit the shared link I wrote down
  233. Then I see that the current page is the shared link I wrote down
  234. And I see that the shared file preview shows the text "Welcome to your Nextcloud account!"