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
466 B
JavaScript
13 lines
466 B
JavaScript
import { test } from "qunit";
|
|
import { acceptance } from "discourse/tests/helpers/qunit-helpers";
|
|
acceptance("Topic Discovery - Mobile", { mobileView: true });
|
|
|
|
test("Visit Discovery Pages", async (assert) => {
|
|
await visit("/");
|
|
assert.ok(exists(".topic-list"), "The list of topics was rendered");
|
|
assert.ok(exists(".topic-list .topic-list-item"), "has topics");
|
|
|
|
await visit("/categories");
|
|
assert.ok(exists(".category"), "has a list of categories");
|
|
});
|