From e5d2a81b86d59c50ff5c488da017a9b56d0442f0 Mon Sep 17 00:00:00 2001 From: Grzegorz Bizon Date: Tue, 5 Jan 2016 12:46:42 +0000 Subject: Add basic spinach tests for project builds --- features/project/builds.feature | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 features/project/builds.feature (limited to 'features/project') diff --git a/features/project/builds.feature b/features/project/builds.feature new file mode 100644 index 00000000000..3f005b5133c --- /dev/null +++ b/features/project/builds.feature @@ -0,0 +1,11 @@ +Feature: Project Builds + Background: + Given I sign in as a user + And I own a project + And CI is enabled + And I have recent build for my project + + Scenario: I browse build summary page + When I visit recent build summary page + Then I see summary for build + And I see build trace -- cgit v1.2.1 From 09c82c6fdc494de0d64cb58b4b61a86104ff1131 Mon Sep 17 00:00:00 2001 From: Grzegorz Bizon Date: Thu, 7 Jan 2016 10:33:07 +0100 Subject: Add spinach feature specs for build artifacts browser --- features/project/builds.feature | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'features/project') diff --git a/features/project/builds.feature b/features/project/builds.feature index 3f005b5133c..14c9b6c9a35 100644 --- a/features/project/builds.feature +++ b/features/project/builds.feature @@ -9,3 +9,24 @@ Feature: Project Builds When I visit recent build summary page Then I see summary for build And I see build trace + + Scenario: I download build artifacts + Given recent build has artifacts available + When I visit recent build summary page + 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 + When I visit recent build summary page + 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 + When I visit recent build summary page + 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 -- cgit v1.2.1 From cde455c4e63c8c0e798562a29a5df5a7893eec95 Mon Sep 17 00:00:00 2001 From: Grzegorz Bizon Date: Tue, 12 Jan 2016 11:41:24 +0100 Subject: Add encoding feature tests for builds artifacts browser --- features/project/builds.feature | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'features/project') diff --git a/features/project/builds.feature b/features/project/builds.feature index 14c9b6c9a35..e7626222f7f 100644 --- a/features/project/builds.feature +++ b/features/project/builds.feature @@ -30,3 +30,21 @@ Feature: Project Builds 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 + + 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 + When I visit recent build summary page + 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 + When I visit recent build summary page + 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 -- cgit v1.2.1 From 6d7a77074fcdd57ccdc33e3cb39146da4afdc0f4 Mon Sep 17 00:00:00 2001 From: Grzegorz Bizon Date: Tue, 12 Jan 2016 15:16:16 +0100 Subject: Add specs for endpoint meant to be accelerated by workhorse --- features/project/builds.feature | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'features/project') diff --git a/features/project/builds.feature b/features/project/builds.feature index e7626222f7f..c00b0a7ae07 100644 --- a/features/project/builds.feature +++ b/features/project/builds.feature @@ -48,3 +48,11 @@ Feature: Project Builds 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 + + Scenario: I download a single file from build artifacts + Given recent build has artifacts available + And recent build has artifacts metadata available + When I visit recent build summary page + And I click artifacts browse button + And I click download button for a file within build artifacts + Then download of a file extracted from build artifacts should start -- cgit v1.2.1