mirror of
https://github.com/discourse/discourse.git
synced 2024-12-16 22:53:50 +08:00
15 lines
459 B
JavaScript
15 lines
459 B
JavaScript
import { acceptance } from "helpers/qunit-helpers";
|
|
acceptance("Topic Discovery - Mobile", { mobileView: true });
|
|
|
|
QUnit.test("Visit Discovery Pages", assert => {
|
|
visit("/");
|
|
andThen(() => {
|
|
assert.ok(exists(".topic-list"), "The list of topics was rendered");
|
|
assert.ok(exists('.topic-list .topic-list-item'), "has topics");
|
|
});
|
|
|
|
visit("/categories");
|
|
andThen(() => {
|
|
assert.ok(exists('.category'), "has a list of categories");
|
|
});
|
|
}); |