debian-mirror-gitlab/spec/features/groups/integrations/group_integrations_spec.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
822 B
Ruby
Raw Normal View History

2022-04-04 11:22:00 +05:30
# frozen_string_literal: true
require 'spec_helper'
RSpec.describe 'Group integrations', :js do
include_context 'group integration activation'
2023-07-09 08:55:56 +05:30
before do
stub_feature_flags(remove_monitor_metrics: false)
end
2022-04-04 11:22:00 +05:30
it_behaves_like 'integration settings form' do
let(:integrations) { Integration.find_or_initialize_all_non_project_specific(Integration.for_group(group)) }
def navigate_to_integration(integration)
visit_group_integration(integration.title)
end
end
2023-07-09 08:55:56 +05:30
context 'with remove_monitor_metrics flag enabled' do
before do
stub_feature_flags(remove_monitor_metrics: true)
end
it 'returns a 404 for the prometheus edit page' do
visit edit_group_settings_integration_path(group, :prometheus)
expect(page).to have_content "Page Not Found"
end
end
2022-04-04 11:22:00 +05:30
end