From d9629a0cf03b80c8074b2ffa003d541193ca7097 Mon Sep 17 00:00:00 2001 From: Grzegorz Bizon Date: Sun, 17 Jan 2016 16:57:42 +0100 Subject: Add specs for CI Lint button exposed on a builds page --- features/steps/project/builds/summary.rb | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'features/steps/project') 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 -- cgit v1.2.1