This repository was archived by the owner on Jan 30, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 398
Expand file tree
/
Copy pathfolder.feature
More file actions
51 lines (45 loc) · 1.98 KB
/
folder.feature
File metadata and controls
51 lines (45 loc) · 1.98 KB
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
@folders
Feature: Folders
Background:
Given a confirmed user exists with login: "mislav", first_name: "Mislav", last_name: "Marohnić"
And I am logged in as @mislav
And I am currently in the project ruby_rockstars
When I go to the uploads page of the "Ruby Rockstars" project
And I follow "New Folder"
Then I should see New Folder form
Scenario: Mislav creates a valid folder with success
When I fill in the form name with "Rails 6.0 features"
And I press "Create folder"
Then I should be on the page of the "Rails 6.0 features" folder
And I should see "Rails 6.0 features" within ".breadcrumbs"
@javascript
Scenario: Mislav renames a folder
Given there is a folder called "Ruby 1.9 features" in a current project
When I go to the uploads page of the "Ruby Rockstars" project
And I click upload list item for "Ruby 1.9 features" folder
And I follow "Rename"
And I fill in "folder_name" with "Ruby 2.0 features"
And I press "Save"
Then I should see "Ruby 2.0 features" within ".upload"
Scenario: Mislav browses a tree and uploads a file
Given a current project has nested folders
| name |
| Director |
| Tarantino |
| Pulp Fiction |
| Mia Wallace |
When I go to the uploads page of the "Ruby Rockstars" project
And I enter "Director" folder
Then I should be on the page of the "Director" folder
And I enter "Tarantino" folder
Then I should be on the page of the "Tarantino" folder
And I enter "Pulp Fiction" folder
Then I should be on the page of the "Pulp Fiction" folder
And I follow "Parent folder"
Then I should be on the page of the "Tarantino" folder
And I follow "Director" within ".breadcrumbs"
Then I should be on the page of the "Director" folder
When I follow "Upload a File"
And I attach the file "features/support/sample_files/dragon.jpg" to "upload_asset"
And I press "Upload file"
Then I should see "dragon.jpg" within ".file_upload"