mirror of
https://github.com/discourse/discourse.git
synced 2024-12-26 05:03:45 +08:00
28 lines
633 B
Ruby
28 lines
633 B
Ruby
# frozen_string_literal: true
|
|
|
|
module PageObjects
|
|
module Pages
|
|
class Discovery < PageObjects::Pages::Base
|
|
def topic_list
|
|
Components::TopicList.new
|
|
end
|
|
|
|
def category_drop
|
|
Components::SelectKit.new(".category-breadcrumb li:first-of-type .category-drop")
|
|
end
|
|
|
|
def subcategory_drop
|
|
Components::SelectKit.new(".category-breadcrumb li:nth-of-type(2) .category-drop")
|
|
end
|
|
|
|
def tag_drop
|
|
Components::SelectKit.new(".category-breadcrumb .tag-drop")
|
|
end
|
|
|
|
def nav_item(name)
|
|
find("#navigation-bar .nav-item_#{name}")
|
|
end
|
|
end
|
|
end
|
|
end
|