This is where they should be as far as ember is concerned. Note this is a huge commit and we should be really careful everything continues to work properly.
17 lines
598 B
JavaScript
17 lines
598 B
JavaScript
import selectKit from "discourse/tests/helpers/select-kit-helper";
|
|
import { acceptance } from "discourse/tests/helpers/qunit-helpers";
|
|
|
|
acceptance("Shared Drafts", { loggedIn: true });
|
|
|
|
QUnit.test("Viewing", async (assert) => {
|
|
await visit("/t/some-topic/9");
|
|
assert.ok(find(".shared-draft-controls").length === 1);
|
|
let categoryChooser = selectKit(".shared-draft-controls .category-chooser");
|
|
assert.equal(categoryChooser.header().value(), "3");
|
|
|
|
await click(".publish-shared-draft");
|
|
await click(".bootbox .btn-primary");
|
|
|
|
assert.ok(find(".shared-draft-controls").length === 0);
|
|
});
|