Can add topic templates to categories, prepopulated on compose

This commit is contained in:
Robin Ward
2015-07-02 16:18:59 -04:00
parent 84a1acb2ec
commit 7676c5dfe7
15 changed files with 86 additions and 7 deletions

View File

@@ -27,3 +27,16 @@ test("Change the category color", (assert) => {
assert.equal(Discourse.URL.redirectedTo, '/c/bug', 'it does one of the rare full page redirects');
});
});
test("Change the topic template", (assert) => {
visit("/c/bug");
click('.edit-category');
click('.edit-category-topic-template');
fillIn('#wmd-input', 'this is the new topic template');
click('#save-category');
andThen(() => {
assert.ok(!visible('#discourse-modal'), 'it closes the modal');
assert.equal(Discourse.URL.redirectedTo, '/c/bug', 'it does one of the rare full page redirects');
});
});