mirror of
https://github.com/discourse/discourse.git
synced 2025-06-05 14:07:30 +08:00
UX: move "hide profile" checkbox to profile tab (#31095)
This moves the "hide my public profile" checkbox from the /my/preferences/interface > other section into the top of the /my/preferences/profile section. Internal ref - t/146570
This commit is contained in:
@ -8,6 +8,14 @@ module PageObjects
|
||||
self
|
||||
end
|
||||
|
||||
def hide_profile
|
||||
find(".user-hide-profile .pref-hide-profile").click
|
||||
end
|
||||
|
||||
def has_hidden_profile?
|
||||
has_css?(".user-hide-profile .pref-hide-profile input[type=checkbox]:checked")
|
||||
end
|
||||
|
||||
def expand_profile_details
|
||||
find(".user-main .details .controls .btn-default").click
|
||||
end
|
||||
|
Reference in New Issue
Block a user