0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-07 13:19:19 +08:00
discourse/spec/system/page_objects/pages/discovery.rb

27 lines
633 B
Ruby
Vendored

# 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