mirror of
https://github.com/discourse/discourse.git
synced 2025-05-29 11:48:08 +08:00
Category List and Topic View Integration Test
This commit is contained in:
@ -1,14 +1,25 @@
|
||||
integration("List Topics");
|
||||
|
||||
test("/", function() {
|
||||
test("Default List", function() {
|
||||
|
||||
visit("/").then(function() {
|
||||
expect(2);
|
||||
|
||||
ok(exists("#topic-list"), "The list of topics was rendered");
|
||||
ok(count('#topic-list .topic-list-item') > 0, "has topics");
|
||||
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");
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user