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

metrics_and_profiling.rb « settings « admin « page « qa « qa - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 7224e51e110e3ed0a9804d37c29498c9458c7cd2 (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
25
26
27
28
29
30
# frozen_string_literal: true

module QA
  module Page
    module Admin
      module Settings
        class MetricsAndProfiling < Page::Base
          include QA::Page::Settings::Common

          view 'app/views/admin/application_settings/metrics_and_profiling.html.haml' do
            element :performance_bar_settings_content
            element :usage_statistics_settings_content
          end

          def expand_performance_bar(&block)
            expand_content(:performance_bar_settings_content) do
              Component::PerformanceBar.perform(&block)
            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