summaryrefslogtreecommitdiff
path: root/qa/qa/page/admin/settings/metrics_and_profiling.rb
blob: 41fad942fc41cc55a867e67051d650f8cb870dda (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# 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
          end

          def expand_performance_bar(&block)
            expand_content(:performance_bar_settings_content) do
              Component::PerformanceBar.perform(&block)
            end
          end
        end
      end
    end
  end
end