discourse/spec/system/page_objects/components/topic_view.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
493 B
Ruby
Raw Normal View History

# frozen_string_literal: true
module PageObjects
module Components
class TopicView < PageObjects::Components::Base
def has_read_post?(post)
page.has_css?(
"#post_#{post.post_number} .read-state.read",
visible: false,
wait: Capybara.default_max_wait_time * 2,
)
end
def has_tracking_status?(name)
find("#topic-footer-buttons .notifications-tracking-trigger[data-level-name='#{name}']")
end
end
end
end