mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 17:15:32 +08:00
26 lines
427 B
JavaScript
26 lines
427 B
JavaScript
integration("List Topics");
|
|
|
|
test("Default List", function() {
|
|
|
|
visit("/").then(function() {
|
|
expect(2);
|
|
|
|
ok(exists("#topic-list"), "The list of topics was rendered");
|
|
ok(exists('#topic-list .topic-list-item'), "has topics");
|
|
});
|
|
|
|
});
|
|
|
|
test("Categories List", function() {
|
|
|
|
visit("/categories").then(function() {
|
|
expect(1);
|
|
|
|
ok(exists('.category-list-item'), "has a list of categories");
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|