discourse/test/javascripts/acceptance/user-drafts-stream-test.js.es6

15 lines
433 B
Plaintext
Raw Normal View History

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");
2019-01-28 22:47:11 -05:00
assert.ok(
find(".user-stream-item").length === 2,
"draft removed, list length diminished by one"
);
});