Natalie Tay 0ee050e208
DEV: Add helpers for system testing in plugins (#19421)
Add helpers for system testing in plugins
2022-12-16 18:25:31 +08:00

16 lines
303 B
Ruby

# frozen_string_literal: true
module PageObjects
module Components
class TopicList < PageObjects::Components::Base
def topic_list
".topic-list-body"
end
def visit_topic_with_title(title)
find(".topic-list-body a", text: title).click
end
end
end
end