2016-01-15 07:09:20 -05:00
|
|
|
class Spinach::Features::ProjectBuildsSummary < Spinach::FeatureSteps
|
|
|
|
include SharedAuthentication
|
|
|
|
include SharedProject
|
|
|
|
include SharedBuilds
|
|
|
|
include RepoHelpers
|
|
|
|
|
2016-01-17 10:57:42 -05:00
|
|
|
step 'I see details of a build' do
|
2016-01-15 07:09:20 -05:00
|
|
|
expect(page).to have_content "Build ##{@build.id}"
|
|
|
|
end
|
|
|
|
|
|
|
|
step 'I see build trace' do
|
|
|
|
expect(page).to have_css '#build-trace'
|
|
|
|
end
|
2016-01-17 10:57:42 -05:00
|
|
|
|
|
|
|
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
|
2016-01-15 07:09:20 -05:00
|
|
|
end
|