discourse/spec/system/composer
Régis Hanol 9bdd97db42
FIX: editing post while replying (#29985)
BEFORE: if you click the "reply" button on a post and then decided that you want to "edit" the same post, clicking the "edit" button would do nothing. Clicking "edit" on another post works, but editing the same post would appear broken.

AFTER: if you click the "edit" button, it will properly load the content of the post you're trying to edit. No matter which one it is.

This was somewhat tricky to track down as the system specs seemed to contradict the qunit tests until I realized that the qunit tests were only testing the edit on the 1st post and the system specs were testing on replies.

I improved the qunit tests to test both editing OP and a reply and (hopefully) made the system specs a little bit clearer.

This is a follow up to bbe62d88d2.
2024-12-02 16:06:36 +01:00
..
category_templates_spec.rb DEV: Convert approve_unless_trust_level to groups (#24357) 2023-11-21 11:31:42 -07:00
default_to_subcategory_spec.rb DEV: Convert min_trust_to_create_topic to groups (#24740) 2023-12-13 14:50:13 +11:00
discard_draft_spec.rb FIX: editing post while replying (#29985) 2024-12-02 16:06:36 +01:00
dont_feed_the_trolls_popup_spec.rb DEV: move post flags into database (#27125) 2024-05-23 12:19:07 +10:00
morphed_preview_spec.rb DEV: refactor morphed preview specs 2024-04-10 10:36:20 +02:00
post_validation_spec.rb DEV: Automatically update groups for test users with explicit TL (#25415) 2024-01-29 17:52:02 +08:00
review_media_unless_trust_level_spec.rb DEV: Convert review_media_unless_trust_level to group-based setting (#25201) 2024-01-11 13:43:01 +10:00
template_validation_spec.rb DEV: Fix case inconsistency in translation file (#26456) 2024-04-02 14:39:46 +08:00