blob: db71256b294f9f09ef515896fd9fdb46deb370a2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
# frozen_string_literal: true
require 'spec_helper'
RSpec.describe 'User activates Prometheus', feature_category: :integrations do
include_context 'project integration activation'
before do
stub_feature_flags(remove_monitor_metrics: false)
stub_request(:get, /.*prometheus.example.com.*/)
end
it 'saves and activates integration', :js do
visit_project_integration('Prometheus')
check('Active')
click_button('Save changes')
expect(page).to have_content('Prometheus settings saved and active.')
end
end
|