debian-mirror-gitlab/spec/features/admin/services/admin_activates_prometheus_spec.rb

24 lines
498 B
Ruby
Raw Normal View History

2019-10-12 21:52:04 +05:30
# frozen_string_literal: true
2018-03-17 18:26:18 +05:30
require 'spec_helper'
2020-06-23 00:09:42 +05:30
RSpec.describe 'Admin activates Prometheus', :js do
2018-03-17 18:26:18 +05:30
let(:admin) { create(:user, :admin) }
before do
sign_in(admin)
visit(admin_application_settings_services_path)
click_link('Prometheus')
end
it 'activates service' do
check('Active')
fill_in('API URL', with: 'http://prometheus.example.com')
2020-11-24 15:15:51 +05:30
click_button('Save changes')
2018-03-17 18:26:18 +05:30
expect(page).to have_content('Application settings saved successfully')
end
end