2014-01-14 12:48:57 -05:00
|
|
|
integration("Discover Topics");
|
2013-06-13 15:08:42 -04:00
|
|
|
|
2013-06-20 15:02:02 -04:00
|
|
|
test("Default List", function() {
|
2013-07-04 16:19:59 -04:00
|
|
|
expect(2);
|
2013-06-13 15:08:42 -04:00
|
|
|
|
|
|
|
visit("/").then(function() {
|
|
|
|
ok(exists("#topic-list"), "The list of topics was rendered");
|
2013-06-20 15:02:02 -04:00
|
|
|
ok(exists('#topic-list .topic-list-item'), "has topics");
|
2013-06-13 15:08:42 -04:00
|
|
|
});
|
2013-07-04 16:19:59 -04:00
|
|
|
});
|
2013-06-13 15:08:42 -04:00
|
|
|
|
2013-07-04 16:19:59 -04:00
|
|
|
test("List one Category", function() {
|
|
|
|
expect(2);
|
|
|
|
|
|
|
|
visit("/category/bug").then(function() {
|
|
|
|
ok(exists("#topic-list"), "The list of topics was rendered");
|
|
|
|
ok(exists('#topic-list .topic-list-item'), "has topics");
|
|
|
|
});
|
2013-06-13 15:08:42 -04:00
|
|
|
});
|
|
|
|
|
2013-06-20 15:02:02 -04:00
|
|
|
test("Categories List", function() {
|
2013-07-04 16:19:59 -04:00
|
|
|
expect(1);
|
2013-06-20 15:02:02 -04:00
|
|
|
|
|
|
|
visit("/categories").then(function() {
|
2013-12-11 15:23:41 -05:00
|
|
|
ok(exists('.category'), "has a list of categories");
|
2013-06-20 15:02:02 -04:00
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
2013-06-13 15:08:42 -04:00
|
|
|
|