mirror of
https://github.com/discourse/discourse.git
synced 2025-06-24 02:31:31 +08:00
Revert "Rename all test files from JS -> ES6"
This reverts commit 2abe85b8344de1102c1589a9ac9421a8b296f2b5.
This commit is contained in:
@ -1,27 +0,0 @@
|
||||
import { acceptance } from "helpers/qunit-helpers";
|
||||
|
||||
acceptance("User Drafts", { loggedIn: true });
|
||||
|
||||
QUnit.test("Stream", async assert => {
|
||||
await visit("/u/eviltrout/activity/drafts");
|
||||
assert.ok(find(".user-stream-item").length === 3, "has drafts");
|
||||
|
||||
await click(".user-stream-item:last-child .remove-draft");
|
||||
assert.ok(
|
||||
find(".user-stream-item").length === 2,
|
||||
"draft removed, list length diminished by one"
|
||||
);
|
||||
});
|
||||
|
||||
QUnit.test("Stream - resume draft", async assert => {
|
||||
await visit("/u/eviltrout/activity/drafts");
|
||||
assert.ok(find(".user-stream-item").length > 0, "has drafts");
|
||||
|
||||
await click(".user-stream-item .resume-draft");
|
||||
assert.equal(
|
||||
find(".d-editor-input")
|
||||
.val()
|
||||
.trim(),
|
||||
"A fun new topic for testing drafts."
|
||||
);
|
||||
});
|
Reference in New Issue
Block a user