mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: Shared Drafts
This feature can be enabled by choosing a destination for the `shared drafts category` site setting. * Staff members can create shared drafts, choosing a destination category for the topic when it is published. * Shared Drafts can be viewed in their category, or above the topic list for the destination category where it will end up. * When the shared draft is ready, it can be published to the appropriate category by clicking a button on the topic view. * When published, Drafts change their timestamps to the current time, and any edits to the original post are removed.
This commit is contained in:
19
test/javascripts/acceptance/shared-drafts-test.js.es6
Normal file
19
test/javascripts/acceptance/shared-drafts-test.js.es6
Normal file
@@ -0,0 +1,19 @@
|
||||
import { acceptance } from "helpers/qunit-helpers";
|
||||
|
||||
acceptance("Shared Drafts", { loggedIn: true });
|
||||
|
||||
QUnit.test('Viewing', assert => {
|
||||
visit("/t/some-topic/9");
|
||||
andThen(() => {
|
||||
assert.ok(find('.shared-draft-controls').length === 1);
|
||||
let categoryChooser = selectKit('.shared-draft-controls .category-chooser');
|
||||
assert.equal(categoryChooser.header().value(), '3');
|
||||
});
|
||||
|
||||
click('.publish-shared-draft');
|
||||
click('.bootbox .btn-primary');
|
||||
|
||||
andThen(() => {
|
||||
assert.ok(find('.shared-draft-controls').length === 0);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user