mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-03 13:46:26 +08:00
Currently both boxes are always checked, even if you're filtered to new topics or new posts. You must have the site setting `Experimental new new view groups` set to your user's group to see this mode.  This allows both options to appear, but only selects the current filter:  Turns out this was already implemented, but `subset` was always undefined. This fixes the arg and adds a couple new specs to cover it. see /t/155039 for reference
36 lines
818 B
Ruby
36 lines
818 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_dismiss_topics_unchecked?
|
|
find(".dismiss-topics label").has_no_checked_field?
|
|
end
|
|
|
|
def has_dismiss_posts_unchecked?
|
|
find(".dismiss-posts label").has_no_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
|
|
|
|
def closed?
|
|
page.has_no_css?(".d-modal")
|
|
end
|
|
end
|
|
end
|
|
end
|