forked from cucumber/cucumber-java-skeleton
-
Notifications
You must be signed in to change notification settings - Fork 2
/
move.feature
89 lines (75 loc) · 3.35 KB
/
move.feature
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
@move
Feature: Move item
As a user
I want to move content to other location in my account
so that the files and folders are place where i want
Background: User is logged in
Given user Alice is logged
Rule: Move to regular location
@smoke
Scenario Outline: Move an existent folder to another location
Given the following items have been created in Alice account
| <type> | <name> |
| folder | <target> |
When Alice selects to Move the <type> <name>
And Alice selects <target> as target folder
Then Alice should not see <name> in the filelist anymore
But Alice should see <name> inside the folder <target>
Examples:
| type | name | target |
| folder | move1 | Documents |
| file | move2.txt | Documents |
Scenario Outline: Move an existent item to a new created folder in the picker
Given the following items have been created in Alice account
| <type> | <name> |
When Alice selects to Move the <type> <name>
And Alice creates new folder <target> in the folder picker
And Alice selects <target> as target folder
Then Alice should not see <name> in the filelist anymore
But Alice should see <name> inside the folder <target>
Examples:
| type | name | target |
| file | move3.txt | move4 |
@moveconflicts
Rule: Move with conflicts
Scenario: Move a folder to another place with same item name
Given the following items have been created in Alice account
| folder | move5 |
| folder | move6 |
| folder | move6/move5 |
When Alice selects to Move the folder move5
And Alice selects move6 as target folder
And Alice fixes the conflict with keep both
Then Alice should see 'move5 (1)' inside the folder move6
Scenario: Move a folder to another place with same item name
Given the following items have been created in Alice account
| folder | move7 |
| folder | move8 |
| folder | move8/move7 |
When Alice selects to Move the folder move7
And Alice selects move8 as target folder
And Alice fixes the conflict with replace
Then Alice should see move7 inside the folder move8
Rule: Move negative cases
Scenario: Move a folder to itself
Given the following items have been created in Alice account
| folder | move9 |
When Alice selects to Move the folder move9
And Alice selects move9 as target folder
Then Alice should see the following error
| It is not possible to move a folder into a descendant |
Scenario: Move a folder to same location
Given the following items have been created in Alice account
| file | move10.txt |
When Alice selects to Move the file move10.txt
And Alice selects / as target folder
Then Alice should see the following error
| The file exists already in the destination folder |
Scenario: Move a folder to descendant
Given the following items have been created in Alice account
| folder | move11 |
| folder | move11/move12 |
When Alice selects to Move the folder move11
And Alice selects move11/move12 as target folder
Then Alice should see the following error
| It is not possible to move a folder into a descendant |