2016-01-15 07:09:20 -05:00
|
|
|
Feature: Project Builds Artifacts
|
2016-01-05 07:46:42 -05:00
|
|
|
Background:
|
|
|
|
Given I sign in as a user
|
|
|
|
And I own a project
|
2016-01-15 07:56:43 -05:00
|
|
|
And project has CI enabled
|
|
|
|
And project has a recent build
|
2016-01-05 07:46:42 -05:00
|
|
|
|
2016-01-07 04:33:07 -05:00
|
|
|
Scenario: I download build artifacts
|
|
|
|
Given recent build has artifacts available
|
2016-01-17 12:13:45 -05:00
|
|
|
When I visit recent build details page
|
2016-01-07 04:33:07 -05:00
|
|
|
And I click artifacts download button
|
|
|
|
Then download of build artifacts archive starts
|
|
|
|
|
|
|
|
Scenario: I browse build artifacts
|
|
|
|
Given recent build has artifacts available
|
|
|
|
And recent build has artifacts metadata available
|
2016-01-17 12:13:45 -05:00
|
|
|
When I visit recent build details page
|
2016-01-07 04:33:07 -05:00
|
|
|
And I click artifacts browse button
|
|
|
|
Then I should see content of artifacts archive
|
2017-05-02 18:47:28 -04:00
|
|
|
And I should see the build header
|
2016-01-07 04:33:07 -05:00
|
|
|
|
|
|
|
Scenario: I browse subdirectory of build artifacts
|
|
|
|
Given recent build has artifacts available
|
|
|
|
And recent build has artifacts metadata available
|
2016-01-17 12:13:45 -05:00
|
|
|
When I visit recent build details page
|
2016-01-07 04:33:07 -05:00
|
|
|
And I click artifacts browse button
|
|
|
|
And I click link to subdirectory within build artifacts
|
|
|
|
Then I should see content of subdirectory within artifacts archive
|
2017-05-02 18:47:28 -04:00
|
|
|
And I should see the directory name in the breadcrumb
|
2016-01-12 05:41:24 -05:00
|
|
|
|
|
|
|
Scenario: I browse directory with UTF-8 characters in name
|
|
|
|
Given recent build has artifacts available
|
|
|
|
And recent build has artifacts metadata available
|
|
|
|
And recent build artifacts contain directory with UTF-8 characters
|
2016-01-17 12:13:45 -05:00
|
|
|
When I visit recent build details page
|
2016-01-12 05:41:24 -05:00
|
|
|
And I click artifacts browse button
|
|
|
|
And I navigate to directory with UTF-8 characters in name
|
|
|
|
Then I should see content of directory with UTF-8 characters in name
|
|
|
|
|
|
|
|
Scenario: I try to browse directory with invalid UTF-8 characters in name
|
|
|
|
Given recent build has artifacts available
|
|
|
|
And recent build has artifacts metadata available
|
|
|
|
And recent build artifacts contain directory with invalid UTF-8 characters
|
2016-01-17 12:13:45 -05:00
|
|
|
When I visit recent build details page
|
2016-01-12 05:41:24 -05:00
|
|
|
And I click artifacts browse button
|
|
|
|
And I navigate to parent directory of directory with invalid name
|
|
|
|
Then I should not see directory with invalid name on the list
|
2016-01-12 09:16:16 -05:00
|
|
|
|
2017-05-02 18:42:37 -04:00
|
|
|
@javascript
|
2016-01-12 09:16:16 -05:00
|
|
|
Scenario: I download a single file from build artifacts
|
|
|
|
Given recent build has artifacts available
|
|
|
|
And recent build has artifacts metadata available
|
2016-01-17 12:13:45 -05:00
|
|
|
When I visit recent build details page
|
2016-01-12 09:16:16 -05:00
|
|
|
And I click artifacts browse button
|
2016-01-18 04:18:16 -05:00
|
|
|
And I click a link to file within build artifacts
|
2017-05-02 18:42:37 -04:00
|
|
|
Then I see a download link
|
2016-01-22 05:42:29 -05:00
|
|
|
|
|
|
|
@javascript
|
|
|
|
Scenario: I click on a row in an artifacts table
|
|
|
|
Given recent build has artifacts available
|
|
|
|
And recent build has artifacts metadata available
|
|
|
|
When I visit recent build details page
|
|
|
|
And I click artifacts browse button
|
|
|
|
And I click a first row within build artifacts table
|
|
|
|
Then page with a coresponding path is loading
|