mirror of
https://github.com/discourse/discourse.git
synced 2024-12-30 20:05:02 +08:00
9bdd97db42
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
|
||
---|---|---|
.. | ||
category_templates_spec.rb | ||
default_to_subcategory_spec.rb | ||
discard_draft_spec.rb | ||
dont_feed_the_trolls_popup_spec.rb | ||
morphed_preview_spec.rb | ||
post_validation_spec.rb | ||
review_media_unless_trust_level_spec.rb | ||
template_validation_spec.rb |