debian-mirror-gitlab/spec/features/projects/services/user_activates_prometheus_spec.rb

23 lines
595 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'
describe 'User activates Prometheus' do
2020-04-22 19:07:51 +05:30
include_context 'project service activation'
2018-03-17 18:26:18 +05:30
before do
2020-04-22 19:07:51 +05:30
stub_request(:get, /.*prometheus.example.com.*/)
2018-03-17 18:26:18 +05:30
end
2020-04-22 19:07:51 +05:30
it 'does not activate service and informs about deprecation', :js do
visit_project_integration('Prometheus')
2018-03-17 18:26:18 +05:30
check('Active')
fill_in('API URL', with: 'http://prometheus.example.com')
2020-04-22 19:07:51 +05:30
2018-03-17 18:26:18 +05:30
click_button('Save changes')
2020-03-13 15:44:24 +05:30
expect(page).not_to have_content('Prometheus activated.')
expect(page).to have_content('Fields on this page has been deprecated.')
2018-03-17 18:26:18 +05:30
end
end