Commit c6dbc4d6 authored by Simon Knox's avatar Simon Knox

Merge branch 'am-e2e-test-service-ping-config-enabled' into 'master'

Add qa test for Service ping default config

See merge request gitlab-org/gitlab!74523
parents 9a668627 e2a5a94b
# frozen_string_literal: true
module QA
module Page
module Admin
module Settings
module Component
class UsageStatistics < Page::Base
view 'app/views/admin/application_settings/_usage.html.haml' do
element :enable_usage_data_checkbox
end
def has_disabled_usage_data_checkbox?
has_element?(:enable_usage_data_checkbox, disabled: true)
end
end
end
end
end
end
end
...@@ -9,6 +9,7 @@ module QA ...@@ -9,6 +9,7 @@ module QA
view 'app/views/admin/application_settings/metrics_and_profiling.html.haml' do view 'app/views/admin/application_settings/metrics_and_profiling.html.haml' do
element :performance_bar_settings_content element :performance_bar_settings_content
element :usage_statistics_settings_content
end end
def expand_performance_bar(&block) def expand_performance_bar(&block)
...@@ -16,6 +17,12 @@ module QA ...@@ -16,6 +17,12 @@ module QA
Component::PerformanceBar.perform(&block) Component::PerformanceBar.perform(&block)
end end
end end
def expand_usage_statistics(&block)
expand_content(:usage_statistics_settings_content) do
Component::UsageStatistics.perform(&block)
end
end
end end
end end
end end
......
# frozen_string_literal: true
module QA
RSpec.describe 'Service ping default enabled' do
context 'When using default enabled from gitlab.yml config', :requires_admin do
before do
Flow::Login.sign_in_as_admin
Page::Main::Menu.perform(&:go_to_admin_area)
Page::Admin::Menu.perform(&:go_to_metrics_and_profiling_settings)
end
it 'has service ping toggle enabled' do
Page::Admin::Settings::MetricsAndProfiling.perform do |setting|
setting.expand_usage_statistics do |page|
expect(page).not_to have_disabled_usage_data_checkbox
end
end
end
end
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment