mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-18 11:32:24 -05:00
d2ac5a9ac6
work even though I'm merging the patch!
25 lines
648 B
JavaScript
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");
|
|
});
|
|
});
|