forked from cucumber/cucumber-java-skeleton
-
Notifications
You must be signed in to change notification settings - Fork 2
/
delete.feature
37 lines (32 loc) · 1.16 KB
/
delete.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
@delete
Feature: Delete item
As a user
I want to be able to delete content from my account
so that i can get rid of the files and folders i do not need anymore
Background: User is logged in
Given user Alice is logged
@smoke
Scenario Outline: Delete an existent item
Given the following items have been created in Alice account
| <type> | <name> |
When Alice selects to Remove the <type> <name>
And Alice accepts the deletion of <type>
Then Alice should not see <name> in the filelist anymore
Examples:
| type | name |
| folder | Deletefolder |
| file | Deletefile.txt |
Scenario: Delete several shows correct message
Given the following items have been created in Alice account
| file | delete1.txt |
| file | delete2.txt |
| file | delete3.txt |
| file | delete4.txt |
| file | delete5.txt |
When Alice long presses over delete1.txt
When Alice multiselects the following items
| delete2.txt |
| delete3.txt |
And Alice selects to Delete
Then Alice should see the following message
| Do you really want to remove these 3 items? | |