2022-04-04 11:22:00 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'spec_helper'
|
|
|
|
|
2023-03-04 22:38:38 +05:30
|
|
|
RSpec.describe 'Project integrations', :js, feature_category: :integrations do
|
2022-04-04 11:22:00 +05:30
|
|
|
include_context 'project integration activation'
|
|
|
|
|
|
|
|
it_behaves_like 'integration settings form' do
|
|
|
|
let(:integrations) { project.find_or_initialize_integrations }
|
|
|
|
|
|
|
|
def navigate_to_integration(integration)
|
|
|
|
visit_project_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_project_settings_integration_path(project, :prometheus)
|
|
|
|
|
|
|
|
expect(page).to have_content "Page Not Found"
|
|
|
|
end
|
|
|
|
end
|
2022-04-04 11:22:00 +05:30
|
|
|
end
|