diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-01-17 18:57:42 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-01-17 18:57:42 +0300 |
commit | d9629a0cf03b80c8074b2ffa003d541193ca7097 (patch) | |
tree | 00efab91d3475c5f591ee50763c79dc83037c996 /features/steps/project/builds | |
parent | 59ffe978fd5e89b55c737a030314a0bc3fdb85bd (diff) |
Add specs for CI Lint button exposed on a builds page
Diffstat (limited to 'features/steps/project/builds')
-rw-r--r-- | features/steps/project/builds/summary.rb | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/features/steps/project/builds/summary.rb b/features/steps/project/builds/summary.rb index 2439d48fbef..67986b958ec 100644 --- a/features/steps/project/builds/summary.rb +++ b/features/steps/project/builds/summary.rb @@ -4,11 +4,18 @@ class Spinach::Features::ProjectBuildsSummary < Spinach::FeatureSteps include SharedBuilds include RepoHelpers - step 'I see summary for build' do + step 'I see details of a 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 see button to CI Lint Tool' do + page.within('.controls') do + ci_lint_tool_link = page.find_link('CI Lint Tool') + expect(ci_lint_tool_link[:href]).to eq ci_lint_path + end + end end |