discourse/spec/fabricators
Blake Erickson ed13ae7787
DEV: Fix specs for directory items controller (#30160)
The directory items controller specs that have a search param were not
matching how things worked in production. In a non-test environment the
UserSearch class depends on the `user_search_data` table being
populated, so the tests I corrected now use this table as well to match
reality.

Also added a new test to match the 20 user limit for search results that
currently exists. This 20 user limit is on the line between a bug and a
feature but it is how it is currently working so we should document
that. We have plans to increase this limit and it has been documented
here: https://meta.discourse.org/t/296485

This PR is a no-op and only changes the tests.

Co-authored-by: brrusselburg <25828824+brrusselburg@users.noreply.github.com>
2024-12-10 08:55:29 -07:00
..
admin_notice_fabricator.rb
allowed_pm_users.rb
api_key_fabricator.rb
associated_group_fabricator.rb
badge_fabricator.rb
bookmark_fabricator.rb
category_fabricator.rb
category_group_fabricator.rb
category_moderation_group_fabricator.rb
color_scheme_color_fabricator.rb
color_scheme_fabricator.rb
custom_emoji_fabricator.rb DEV: Convert admin emojis UI to new layout (#29615) 2024-11-11 15:04:15 +08:00
dimissed_topic_user.rb
do_not_disturb_fabricator.rb
email_change_request_fabricator.rb
email_log_fabricator.rb
email_token_fabricator.rb
embeddable_host_fabricator.rb
embeddable_host_tag_fabricator.rb
external_upload_stub_fabricator.rb
flag_fabricator.rb
flag_post_action_fabricator.rb
form_template_fabricator.rb
group_fabricator.rb
group_history_fabricator.rb
group_request_fabricator.rb
group_user_fabricator.rb
ignored_user_fabricator.rb
incoming_email_fabricator.rb
incoming_link_fabricator.rb
invite_fabricator.rb
invited_user_fabricator.rb
like_fabricator.rb
moved_post_fabricator.rb DEV: Create permanent version of moved_posts table from PostMover class (#29664) 2024-11-12 14:35:20 -06:00
muted_user.rb
notification_fabricator.rb
optimized_image_fabricator.rb
permalink_fabricator.rb
post_action_fabricator.rb
post_custom_field_fabricator.rb
post_detail_fabricator.rb
post_fabricator.rb
post_reply_key_fabricator.rb
post_revision_fabricator.rb
problem_check_tracker_fabricator.rb
published_page_fabricator.rb
push_subscription_fabricator.rb
redelivering_webhook_event_fabricator.rb
reviewable_claimed_topic_fabricator.rb
reviewable_fabricator.rb
reviewable_score_fabricator.rb
screened_email_fabricator.rb
screened_ip_address_fabricator.rb
screened_url_fabricator.rb
search_log_fabricator.rb
shared_draft_fabricator.rb
sidebar_section_fabricator.rb
sidebar_section_link_fabricator.rb
sidebar_url_fabricator.rb
single_sign_on_record_fabricator.rb
skipped_email_log_fabricator.rb
tag_fabricator.rb
tag_group_fabricator.rb
tag_group_permission_fabricator.rb
tag_user_fabricator.rb
theme_fabricator.rb FIX: Hide broken theme about/license URLs (#29930) 2024-11-26 13:53:10 +10:00
theme_field_fabricator.rb
theme_settings_migration_fabricator.rb
topic_allowed_group_fabricator.rb
topic_allowed_user_fabricator.rb
topic_embed_fabricator.rb
topic_fabricator.rb
topic_tag_fabricator.rb
topic_timer_fabricator.rb
topic_user_fabricator.rb
topic_view_stat_fabricator.rb
translation_override_fabricator.rb
upload_fabricator.rb
user_action_fabricator.rb
user_api_key_fabricator.rb Require permitted scopes when registering a client (#29718) 2024-11-19 15:28:04 -05:00
user_associated_account_fabricator.rb
user_avatar_fabricator.rb
user_badge_fabricator.rb
user_custom_field_fabricator.rb
user_email_fabricator.rb
user_fabricator.rb DEV: Fix specs for directory items controller (#30160) 2024-12-10 08:55:29 -07:00
user_field_fabricator.rb
user_field_option_fabricator.rb.rb
user_history_fabricator.rb
user_option_fabricator.rb
user_password_fabricator.rb DEV: Migrate user passwords data to UserPassword table (#28746) 2024-10-10 09:23:06 +08:00
user_profile_fabricator.rb
user_second_factor_fabricator.rb
user_security_key_fabricator.rb
user_status_fabricator.rb
watched_word_fabricator.rb
watched_word_group_fabricator.rb
web_crawler_request_fabricator.rb
web_hook_event_fabricator.rb
web_hook_fabricator.rb