diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-01-15 15:09:20 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-01-15 15:09:20 +0300 |
commit | b7bb56c7a3504e259887909a2e8515c5896a173e (patch) | |
tree | 3b742e6b4a431e1614c5aa15c597fff129650406 /features | |
parent | f66f9e95bf1e67ad13de9958d16103b858b58e72 (diff) |
Expand builds namespace for feature tests in spinach
Diffstat (limited to 'features')
-rw-r--r-- | features/project/builds/artifacts.feature (renamed from features/project/builds.feature) | 7 | ||||
-rw-r--r-- | features/project/builds/summary.feature | 11 | ||||
-rw-r--r-- | features/steps/project/builds/artifacts.rb (renamed from features/steps/project/builds.rb) | 10 | ||||
-rw-r--r-- | features/steps/project/builds/summary.rb | 14 |
4 files changed, 27 insertions, 15 deletions
diff --git a/features/project/builds.feature b/features/project/builds/artifacts.feature index c00b0a7ae07..b624a0bdb58 100644 --- a/features/project/builds.feature +++ b/features/project/builds/artifacts.feature @@ -1,15 +1,10 @@ -Feature: Project Builds +Feature: Project Builds Artifacts 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 - Scenario: I download build artifacts Given recent build has artifacts available When I visit recent build summary page diff --git a/features/project/builds/summary.feature b/features/project/builds/summary.feature new file mode 100644 index 00000000000..5e938ea090e --- /dev/null +++ b/features/project/builds/summary.feature @@ -0,0 +1,11 @@ +Feature: Project Builds Summary + 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 diff --git a/features/steps/project/builds.rb b/features/steps/project/builds/artifacts.rb index 28395281077..f4f91ad1d8c 100644 --- a/features/steps/project/builds.rb +++ b/features/steps/project/builds/artifacts.rb @@ -1,17 +1,9 @@ -class Spinach::Features::ProjectBuilds < Spinach::FeatureSteps +class Spinach::Features::ProjectBuildsArtifacts < Spinach::FeatureSteps include SharedAuthentication include SharedProject include SharedBuilds include RepoHelpers - step 'I see summary for build' do - expect(page).to have_content "Build ##{@build.id}" - end - - step 'I see build trace' do - expect(page).to have_css '#build-trace' - end - step 'I click artifacts download button' do page.within('.artifacts') { click_link 'Download' } end diff --git a/features/steps/project/builds/summary.rb b/features/steps/project/builds/summary.rb new file mode 100644 index 00000000000..2439d48fbef --- /dev/null +++ b/features/steps/project/builds/summary.rb @@ -0,0 +1,14 @@ +class Spinach::Features::ProjectBuildsSummary < Spinach::FeatureSteps + include SharedAuthentication + include SharedProject + include SharedBuilds + include RepoHelpers + + step 'I see summary for build' do + expect(page).to have_content "Build ##{@build.id}" + end + + step 'I see build trace' do + expect(page).to have_css '#build-trace' + end +end |