discourse/spec/system/page_objects/pages
Kelv 2968fb6a5c
FIX: Render user profile trust level name for TL0 (#22740)
* Why was this change necessary?
The current logic in the user.hbs template file does not render the
trust level element for the user's info panel when the user is TL0,
because 0 is treated as falsey in the `if` conditional block.

Ref: https://meta.discourse.org/t/tl0-not-displayed-on-users-profile-pages/271779/10

* How does it address the problem?

This PR adds a predicate helper method local to the user controller that
includes an additional check which returns true if the trust_level of
the user is 0 on top of the existing logic. This allows TL0 users to
have their trust level rendered correctly in their profile's info panel.
2023-07-21 15:16:34 +08:00
..
admin_settings.rb FEATURE: Add an emoji deny list site setting (#20929) 2023-04-13 15:38:54 +08:00
base.rb DEV: Change sidebar header dropdown to use wait_for_animation (#20627) 2023-03-10 14:54:57 +10:00
category.rb DEV: Try fix category form template flaky (#22461) 2023-07-06 14:42:59 +10:00
csv_export_pm.rb DEV: make sure we don't load all data into memory when exporting chat messages (#22276) 2023-07-12 18:52:18 +04:00
discovery.rb DEV: fix tag synonyms flakey specs (#21787) 2023-05-28 15:35:55 +02:00
form_template.rb DEV: Add support for uploads to form templates (#22232) 2023-06-28 12:49:05 -07:00
review.rb DEV: Avoid waiting full Capbyara default wait timeout in system tests (#22684) 2023-07-19 14:23:43 +08:00
search.rb DEV: Speed up core system tests (#21394) 2023-05-05 07:45:53 +08:00
tag.rb DEV: fix tag synonyms flakey specs (#21787) 2023-05-28 15:35:55 +02:00
topic.rb DEV: Fix bookmark system spec flaky (#22630) 2023-07-17 15:34:11 +10:00
user_preferences_interface.rb DEV: Fix flaky user preferences interface system test (#21800) 2023-05-29 11:56:21 +08:00
user_preferences_navigation_menu.rb FEATURE: Split navigation preference for count and behavior of sidebar links (#22203) 2023-06-22 19:04:13 +03:00
user_preferences.rb DEV: Fix flaky user preferences interface system test (#21800) 2023-05-29 11:56:21 +08:00
user_private_messages.rb FIX: Broken group messages inboxes when group name is mixed case (#22183) 2023-06-19 17:36:04 +08:00
user.rb FIX: Render user profile trust level name for TL0 (#22740) 2023-07-21 15:16:34 +08:00