discourse/spec/system/page_objects/pages
Osama Sayegh c6bbbd0608
FIX: Set the correct state of the dark mode checkbox user preference (#31214)
This commit fixes a bug in the "Dark Mode" checkbox in the interface user
preferences where the checkbox state doesn't appear in the disabled
state if the user disables dark mode.

This happens because when rendering the checkbox, we check the relevant
user options field within the controller's `init` method, but at that
point in the controller's life cycle, the `user_option` object isn't
available. What we should do instead is move this check to the route's
`setupController` method where the `user_option` object is available and
we can set the correct state on the controller.

https://meta.discourse.org/t/-/349976 (private topic)
2025-02-06 20:31:37 +03:00
..
about.rb DEV: Fix the build on github (#28831) 2024-09-11 07:52:23 +08:00
activate_account.rb UX: Add progress bar to the registration flow (#27694) 2024-08-28 08:43:39 -03:00
admin_about_config_area.rb DEV: Wiring for the admin about config page (#27492) 2024-07-01 05:40:37 +03:00
admin_api_keys.rb DEV: Move admin page objects to /pages directory (#30812) 2025-01-16 11:18:36 +08:00
admin_backups.rb DEV: Add base admin page page object (#30814) 2025-01-16 12:52:41 +08:00
admin_badges.rb DEV: Move admin page objects to /pages directory (#30812) 2025-01-16 11:18:36 +08:00
admin_badges_groupings.rb DEV: Move admin page objects to /pages directory (#30812) 2025-01-16 11:18:36 +08:00
admin_base.rb DEV: Add base admin page page object (#30814) 2025-01-16 12:52:41 +08:00
admin_customize_themes.rb FEATURE: direct link to components for admin sidebar (#26644) 2024-04-17 11:45:59 +10:00
admin_dashboard.rb FEATURE: Add ability to dismiss admin notices (#28916) 2024-09-17 14:43:34 +08:00
admin_embedding.rb DEV: Add base admin page page object (#30814) 2025-01-16 12:52:41 +08:00
admin_embedding_host_form.rb UX: admins embedding page follows admin ux guideline (#30122) 2025-01-06 13:01:08 +11:00
admin_embedding_posts_and_topics.rb UX: admins embedding page follows admin ux guideline (#30122) 2025-01-06 13:01:08 +11:00
admin_emojis.rb DEV: Add base admin page page object (#30814) 2025-01-16 12:52:41 +08:00
admin_flag_form.rb FIX: flaky flags system spec (#29039) 2024-10-08 08:38:42 +11:00
admin_flags.rb DEV: Add base admin page page object (#30814) 2025-01-16 12:52:41 +08:00
admin_new_features.rb FIX: Calculate experiment_enabled on server for "What's new?" (#30599) 2025-01-07 11:27:24 +10:00
admin_objects_theme_setting_editor.rb UX: Improve validation error message when saving theme objects setting (#26455) 2024-04-02 11:55:51 +08:00
admin_permalink_form.rb UX: redesign admin permalinks page (#29634) 2024-11-14 10:03:58 +11:00
admin_permalinks.rb DEV: Add base admin page page object (#30814) 2025-01-16 12:52:41 +08:00
admin_plugins_list.rb DEV: Introduce <DPageHeader /> and <DPageSubheader /> components (#30146) 2024-12-18 08:13:39 +10:00
admin_site_settings.rb DEV: Fix admin confirmation flaky spec (#29456) 2024-10-30 04:59:51 +10:00
admin_site_texts.rb FIX: correctly display category name in replace text modal (#29612) 2024-11-06 13:39:52 +11:00
admin_staff_action_logs.rb FIX: filterable staff logs for flags (#29695) 2024-11-12 11:23:18 +11:00
admin_user.rb FIX: Don't show silence button on staff users and display similar users (#28423) 2024-08-20 15:27:29 +03:00
admin_user_badges.rb DEV: Move admin page objects to /pages directory (#30812) 2025-01-16 11:18:36 +08:00
admin_user_fields.rb DEV: Move admin config pages out of /customize/ sub-route (#30511) 2025-01-02 09:13:11 +10:00
admin_users.rb DEV: Add base admin page page object (#30814) 2025-01-16 12:52:41 +08:00
admin_watched_words.rb UX: limit "outputs HTML" watched word option to replacements (#28063) 2024-07-25 16:25:56 -03:00
admin_web_hook_events.rb FEATURE: Add Filter for Webhook Events by Status (#27332) 2024-06-07 10:26:00 -05:00
admin_webhooks.rb Admin webhooks UI guidelines (#30764) 2025-01-16 10:22:18 +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 UX: Add group link to category permission row (#28560) 2024-08-28 16:11:16 +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: Add system specs for dismiss new on tag routes (#23936) 2023-10-16 10:51:59 +01:00
form_template.rb FIX: Customize form template view modal footer buttons (#25804) 2024-02-21 22:20:56 -08:00
group.rb FIX: deleting a groups was throwing an error (#26623) 2024-04-15 08:35:50 +02:00
group_activity_posts.rb DEV: Reusable post-list component (#30312) 2024-12-19 09:20:25 -08:00
header.rb FIX: In topic search for glimmer header (#26040) 2024-03-07 11:14:43 -07:00
invite_form.rb DEV: Convert account activation pages to use Ember (#28206) 2024-08-12 18:02:00 -03:00
login.rb UX: Add option to use fullpages for login and signup (#29034) 2024-10-15 11:10:54 -03:00
posts_page.rb UX: Improvements to posts route (#30968) 2025-01-23 19:04:43 -08:00
review.rb FEATURE: Gracefully handle unhandled reviewables (#31118) 2025-02-05 14:38:45 +11:00
search.rb DEV: adds logo page component (#28276) 2024-08-08 13:52:48 +02:00
signup.rb FIX: Name field should appear in the signup form for login-required sites (#30634) 2025-01-08 03:49:34 +03:00
tag.rb UX: Fix tag revert rename 404 error (#31049) 2025-01-30 10:06:55 +10:00
topic.rb FEATURE: setting allowing tl0/anonymous flag illegal content (#30785) 2025-01-17 08:57:44 +11:00
user.rb DEV: Plugin-api methods for user-notifications route customizations (#24873) 2023-12-13 15:15:42 -06:00
user_activity_bookmarks.rb FIX: correctly filter user bookmarks (#28612) 2024-08-28 15:39:07 -04:00
user_invited_pending.rb UX: Simplify invite modal (#28974) 2024-10-21 13:11:43 +03:00
user_notifications.rb DEV: Plugin-api methods for user-notifications route customizations (#24873) 2023-12-13 15:15:42 -06:00
user_preferences.rb DEV: Fix flaky "Changing email" system tests (#25805) 2024-02-22 10:46:37 +08:00
user_preferences_account.rb DEV: upgrade avatar-selector modal to glimmer component (#24192) 2023-11-07 21:02:19 +08:00
user_preferences_interface.rb FIX: Set the correct state of the dark mode checkbox user preference (#31214) 2025-02-06 20:31:37 +03: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_profile.rb UX: move "hide profile" checkbox to profile tab (#31095) 2025-01-31 17:04:20 +01:00
user_preferences_security.rb DEV: Standardize session confirmation prompt (#24212) 2023-11-07 11:26:10 -05: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_reset_password.rb FIX: User can't reset password with backup codes when only security key is enabled (#27368) 2024-06-06 14:30:42 +08:00
wizard.rb FEATURE: Improve wizard font selection and set Inter as default font for new sites (#30974) 2025-01-27 11:29:55 +10:00