discourse/spec/system/page_objects
Martin Brennan bef35e2cd4
FIX: Handle cancel action in topic reply choice dialog (#35534)
Steps to reproduce:

* Start drafting a reply to a topic
* Write some text.
* Navigate to a different topic while keeping the draft open
* Click reply on the composer and choose cancel in the modal asking
which topic you want to reply to.
* Write some more text.
* Copy the text you have written or memorize your input.
* Reload the page/ close the composer.
* Navigate back to the topic you replied to
* Open your draft.
* Everything written after clicking cancel is missing.

This was happening because we weren't doing anything on Cancel for
the topic reply choice dialog, and we were doing `disableDrafts` before
opening the dialog, so drafts never resumed.

The fix is to just save the current draft on cancel then turn on
draft saving again so the user can continue typing and delay the
question about "Which topic do you want to reply to?" until later.

c.f.
https://meta.discourse.org/t/draft-is-no-longer-automatically-saved-after-you-cancel-replying/386370

Also rename TopicLabelContent to TopicReplyChoiceDialog, it
is more specific and reflects what the component actually does.
2025-10-22 14:42:57 +10:00
..
components FIX: Handle cancel action in topic reply choice dialog (#35534) 2025-10-22 14:42:57 +10:00
modals UX: Simplify Composer Discard confirmation dialog: removes Safe draft button (#35298) 2025-10-10 14:07:34 +08:00
pages FIX: Persist reviewable notes when toggle tabs (#35495) 2025-10-21 10:23:41 +08:00
cdp.rb DEV: Add client settled checks for system tests (#35230) 2025-10-10 11:03:18 +08:00