discourse/test/javascripts/integration/topic-discovery-test.js.es6
Robin Ward d2ac5a9ac6 Rename /category/xyz paths to /c/xyz -- @SamSaffron did most of the
work even though I'm merging the patch!
2014-10-16 12:15:31 -04:00

25 lines
648 B
JavaScript

integration("Topic Discovery");
test("Visit Discovery Pages", function() {
visit("/");
andThen(function() {
ok(exists(".topic-list"), "The list of topics was rendered");
ok(exists('.topic-list .topic-list-item'), "has topics");
});
visit("/c/bug");
andThen(function() {
ok(exists(".topic-list"), "The list of topics was rendered");
ok(exists('.topic-list .topic-list-item'), "has topics");
});
visit("/categories");
andThen(function() {
ok(exists('.category'), "has a list of categories");
});
visit("/top");
andThen(function() {
ok(exists('.topic-list .topic-list-item'), "has topics");
});
});