Commit be24f5d5 authored by Filipa Lacerda's avatar Filipa Lacerda

Adds `:js` flag in used quota specs

parent 597f850c
...@@ -13,13 +13,14 @@ describe 'Jobs', :clean_gitlab_redis_shared_state do ...@@ -13,13 +13,14 @@ describe 'Jobs', :clean_gitlab_redis_shared_state do
sign_in(user) sign_in(user)
end end
describe "GET /:project/jobs/:id" do describe "GET /:project/jobs/:id", :js do
context 'job project is over shared runners limit' do context 'job project is over shared runners limit' do
let(:group) { create(:group, :with_used_build_minutes_limit) } let(:group) { create(:group, :with_used_build_minutes_limit) }
let(:project) { create(:project, :repository, namespace: group, shared_runners_enabled: true) } let(:project) { create(:project, :repository, namespace: group, shared_runners_enabled: true) }
it 'displays a warning message' do it 'displays a warning message' do
visit project_job_path(project, job) visit project_job_path(project, job)
wait_for_requests
expect(page).to have_content('You have used all your shared Runners pipeline minutes.') expect(page).to have_content('You have used all your shared Runners pipeline minutes.')
end end
......
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