mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 08:57:24 +08:00
20 lines
335 B
Ruby
20 lines
335 B
Ruby
![]() |
# frozen_string_literal: true
|
||
|
|
||
|
module PageObjects
|
||
|
module Pages
|
||
|
class AdminBase < Base
|
||
|
def click_tab(tab_name)
|
||
|
header.tab(tab_name).click
|
||
|
end
|
||
|
|
||
|
delegate(:has_tabs?, :has_active_tab?, to: :header)
|
||
|
|
||
|
private
|
||
|
|
||
|
def header
|
||
|
@header ||= Components::DPageHeader.new
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|