mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-18 03:25:31 -05:00
4981525047
- Upgrades Ember to latest - Fixes a bunch of bugs with page titles and missing "active" states
30 lines
648 B
JavaScript
30 lines
648 B
JavaScript
integration("Discover Topics");
|
|
|
|
test("Default List", function() {
|
|
expect(2);
|
|
|
|
visit("/").then(function() {
|
|
ok(exists("#topic-list"), "The list of topics was rendered");
|
|
ok(exists('#topic-list .topic-list-item'), "has topics");
|
|
});
|
|
});
|
|
|
|
test("List one Category", function() {
|
|
expect(2);
|
|
|
|
visit("/category/bug").then(function() {
|
|
ok(exists("#topic-list"), "The list of topics was rendered");
|
|
ok(exists('#topic-list .topic-list-item'), "has topics");
|
|
});
|
|
});
|
|
|
|
test("Categories List", function() {
|
|
expect(1);
|
|
|
|
visit("/categories").then(function() {
|
|
ok(exists('.category'), "has a list of categories");
|
|
});
|
|
});
|
|
|
|
|
|
|