2016-05-06 00:49:12 +08:00
|
|
|
import { acceptance } from "helpers/qunit-helpers";
|
|
|
|
acceptance("Topic Discovery - Mobile", { mobileView: true });
|
|
|
|
|
2017-06-15 01:57:58 +08:00
|
|
|
QUnit.test("Visit Discovery Pages", assert => {
|
2016-05-06 00:49:12 +08:00
|
|
|
visit("/");
|
|
|
|
andThen(() => {
|
2017-06-15 01:57:58 +08:00
|
|
|
assert.ok(exists(".topic-list"), "The list of topics was rendered");
|
|
|
|
assert.ok(exists('.topic-list .topic-list-item'), "has topics");
|
2016-05-06 00:49:12 +08:00
|
|
|
});
|
|
|
|
|
|
|
|
visit("/categories");
|
|
|
|
andThen(() => {
|
2017-06-15 01:57:58 +08:00
|
|
|
assert.ok(exists('.category'), "has a list of categories");
|
2016-05-06 00:49:12 +08:00
|
|
|
});
|
2017-06-15 01:57:58 +08:00
|
|
|
});
|