mirror of
https://github.com/discourse/discourse.git
synced 2024-12-30 09:53:43 +08:00
b061631c18
Bug introduced when dismiss modal was moved to new component-based API - https://github.com/discourse/discourse/pull/22262 We need to track `dismissTopics` property to send correct request to server. Meta: https://meta.discourse.org/t/dismiss-all-unread/280948
24 lines
600 B
Ruby
24 lines
600 B
Ruby
# 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)
|
|
select_kit =
|
|
PageObjects::Components::SelectKit.new(
|
|
"#topic-footer-buttons .topic-notifications-options",
|
|
)
|
|
expect(select_kit).to have_selected_name(name)
|
|
end
|
|
end
|
|
end
|
|
end
|