0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-04 10:39:43 +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
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
bookmarkable_helper.rb
ci.rb DEV: Extract more concerns from rails_helper to own files (#40536) 2026-06-03 15:20:36 +02:00
concurrency.rb
diagnostics_helper.rb
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
fake_logger.rb
fake_s3.rb DEV: Enable Style/RedundantSelf rubocop rule (#40098) 2026-05-19 19:27:45 +02:00
fast_image_helpers.rb
final_destination_helper.rb
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
image_orientation_helpers.rb DEV: Add image-processing regression coverage (#42117) 2026-07-30 15:28:07 +08:00
integration_helpers.rb
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
onebox_helpers.rb
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
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
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
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