2014-07-30 13:27:14 -04:00
|
|
|
integration("Topic Discovery");
|
2013-06-13 15:08:42 -04:00
|
|
|
|
2014-07-30 13:27:14 -04:00
|
|
|
test("Visit Discovery Pages", function() {
|
|
|
|
expect(5);
|
2013-06-13 15:08:42 -04:00
|
|
|
|
2014-07-30 13:27:14 -04:00
|
|
|
visit("/");
|
|
|
|
andThen(function() {
|
2014-07-29 17:38:36 -04:00
|
|
|
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-07-04 16:19:59 -04:00
|
|
|
|
2014-07-30 13:27:14 -04:00
|
|
|
visit("/category/bug");
|
|
|
|
andThen(function() {
|
2014-07-29 17:38:36 -04:00
|
|
|
ok(exists(".topic-list"), "The list of topics was rendered");
|
|
|
|
ok(exists('.topic-list .topic-list-item'), "has topics");
|
2013-07-04 16:19:59 -04:00
|
|
|
});
|
2013-06-20 15:02:02 -04:00
|
|
|
|
2014-07-30 13:27:14 -04:00
|
|
|
visit("/categories");
|
|
|
|
andThen(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
|
|
|
});
|
|
|
|
});
|