mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-01 11:28:15 -05:00
25 lines
655 B
JavaScript
25 lines
655 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("/category/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");
|
|
});
|
|
});
|