You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: test/gui/tst_sharing/test.feature
+24-34
Original file line number
Diff line number
Diff line change
@@ -83,7 +83,7 @@ Feature: Sharing
83
83
And the user opens the sharing dialog of "SharedFolder" using the client-UI
84
84
And the user searches for collaborator "Brian Murphy" using the client-UI
85
85
Then the error "No results for 'Brian Murphy'" should be displayed
86
-
Whenthe user closes the sharing dialog
86
+
Andthe user closes the sharing dialog
87
87
88
88
89
89
Scenario: try to self share a file/folder
@@ -97,7 +97,7 @@ Feature: Sharing
97
97
And the user opens the sharing dialog of "OwnFolder" using the client-UI
98
98
And the user selects "Alice Hansen" as collaborator of resource "OwnFolder" using the client-UI
99
99
Then the error "Can't share with yourself" should be displayed
100
-
Whenthe user closes the sharing dialog
100
+
Andthe user closes the sharing dialog
101
101
102
102
103
103
Scenario: search for users with minimum autocomplete characters
@@ -111,7 +111,7 @@ Feature: Sharing
111
111
| user |
112
112
| TestUser1 |
113
113
| TestUser2 |
114
-
Whenthe user closes the sharing dialog
114
+
Andthe user closes the sharing dialog
115
115
116
116
Scenario: autocomplete offers a list of users followed by a list of groups
117
117
And user "Alice" has uploaded file with content "ownCloud test text file" to "textfile.txt" in the server
@@ -122,7 +122,7 @@ Feature: Sharing
122
122
| user |
123
123
| admin |
124
124
| admin (group) |
125
-
Whenthe user closes the sharing dialog
125
+
Andthe user closes the sharing dialog
126
126
127
127
Scenario: collaborators are listed in chronological order
128
128
Given user "Brian" has been created on the server with default attributes and without skeleton files
@@ -145,7 +145,7 @@ Feature: Sharing
145
145
| TestUser1 |
146
146
| TestUser3 |
147
147
| TestUser2 |
148
-
Whenthe user closes the sharing dialog
148
+
Andthe user closes the sharing dialog
149
149
150
150
@issue-7459
151
151
Scenario: Progress indicator should not be visible after unselecting the password protection checkbox while sharing through public link
@@ -155,7 +155,7 @@ Feature: Sharing
155
155
And the user toggles the password protection using the client-UI
156
156
And the user toggles the password protection using the client-UI
157
157
Then the password progress indicator should not be visible in the client-UI - expected to fail
158
-
Whenthe user closes the sharing dialog
158
+
Andthe user closes the sharing dialog
159
159
160
160
161
161
Scenario: Collaborator should not see to whom a file/folder is shared.
@@ -170,7 +170,7 @@ Feature: Sharing
170
170
When the user closes the sharing dialog
171
171
And the user opens the sharing dialog of "Folder" using the client-UI
172
172
Then the error text "The item is not shared with any users or groups" should be displayed in the sharing dialog
173
-
Whenthe user closes the sharing dialog
173
+
Andthe user closes the sharing dialog
174
174
175
175
176
176
Scenario: share file and folder to a group
@@ -186,7 +186,6 @@ Feature: Sharing
186
186
Then group "grp1" should be listed in the collaborators list for file "simple-folder" with permissions "edit,share" on the client-UI
187
187
And as "Brian" folder "simple-folder" should exist in the server
188
188
And as "Brian" file "textfile0.txt" should exist in the server
189
-
When the user closes the sharing dialog
190
189
191
190
192
191
Scenario: User (non-author) can not share to a group to which the file/folder is already shared
@@ -205,7 +204,7 @@ Feature: Sharing
205
204
When the user closes the sharing dialog
206
205
And the user tires to share resource "Folder" with the group "grp1" using the client-UI
207
206
Then the error "Path already shared with this group" should be displayed
208
-
Whenthe user closes the sharing dialog
207
+
Andthe user closes the sharing dialog
209
208
210
209
211
210
Scenario: sharee edits content of files shared by sharer
@@ -224,7 +223,6 @@ Feature: Sharing
224
223
And as "Brian" the file "textfile.txt" should have the content "overwrite file in the root" in the server
225
224
And as "Alice" the file "simple-folder/textfile.txt" should have the content "overwrite file inside a folder" in the server
226
225
And as "Alice" the file "textfile.txt" should have the content "overwrite file in the root" in the server
227
-
When the user closes the sharing dialog
228
226
229
227
230
228
Scenario: sharee tries to edit content of files shared without write permission
@@ -242,7 +240,6 @@ Feature: Sharing
242
240
And as "Brian" the file "textfile.txt" should have the content "file in the root" in the server
243
241
And as "Alice" the file "Parent/textfile.txt" should have the content "file inside a folder" in the server
244
242
And as "Alice" the file "textfile.txt" should have the content "file in the root" in the server
245
-
When the user closes the sharing dialog
246
243
247
244
248
245
Scenario: sharee edits shared files and again try to edit after write permission is revoked
@@ -261,14 +258,14 @@ Feature: Sharing
261
258
And the user removes permissions "edit" for user "Brian Murphy" of resource "textfile.txt" using the client-UI
262
259
When the user closes the sharing dialog
263
260
And the user removes permissions "edit" for user "Brian Murphy" of resource "FOLDER" using the client-UI
261
+
And the user closes the sharing dialog
264
262
And user "Brian" tries to overwrite the file "textfile.txt" with content "overwrite ownCloud test text file"
265
263
And user "Brian" tries to overwrite the file "FOLDER/simple.txt" with content "overwrite some content"
266
264
And user "Brian" waits for file "textfile.txt" to have sync error
267
265
Then as "Brian" the file "textfile.txt" should have the content "ownCloud test text file" in the server
268
266
And as "Brian" the file "FOLDER/simple.txt" should have the content "some content" in the server
269
267
And as "Alice" the file "textfile.txt" should have the content "ownCloud test text file" in the server
270
268
And as "Alice" the file "FOLDER/simple.txt" should have the content "some content" in the server
271
-
When the user closes the sharing dialog
272
269
273
270
274
271
Scenario: sharee creates a file and a folder inside a shared folder
@@ -287,7 +284,6 @@ Feature: Sharing
287
284
And as "Brian" folder "Parent/localFolder" should exist in the server
288
285
And as "Alice" file "Parent/localFile.txt" should exist in the server
289
286
And as "Alice" folder "Parent/localFolder" should exist in the server
290
-
When the user closes the sharing dialog
291
287
292
288
293
289
Scenario: sharee tries to create a file and a folder inside a shared folder without write permission
@@ -306,7 +302,6 @@ Feature: Sharing
306
302
And as "Brian" folder "Parent/localFolder" should not exist in the server
307
303
And as "Alice" file "Parent/localFile.txt" should not exist in the server
308
304
And as "Alice" folder "Parent/localFolder" should not exist in the server
309
-
When the user closes the sharing dialog
310
305
311
306
312
307
Scenario: sharee renames the shared file and folder
@@ -329,7 +324,6 @@ Feature: Sharing
329
324
And as "Alice" file "textfile.txt" should exist in the server
330
325
And as "Alice" folder "PARENT" should not exist in the server
331
326
And as "Alice" file "lorem.txt" should not exist in the server
332
-
When the user closes the sharing dialog
333
327
334
328
@issue-9439@issue-11102@skip
335
329
Scenario: sharee deletes a file and folder shared by sharer
@@ -346,7 +340,6 @@ Feature: Sharing
346
340
And as "Brian" folder "Folder" on the server should not exist
347
341
And as "Alice" file "textfile.txt" on the server should exist
348
342
And as "Alice" folder "Folder" on the server should exist
349
-
When the user closes the sharing dialog
350
343
351
344
@issue-11102@skip
352
345
Scenario: sharee tries to delete shared file and folder without permissions
@@ -364,7 +357,6 @@ Feature: Sharing
364
357
And as "Brian" folder "Folder" on the server should not exist
365
358
And as "Alice" file "textfile.txt" on the server should exist
366
359
And as "Alice" folder "Folder" on the server should exist
367
-
When the user closes the sharing dialog
368
360
369
361
370
362
Scenario: reshare a file/folder
@@ -381,7 +373,6 @@ Feature: Sharing
381
373
And user "Carol King" should be listed in the collaborators list for file "textfile.txt" with permissions "edit,share" on the client-UI
382
374
And as "Carol" folder "FOLDER" should exist in the server
383
375
And as "Carol" file "textfile.txt" should exist in the server
384
-
When the user closes the sharing dialog
385
376
386
377
387
378
Scenario: try to reshare a file/folder shared without share permission
@@ -394,9 +385,10 @@ Feature: Sharing
394
385
And user "Brian" has set up a client with default settings
395
386
When the user opens the sharing dialog of "FOLDER" using the client-UI
396
387
Then the error text "The file can not be shared because it was shared without sharing permission." should be displayed in the sharing dialog
388
+
And the user closes the sharing dialog
397
389
When the user opens the sharing dialog of "textfile.txt" using the client-UI
398
390
Then the error text "The file can not be shared because it was shared without sharing permission." should be displayed in the sharing dialog
399
-
Whenthe user closes the sharing dialog
391
+
Andthe user closes the sharing dialog
400
392
401
393
402
394
Scenario: unshare a shared file and folder
@@ -412,8 +404,8 @@ Feature: Sharing
412
404
When the user closes the sharing dialog
413
405
And the user unshares the resource "simple-folder" for collaborator "Brian Murphy" using the client-UI
414
406
Then the text "The item is not shared with any users or groups" should be displayed in the sharing dialog
407
+
And the user closes the sharing dialog
415
408
And as "Brian" folder "simple-folder" on the server should not exist
416
-
When the user closes the sharing dialog
417
409
418
410
419
411
Scenario: share a file with many users
@@ -432,7 +424,6 @@ Feature: Sharing
432
424
| BrianMurphy | edit,share |
433
425
| CarolKing | edit,share |
434
426
| DavidLopez | edit,share |
435
-
When the user closes the sharing dialog
436
427
437
428
@issue-7423
438
429
Scenario: unshare a reshared file
@@ -444,7 +435,7 @@ Feature: Sharing
444
435
And user "Brian" has set up a client with default settings
445
436
When the user unshares the resource "textfile.txt" for collaborator "Carol King" using the client-UI
446
437
Then the text "The item is not shared with any users or groups" should be displayed in the sharing dialog
447
-
Whenthe user closes the sharing dialog
438
+
Andthe user closes the sharing dialog
448
439
449
440
@smokeTest
450
441
Scenario: simple sharing of file and folder by public link without password
@@ -459,7 +450,7 @@ Feature: Sharing
459
450
When the user creates a new public link with permissions "Download / View" for folder "simple-folder" without password using the client-UI
460
451
Then as user "Alice" the folder "simple-folder" should have a public link in the server
461
452
And the public should be able to download the folder "simple-folder/child" without password from the last created public link by "Alice" on the server
462
-
Whenthe user closes the sharing dialog
453
+
Andthe user closes the sharing dialog
463
454
464
455
465
456
Scenario Outline: simple sharing of file and folder by public link with password
@@ -473,7 +464,7 @@ Feature: Sharing
473
464
When the user creates a new public link with permissions "Download / View" for folder "simple-folder" with password "<password>" using the client-UI
474
465
Then as user "Alice" the folder "simple-folder" should have a public link in the server
475
466
And the public should be able to download the folder "simple-folder" with password "<password>" from the last created public link by "Alice" on the server
476
-
Whenthe user closes the sharing dialog
467
+
Andthe user closes the sharing dialog
477
468
Examples:
478
469
| password |
479
470
| password1234 |
@@ -487,8 +478,8 @@ Feature: Sharing
487
478
| name | Public-link |
488
479
And user "Alice" has set up a client with default settings
489
480
When the user deletes the public link for file "textfile0.txt"
481
+
And the user closes the sharing dialog
490
482
Then as user "Alice" the file "/textfile0.txt" should not have any public link in the server
491
-
When the user closes the sharing dialog
492
483
493
484
494
485
Scenario: sharing of a file by public link with password and changing the password
@@ -502,7 +493,7 @@ Feature: Sharing
502
493
And the user changes the password of public link "Public-link" to "password1234" using the client-UI
503
494
Then as user "Alice" the file "textfile0.txt" should have a public link in the server
504
495
And the public should be able to download the file "textfile0.txt" with password "password1234" from the last created public link by "Alice" on the server
505
-
Whenthe user closes the sharing dialog
496
+
Andthe user closes the sharing dialog
506
497
507
498
508
499
Scenario: simple sharing of a file by public link with default expiration date
@@ -514,7 +505,6 @@ Feature: Sharing
514
505
When the user closes the sharing dialog
515
506
Then the expiration date of the last public link of file "textfile.txt" should be "%default%"
516
507
And as user "Alice" the file "textfile.txt" should have a public link in the server
517
-
When the user closes the sharing dialog
518
508
519
509
@issue-9321@skipOnWindows
520
510
Scenario: simple sharing of file and folder by public link with expiration date
@@ -531,10 +521,10 @@ Feature: Sharing
531
521
And the user creates a new public link with following settings using the client-UI:
532
522
| path | FOLDER |
533
523
| expireDate | 2031-12-30 |
524
+
And the user closes the sharing dialog
534
525
Then as user "Alice" the folder "FOLDER" should have a public link in the server
535
526
And the last public link share response of user "Alice" should include the following fields on the server
536
527
| expireDate | 2031-12-30 |
537
-
When the user closes the sharing dialog
538
528
539
529
@issue-9321@skipOnWindows
540
530
Scenario: simple sharing of a file by public link with password and expiration date
@@ -544,11 +534,11 @@ Feature: Sharing
544
534
| path | textfile.txt |
545
535
| password | pass123 |
546
536
| expireDate | 2031-10-14 |
537
+
And the user closes the sharing dialog
547
538
Then as user "Alice" the file "textfile.txt" should have a public link in the server
548
539
And the last public link share response of user "Alice" should include the following fields on the server
549
540
| expireDate | 2031-10-14 |
550
541
And the public should be able to download the file "textfile.txt" with password "pass123" from the last created public link by "Alice" in the server
551
-
When the user closes the sharing dialog
552
542
553
543
@skip@issue-9321@skipOnWindows
554
544
Scenario: user changes the expiration date of an already existing public link for file using client-UI
@@ -561,9 +551,9 @@ Feature: Sharing
561
551
When the user opens the public links dialog of "textfile0.txt" using the client-UI
562
552
And the user edits the public link named "Public link" of file "textfile0.txt" changing following
563
553
| expireDate | 2038-07-21 |
554
+
And the user closes the sharing dialog
564
555
Then the last public link share response of user "Alice" should include the following fields on the server
565
556
| expireDate | 2038-07-21 |
566
-
When the user closes the sharing dialog
567
557
568
558
@skip@issue-9321@skipOnWindows
569
559
Scenario: user changes the expiration date of an already existing public link for folder using client-UI
@@ -577,24 +567,24 @@ Feature: Sharing
577
567
When the user opens the public links dialog of "simple-folder" using the client-UI
578
568
And the user edits the public link named "Public link" of file "simple-folder" changing following
579
569
| expireDate | 2038-07-21 |
570
+
And the user closes the sharing dialog
580
571
Then the last public link share response of user "Alice" should include the following fields on the server
581
572
| expireDate | 2038-07-21 |
582
-
When the user closes the sharing dialog
583
573
584
574
585
575
Scenario Outline: simple sharing of folder by public link with different roles
586
576
Given user "Alice" has created folder "simple-folder" in the server
587
577
And user "Alice" has set up a client with default settings
588
578
When the user creates a new public link for folder "simple-folder" using the client-UI with these details:
589
579
| role | <role> |
580
+
And the user closes the sharing dialog
590
581
Then user "Alice" on the server should have a share with these details:
591
582
| field | value |
592
583
| share_type | public_link |
593
584
| uid_owner | Alice |
594
585
| permissions | <permissions> |
595
586
| path | /simple-folder |
596
587
| name | Publiclink |
597
-
When the user closes the sharing dialog
598
588
Examples:
599
589
| role | permissions |
600
590
| Viewer | read |
@@ -608,6 +598,7 @@ Feature: Sharing
608
598
And user "Alice" has set up a client with default settings
609
599
When the user creates a new public link for folder "simple-folder" using the client-UI with these details:
610
600
| role | Contributor |
601
+
And the user closes the sharing dialog
611
602
Then user "Alice" on the server should have a share with these details:
612
603
| field | value |
613
604
| share_type | public_link |
@@ -616,7 +607,6 @@ Feature: Sharing
616
607
| path | /simple-folder |
617
608
| name | Publiclink |
618
609
And the public should not be able to download the file "lorem.txt" from the last created public link by "Alice" in the server
619
-
When the user closes the sharing dialog
620
610
621
611
622
612
Scenario Outline: change collaborator permissions of a file & folder
@@ -632,6 +622,7 @@ Feature: Sharing
632
622
When the user closes the sharing dialog
633
623
And the user removes permissions "<permissions>" for user "Brian Murphy" of resource "lorem.txt" using the client-UI
634
624
Then "<permissions>" permissions should not be displayed for user "Brian Murphy" for resource "lorem.txt" on the client-UI
625
+
And the user closes the sharing dialog
635
626
And user "Alice" on the server should have a share with these details:
0 commit comments