mirror of
https://github.com/discourse/discourse.git
synced 2025-05-26 08:51:52 +08:00
This reverts commit 5f0bc4557fb04928a8d38cba410d316a76f1bf8c. Through extensive internal discussion we have decided to revert this change, as it significantly impacted moderation flow for some Discourse site moderators, especially around "something else" flags. We need to re-approach how flags are counted holistically, so to that end this change is being reverted.
This commit is contained in:
@ -52,28 +52,6 @@ module PageObjects
|
||||
self
|
||||
end
|
||||
|
||||
def has_reviewable_flagged_posts_path?(user)
|
||||
params = {
|
||||
status: "approved",
|
||||
sort_order: "score",
|
||||
type: "ReviewableFlaggedPost",
|
||||
username: user.username,
|
||||
}
|
||||
page.has_current_path?("/review?#{params.to_query}")
|
||||
end
|
||||
|
||||
def staff_info_flagged_posts_counter
|
||||
page.find(".staff-counters .flagged-posts")
|
||||
end
|
||||
|
||||
def has_staff_info_flagged_posts_count?(count:)
|
||||
staff_info_flagged_posts_counter.text.to_i == count
|
||||
end
|
||||
|
||||
def has_no_staff_info_flagged_posts_counter?
|
||||
page.has_no_css?(".staff-counters .flagged-posts")
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def primary_navigation_selector(name)
|
||||
|
Reference in New Issue
Block a user