summaryrefslogtreecommitdiff
path: root/qa/qa/mobile/page/profile/menu.rb
blob: 34c53a95e0388761f6f078afc30079993525cdf0 (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
# frozen_string_literal: true

module QA
  module Mobile
    module Page
      module Profile
        module Menu
          extend QA::Page::PageConcern

          def self.prepended(base)
            super

            base.class_eval do
              prepend QA::Mobile::Page::Main::Menu
            end
          end

          def within_sidebar
            open_mobile_nav_sidebar
            super
          end
        end
      end
    end
  end
end