forked from cucumber/cucumber-java-skeleton
-
Notifications
You must be signed in to change notification settings - Fork 2
/
rename.feature
31 lines (26 loc) · 1.01 KB
/
rename.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
@rename
Feature: Rename an item
As a user, i want to rename the items of my account
so that i see clearer or different names as i need them
Background: User is logged in
Given user Alice is logged
@smoke
Scenario Outline: Rename an item
Given the following items have been created in Alice account
| <type> | <name> |
When Alice selects to Rename the <type> <name>
And Alice sets <newName> as new name
Then Alice should see <newName> in the filelist
But Alice should not see <name> in the filelist anymore
Examples:
| type | name | newName |
| folder | folder1 | Rename1 |
| file | file2.txt | Rename2.txt |
Scenario: Rename an item with an existing name
Given the following items have been created in Alice account
| folder | folder3 |
| folder | folder4 |
When Alice selects to Rename the folder folder3
And Alice sets folder4 as new name
Then Alice should see the following error
| Rename could not be completed |