2016-01-15 12:09:20 +00:00
|
|
|
class Spinach::Features::ProjectBuildsSummary < Spinach::FeatureSteps
|
|
|
|
include SharedAuthentication
|
|
|
|
include SharedProject
|
|
|
|
include SharedBuilds
|
|
|
|
include RepoHelpers
|
|
|
|
|
2016-01-18 07:12:31 +00:00
|
|
|
step 'I see button to CI Lint' do
|
2016-02-03 21:48:21 +00:00
|
|
|
page.within('.nav-controls') do
|
2016-01-18 07:12:31 +00:00
|
|
|
ci_lint_tool_link = page.find_link('CI Lint')
|
2016-01-17 15:57:42 +00:00
|
|
|
expect(ci_lint_tool_link[:href]).to eq ci_lint_path
|
|
|
|
end
|
|
|
|
end
|
2016-02-01 13:30:05 +00:00
|
|
|
|
|
|
|
step 'I click erase build button' do
|
|
|
|
click_link 'Erase'
|
|
|
|
end
|
|
|
|
|
|
|
|
step 'recent build has been erased' do
|
|
|
|
expect(@build.artifacts_file.exists?).to be_falsy
|
|
|
|
expect(@build.artifacts_metadata.exists?).to be_falsy
|
2016-02-02 12:57:14 +00:00
|
|
|
expect(@build.trace).to be_empty
|
2016-02-01 13:30:05 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
step 'recent build summary does not have artifacts widget' do
|
|
|
|
expect(page).to have_no_css('.artifacts')
|
|
|
|
end
|
2016-02-02 11:23:10 +00:00
|
|
|
|
|
|
|
step 'recent build summary contains information saying that build has been erased' do
|
|
|
|
expect(page).to have_css('.erased')
|
|
|
|
end
|
2016-01-15 12:09:20 +00:00
|
|
|
end
|