mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 04:03:57 -06:00
bf582290ba
Regressed in 8b80132f88
due to a lack of
tests.
25 lines
532 B
Ruby
25 lines
532 B
Ruby
# frozen_string_literal: true
|
|
|
|
module PageObjects
|
|
module Modals
|
|
class DismissNew < PageObjects::Modals::Base
|
|
def has_dismiss_topics_checked?
|
|
find(".dismiss-topics label").has_checked_field?
|
|
end
|
|
|
|
def has_dismiss_posts_checked?
|
|
find(".dismiss-posts label").has_checked_field?
|
|
end
|
|
|
|
def has_untrack_unchecked?
|
|
find(".untrack label").has_no_checked_field?
|
|
end
|
|
|
|
def click_dismiss
|
|
click_button("dismiss-read-confirm")
|
|
self
|
|
end
|
|
end
|
|
end
|
|
end
|