mirror of
https://github.com/discourse/discourse.git
synced 2025-02-16 23:02:45 +08:00
FIX: Keep composer title and reply when switching to PM (#9851)
This commit is contained in:
parent
32d13ab97f
commit
e31adef32d
|
@ -328,6 +328,7 @@ export default DropdownSelectBoxComponent.extend({
|
|||
this.composerModel.getProperties(
|
||||
"draftKey",
|
||||
"draftSequence",
|
||||
"title",
|
||||
"reply",
|
||||
"disableScopedCategory"
|
||||
),
|
||||
|
|
|
@ -19,6 +19,24 @@ acceptance("Composer Actions", {
|
|||
}
|
||||
});
|
||||
|
||||
QUnit.test(
|
||||
"creating new topic and then reply_as_private_message keeps attributes",
|
||||
async assert => {
|
||||
await visit("/");
|
||||
await click("button#create-topic");
|
||||
|
||||
await fillIn("#reply-title", "this is the title");
|
||||
await fillIn(".d-editor-input", "this is the reply");
|
||||
|
||||
const composerActions = selectKit(".composer-actions");
|
||||
await composerActions.expand();
|
||||
await composerActions.selectRowByValue("reply_as_private_message");
|
||||
|
||||
assert.ok(find("#reply-title").val(), "this is the title");
|
||||
assert.ok(find(".d-editor-input").val(), "this is the reply");
|
||||
}
|
||||
);
|
||||
|
||||
QUnit.test("replying to post", async assert => {
|
||||
const composerActions = selectKit(".composer-actions");
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user