Commit ecb89438 authored by Mike Greiling's avatar Mike Greiling

add tests for build page warning

parent 04ecce95
......@@ -264,6 +264,17 @@ feature 'Builds', :feature do
end
end
end
context 'build project is over shared runners limit' do
let(:group) { create(:group, :with_used_build_minutes_limit) }
let(:project) { create(:project, namespace: group, shared_runners_enabled: true) }
it 'displays a warning message' do
visit namespace_project_build_path(project.namespace, project, build)
expect(page).to have_content('You have used all your shared runner minutes')
end
end
end
describe "POST /:project/builds/:id/cancel" do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment