summaryrefslogtreecommitdiff
path: root/qa/qa/page/admin/menu.rb
blob: b01a4e10f93fd183f7a9f42587382055c6f3bf12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
module QA
  module Page
    module Admin
      class Menu < Page::Base
        def go_to_license
          within_middle_menu { click_link 'License' }
        end

        private

        def within_middle_menu
          page.within('.nav-control') do
            yield
          end
        end
      end
    end
  end
end