2023-03-14 10:46:05 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module PageObjects
|
|
|
|
module Pages
|
|
|
|
class Discovery < PageObjects::Pages::Base
|
|
|
|
def topic_list
|
|
|
|
Components::TopicList.new
|
|
|
|
end
|
|
|
|
|
|
|
|
def category_drop
|
2023-05-28 15:35:55 +02:00
|
|
|
Components::SelectKit.new(".category-breadcrumb li:first-of-type .category-drop")
|
2023-03-14 10:46:05 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def subcategory_drop
|
2023-05-28 15:35:55 +02:00
|
|
|
Components::SelectKit.new(".category-breadcrumb li:nth-of-type(2) .category-drop")
|
2023-03-14 10:46:05 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def tag_drop
|
2023-05-28 15:35:55 +02:00
|
|
|
Components::SelectKit.new(".category-breadcrumb .tag-drop")
|
2023-03-14 10:46:05 +00:00
|
|
|
end
|
2023-10-16 10:51:59 +01:00
|
|
|
|
|
|
|
def nav_item(name)
|
|
|
|
find("#navigation-bar .nav-item_#{name}")
|
|
|
|
end
|
2023-03-14 10:46:05 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|