0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-07 13:19:19 +08:00
discourse/spec/system/composer
Renato Atilio 3949bd4df9
FIX: Don't rewrite the composer value when opening the rich editor (#42365)
Hashtags, mentions and oneboxes resolve asynchronously, and their
transactions were dispatched as if the user had made an edit. Since
serializing rewrites the whole document, opening a post with a valid
hashtag, an invalid mention or a onebox committed round-trip differences
from anywhere in it: the composer went dirty untouched, a draft was
saved, and saving produced a revision of pure normalization.

None of these are edits the user made or can undo, so they now dispatch
with `addToHistory: false`, which the editor already treats as "not the
user's content" and skips the serialization for. A onebox preview no
longer normalizes the whitespace around the URL it replaces, which cooks
the same either way.
2026-08-05 15:27:05 -03:00
..
category_templates_spec.rb DEV: Enable Rails/FilePath rubocop rule (#40097) 2026-05-19 19:07:54 +02:00
default_to_subcategory_spec.rb UX: Composer redesign (#41781) 2026-07-20 17:56:48 +10:00
dont_feed_the_trolls_popup_spec.rb DEV: Fix (again) composer body test flakes (#39578) 2026-04-27 12:48:17 +02:00
drafts_spec.rb FEATURE: Change default upcoming change promotion status to Beta (#41275) 2026-07-06 09:13:37 +10:00
enqueued_post_draft_spec.rb
form_template_tag_chooser_spec.rb FIX: Form template tag-chooser dropping uppercase tag selections (#40379) 2026-05-29 07:52:11 +02:00
post_validation_spec.rb
prosemirror_autocomplete_spec.rb FIX: Don't lose focus when pressing key up and -down in composer emoji picker (#40052) 2026-06-05 11:05:11 -05:00
prosemirror_code_spec.rb DEV: Restore two prosemirror specs (#39637) 2026-04-29 15:34:19 +02:00
prosemirror_container_spec.rb DEV: Remove rich_editor site setting (#41873) 2026-07-23 19:49:20 -03:00
prosemirror_images_spec.rb UX: Dismiss alt text input when clicking image instead of opening lightbox (#40777) 2026-06-11 08:05:05 -03:00
prosemirror_input_rules_spec.rb UX: Disable typographer replacements in the rich editor (#40550) 2026-06-09 16:58:11 -03:00
prosemirror_keymap_spec.rb DEV: Add SystemHelpers::LINE_START_KEY (#39498) 2026-04-23 20:48:54 +02:00
prosemirror_links_spec.rb FIX: preserve selection formatting in link-insertion modal (#39374) 2026-05-20 11:22:35 +02:00
prosemirror_onebox_spec.rb FIX: Don't rewrite the composer value when opening the rich editor (#42365) 2026-08-05 15:27:05 -03:00
prosemirror_onebox_toolbar_spec.rb DEV: remove flaky rich editor onebox test (#39278) 2026-04-15 01:05:29 -03:00
prosemirror_pasting_spec.rb FIX: Strip lang from pasted spans (#42163) 2026-08-04 14:03:19 -03:00
prosemirror_quotes_spec.rb DEV: Restore and fix prosemirror specs (#39502) 2026-04-24 15:11:45 +02:00
prosemirror_toolbar_spec.rb FEATURE: Add a small text option to the composer text sizes toolbar button (#42020) 2026-08-03 11:28:59 +02:00
prosemirror_uploads_spec.rb UX: better rich editor placeholder for non-image and image uploads (#39102) 2026-05-20 16:48:51 -03:00
prosemirror_watched_words_spec.rb
prosemirror_wrap_spec.rb
redesign_spec.rb UX: UC:composer redesign > hide toolbar toggle (#42159) 2026-07-30 14:24:05 +02:00
review_media_unless_trust_level_spec.rb
template_validation_spec.rb