Welcome to mirror list, hosted at ThFree Co, Russian Federation.

admin_activates_prometheus_spec.rb « services « admin « features « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a225de365c8e1259a4ee2c238a16f71caa121bf6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe 'Admin activates Prometheus', :js do
  let(:admin) { create(:user, :admin) }

  before do
    sign_in(admin)
    gitlab_enable_admin_mode_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')
    click_button('Save changes')

    expect(page).to have_content('Application settings saved successfully')
  end
end