discourse/test/javascripts/acceptance/mobile-discovery-test.js.es6

15 lines
459 B
Plaintext
Raw Normal View History

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