mirror of
https://github.com/discourse/discourse.git
synced 2025-06-01 04:19:01 +08:00
TRIVIAL: use class instead of id for the 'topic-list'
This commit is contained in:
@ -35,7 +35,7 @@ module("Discourse.KeyboardShortcuts", {
|
||||
" <li data-id='3'><a></a></li>",
|
||||
" </ul>",
|
||||
"</div>",
|
||||
"<table id='topic-list'>",
|
||||
"<table class='topic-list'>",
|
||||
" <tr class='topic-list-item selected'><td>",
|
||||
" <a class='title'></a>",
|
||||
" </td></tr>",
|
||||
|
@ -4,8 +4,8 @@ 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");
|
||||
ok(exists(".topic-list"), "The list of topics was rendered");
|
||||
ok(exists('.topic-list .topic-list-item'), "has topics");
|
||||
});
|
||||
});
|
||||
|
||||
@ -13,8 +13,8 @@ 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");
|
||||
ok(exists(".topic-list"), "The list of topics was rendered");
|
||||
ok(exists('.topic-list .topic-list-item'), "has topics");
|
||||
});
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user