mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 21:03:46 +08:00
23 lines
560 B
JavaScript
23 lines
560 B
JavaScript
integration("Topic Discovery");
|
|
|
|
test("Visit Discovery Pages", function() {
|
|
expect(5);
|
|
|
|
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");
|
|
});
|
|
});
|