mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 03:36:18 +08:00
TESTS: Add integration test for /top
This commit is contained in:
@ -1,8 +1,6 @@
|
||||
integration("Topic Discovery");
|
||||
|
||||
test("Visit Discovery Pages", function() {
|
||||
expect(5);
|
||||
|
||||
visit("/");
|
||||
andThen(function() {
|
||||
ok(exists(".topic-list"), "The list of topics was rendered");
|
||||
@ -19,4 +17,9 @@ test("Visit Discovery Pages", function() {
|
||||
andThen(function() {
|
||||
ok(exists('.category'), "has a list of categories");
|
||||
});
|
||||
|
||||
visit("/top");
|
||||
andThen(function() {
|
||||
ok(exists('.topic-list .topic-list-item'), "has topics");
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user