mirror of
https://github.com/discourse/discourse.git
synced 2026-08-04 10:39:43 +08:00
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. |
||
|---|---|---|
| .. | ||
| locales | ||
| matchers | ||
| shared_contexts | ||
| shared_examples | ||
| system | ||
| auth_helpers.rb | ||
| backups_helpers.rb | ||
| bookmarkable_helper.rb | ||
| ci.rb | ||
| concurrency.rb | ||
| diagnostics_helper.rb | ||
| discourse_connect_support_helpers.rb | ||
| discourse_event_helper.rb | ||
| fake_bookmark_hashtag_data_source.rb | ||
| fake_logger.rb | ||
| fake_s3.rb | ||
| fast_image_helpers.rb | ||
| final_destination_helper.rb | ||
| fixture_helpers.rb | ||
| helpers.rb | ||
| i18n_helpers.rb | ||
| image_orientation_helpers.rb | ||
| integration_helpers.rb | ||
| logging_helpers.rb | ||
| message_bus_test_sync.rb | ||
| method_profiler_itemizer.rb | ||
| minio.rb | ||
| mock_git_importer.rb | ||
| mocks.rb | ||
| multisite_helpers.rb | ||
| nested_replies_helpers.rb | ||
| omniauth_helpers.rb | ||
| onebox_helpers.rb | ||
| perf_capture.rb | ||
| prefabrication.rb | ||
| rspec_performance_formatter.rb | ||
| sample_plugin_site_settings.yml | ||
| server_error_tracking.rb | ||
| sidekiq_helpers.rb | ||
| site_settings_helpers.rb | ||
| site_settings_provider.rb | ||
| suite_setup.rb | ||
| system_helpers.rb | ||
| test_second_factor_action.rb | ||
| test_setup.rb | ||
| theme_screenshot_marker.rb | ||
| time_helpers.rb | ||
| topic_guardian_can_see_consistency_check.rb | ||
| uploads_helpers.rb | ||
| user_api_key_device_auth_spec_helpers.rb | ||
| webauthn_integration_helpers.rb | ||