mirror of
https://github.com/discourse/discourse.git
synced 2025-01-11 04:00:11 +08:00
20 lines
382 B
Ruby
20 lines
382 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
module PageObjects
|
||
|
module Components
|
||
|
class DPageHeader < PageObjects::Pages::Base
|
||
|
def has_tabs?(names)
|
||
|
expect(page.all(".d-nav-submenu__tabs a").map(&:text)).to eq(names)
|
||
|
end
|
||
|
|
||
|
def visible?
|
||
|
has_css?(".d-page-header")
|
||
|
end
|
||
|
|
||
|
def hidden?
|
||
|
has_no_css?(".d-page-header")
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|