mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Rename all test files from JS -> ES6
This commit is contained in:
16
test/javascripts/acceptance/shared-drafts-test.js
Normal file
16
test/javascripts/acceptance/shared-drafts-test.js
Normal file
@@ -0,0 +1,16 @@
|
||||
import selectKit from "helpers/select-kit-helper";
|
||||
import { acceptance } from "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);
|
||||
});
|
||||
Reference in New Issue
Block a user