BigW Consortium Gitlab

artifacts.feature 2.63 KB
Newer Older
1
Feature: Project Builds Artifacts
2 3 4
  Background:
    Given I sign in as a user
    And I own a project
5 6
    And project has CI enabled
    And project has a recent build
7

8 9
  Scenario: I download build artifacts
    Given recent build has artifacts available
10
    When I visit recent build details page
11 12 13 14 15 16
    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
17
    When I visit recent build details page
18 19 20 21 22 23
    And I click artifacts browse button
    Then I should see content of artifacts archive

  Scenario: I browse subdirectory of build artifacts
    Given recent build has artifacts available
    And recent build has artifacts metadata available
24
    When I visit recent build details page
25 26 27
    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
28 29 30 31 32

  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
33
    When I visit recent build details page
34 35 36 37 38 39 40 41
    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
42
    When I visit recent build details page
43 44 45
    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
46 47 48 49

  Scenario: I download a single file from build artifacts
    Given recent build has artifacts available
    And recent build has artifacts metadata available
50
    When I visit recent build details page
51
    And I click artifacts browse button
52
    And I click a link to file within build artifacts
53
    Then download of a file extracted from build artifacts should start
54 55 56 57 58 59 60 61 62

  @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