We used many global functions to handle tests when they should be imported like other libraries in our application. This also gets us closer to the way Ember CLI prefers our tests to be laid out.
13 lines
436 B
JavaScript
13 lines
436 B
JavaScript
import { test } from "qunit";
|
|
import { acceptance } from "discourse/tests/helpers/qunit-helpers";
|
|
acceptance("About");
|
|
|
|
test("viewing", async (assert) => {
|
|
await visit("/about");
|
|
|
|
assert.ok($("body.about-page").length, "has body class");
|
|
assert.ok(exists(".about.admins .user-info"), "has admins");
|
|
assert.ok(exists(".about.moderators .user-info"), "has moderators");
|
|
assert.ok(exists(".about.stats tr td"), "has stats");
|
|
});
|