discourse/test/javascripts/integration/topic-discovery-test.js.es6

23 lines
560 B
Text
Raw Normal View History

2014-07-30 13:27:14 -04:00
integration("Topic Discovery");
2014-07-30 13:27:14 -04:00
test("Visit Discovery Pages", function() {
expect(5);
2014-07-30 13:27:14 -04:00
visit("/");
andThen(function() {
ok(exists(".topic-list"), "The list of topics was rendered");
ok(exists('.topic-list .topic-list-item'), "has topics");
});
2014-07-30 13:27:14 -04:00
visit("/category/bug");
andThen(function() {
ok(exists(".topic-list"), "The list of topics was rendered");
ok(exists('.topic-list .topic-list-item'), "has topics");
});
2014-07-30 13:27:14 -04:00
visit("/categories");
andThen(function() {
ok(exists('.category'), "has a list of categories");
});
});