0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-09 21:45:25 +08:00
discourse/spec/support
Alan Guo Xiang Tan 9e2a10b427
DEV: Add image-processing regression coverage (#42117)
Previously, important image-processing behavior lacked precise
regression coverage, making image-library upgrades difficult to assess
safely.

This change adds coverage without changing production behavior:

- Exercises public upload and image-model outcomes for SVG sanitization,
format detection and conversion, transparency, animation metadata, EXIF
orientation normalization, malformed input rejection, crop positioning,
tiny-image resizing, dominant-color caching, and image-quality
selection.
- Keeps normal LetterAvatar RSpec coverage portable by generating one
representative PNG and checking its format and requested dimensions.
- Adds a separate Linux-only `script/letter_avatar_pixel_diff` workflow
that compares A–Z renders with committed baselines and generates an HTML
expected/actual/highlighted-diff report. Use `--update-baselines` when
intentionally accepting rendering changes.
- Uses deterministic fixtures with regeneration guidance beside the
relevant specs.
2026-07-30 15:28:07 +08:00
..
locales DEV: Upgrade Rails to version 7.1 2024-07-04 10:58:21 +02:00
matchers FIX: Upcoming change problem check not respecting should_display? (#41955) 2026-07-23 10:22:00 +10:00
shared_contexts UX: better rich editor placeholder for non-image and image uploads (#39102) 2026-05-20 16:48:51 -03:00
shared_examples FEATURE: Change default upcoming change promotion status to Beta (#41275) 2026-07-06 09:13:37 +10:00
system DEV: Enable Playwright soft reset by default in system tests (#41895) 2026-07-22 13:44:12 +08:00
auth_helpers.rb DEV: Finish extracting rails spec helpers (#40552) 2026-06-04 14:11:14 +02:00
backups_helpers.rb DEV: Add backup helpers for specs (#28394) 2024-08-16 14:51:57 +10:00
bookmarkable_helper.rb DEV: Change Bookmarkable registration to DiscoursePluginRegistry (#20556) 2023-03-08 10:39:12 +10:00
ci.rb DEV: Extract more concerns from rails_helper to own files (#40536) 2026-06-03 15:20:36 +02:00
concurrency.rb DEV: Fix various rubocop lints (#24749) 2023-12-06 23:25:00 +01:00
diagnostics_helper.rb DEV: track client ids published to message bus (#32878) 2025-05-23 14:23:50 +10:00
discourse_connect_support_helpers.rb DEV: Finish extracting rails spec helpers (#40552) 2026-06-04 14:11:14 +02:00
discourse_event_helper.rb DEV: Extract some concerns from rails_helper to own files (#40505) 2026-06-03 11:37:37 +02:00
fake_bookmark_hashtag_data_source.rb DEV: Introduce enabled? API to hashtag data sources (#22632) 2023-07-18 09:39:01 +10:00
fake_logger.rb FEATURE: Automatic promotion of upcoming changes (#36211) 2025-12-08 15:49:34 +10:00
fake_s3.rb DEV: Enable Style/RedundantSelf rubocop rule (#40098) 2026-05-19 19:27:45 +02:00
fast_image_helpers.rb FIX: remove 'crawl_images' site setting (#14646) 2021-10-19 17:12:29 +05:30
final_destination_helper.rb Revert "DEV: Allow webmock to intercept FinalDestination::HTTP requests (#20575)" (#20576) 2023-03-08 11:26:32 +08:00
fixture_helpers.rb DEV: Extract more concerns from rails_helper to own files (#40536) 2026-06-03 15:20:36 +02:00
helpers.rb DEV: Finish extracting rails spec helpers (#40552) 2026-06-04 14:11:14 +02:00
i18n_helpers.rb DEV: Upgrade Rails to version 7.1 2024-07-04 10:58:21 +02:00
image_orientation_helpers.rb DEV: Add image-processing regression coverage (#42117) 2026-07-30 15:28:07 +08:00
integration_helpers.rb DEV: Finish renaming secure_session to server_session 2025-09-23 10:35:02 +02:00
logging_helpers.rb DEV: Finish extracting rails spec helpers (#40552) 2026-06-04 14:11:14 +02:00
message_bus_test_sync.rb DEV: Consistently wait for message_bus in system specs (#40076) 2026-06-02 22:06:20 +02:00
method_profiler_itemizer.rb DEV: Add per-test SQL/Redis/network capture RSpec formatter (#40632) 2026-06-16 09:47:54 +08:00
minio.rb DEV: Extract more concerns from rails_helper to own files (#40536) 2026-06-03 15:20:36 +02:00
mock_git_importer.rb FEATURE: Show theme d-compat/* refs in admin UI (#40649) 2026-06-17 22:13:45 +01:00
mocks.rb DEV: Extract more concerns from rails_helper to own files (#40536) 2026-06-03 15:20:36 +02:00
multisite_helpers.rb DEV: Extract some concerns from rails_helper to own files (#40505) 2026-06-03 11:37:37 +02:00
nested_replies_helpers.rb FEATURE: First iteration of nested replies (#38888) 2026-04-16 08:06:44 -05:00
omniauth_helpers.rb DEV: More system specs for signup/login (#27150) 2024-05-23 10:01:05 -03:00
onebox_helpers.rb DEV: Introduce core features system specs for plugins 2025-03-27 12:12:01 +01:00
perf_capture.rb DEV: Add per-test SQL/Redis/network capture RSpec formatter (#40632) 2026-06-16 09:47:54 +08:00
prefabrication.rb DEV: Finish extracting rails spec helpers (#40552) 2026-06-04 14:11:14 +02:00
rspec_performance_formatter.rb DEV: Add per-test SQL/Redis/network capture RSpec formatter (#40632) 2026-06-16 09:47:54 +08:00
sample_plugin_site_settings.yml FIX: type: objects uploads should be stored as IDs (#40178) 2026-05-21 13:45:27 -03:00
server_error_tracking.rb DEV: Extract some concerns from rails_helper to own files (#40505) 2026-06-03 11:37:37 +02:00
sidekiq_helpers.rb FIX: send email to normalized email owner when hiding emails (#23524) 2023-09-12 11:06:35 +10:00
site_settings_helpers.rb DEV: Fix a state leak in specs (#40658) 2026-06-08 23:57:44 +02:00
site_settings_provider.rb DEV: Finish extracting rails spec helpers (#40552) 2026-06-04 14:11:14 +02:00
suite_setup.rb DEV: Finish extracting rails spec helpers (#40552) 2026-06-04 14:11:14 +02:00
system_helpers.rb DEV: Use none persistent sessions in system tests (#41685) 2026-07-14 06:44:47 +08:00
test_second_factor_action.rb DEV: Apply syntax_tree formatting to spec/* 2023-01-09 11:49:28 +00:00
test_setup.rb DEV: Reset test site settings without callbacks (#41960) 2026-07-23 14:10:50 +08:00
theme_screenshot_marker.rb DEV: Add theme screenshots system spec and skill (#39426) 2026-05-05 09:36:29 -04:00
time_helpers.rb DEV: Finish extracting rails spec helpers (#40552) 2026-06-04 14:11:14 +02:00
topic_guardian_can_see_consistency_check.rb DEV: Enable Style/RedundantSelf rubocop rule (#40098) 2026-05-19 19:27:45 +02:00
uploads_helpers.rb DEV: Refactor test-specific setting overrides into rails_helper.rb (#35594) 2025-10-27 10:14:56 +00:00
user_api_key_device_auth_spec_helpers.rb FEATURE: User API key device authorization flow (#40189) 2026-06-10 16:09:44 -04:00
webauthn_integration_helpers.rb DEV: Refactor webauthn to support passkeys (1/3) (#23586) 2023-10-03 14:59:28 -04:00