FIX: Groups post page was broken.
Also added integration tests so we don't miss this breaking in the future.
This commit is contained in:
parent
848d60d459
commit
2ea4c1c9de
|
@ -32,7 +32,7 @@ export function categoryBadgeHTML(category, opts) {
|
|||
|
||||
var html = "";
|
||||
|
||||
var parentCat = Discourse.Category.findById(category.get('parent_category_id'));
|
||||
var parentCat = Discourse.Category.findById(get(category, 'parent_category_id'));
|
||||
if (opts.hideParent) { parentCat = null; }
|
||||
html += categoryStripe(tagName, parentCat, extraClasses, href);
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<th colspan="3" class="seen">{{i18n 'last_seen'}}</th>
|
||||
</tr>
|
||||
{{#each m in members}}
|
||||
<tr>
|
||||
<tr>
|
||||
<td class='avatar'>
|
||||
{{avatar m imageSize="large"}}
|
||||
</td>
|
||||
|
@ -16,7 +16,6 @@
|
|||
<span class='last-seen-at'>{{bound-date m.last_seen_at}}</span>
|
||||
</td>
|
||||
</tr>
|
||||
</div>
|
||||
{{/each}}
|
||||
</table>
|
||||
{{/if}}
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,12 @@
|
|||
integration("Groups");
|
||||
|
||||
test("Browsing Groups", function() {
|
||||
visit("/groups/discourse");
|
||||
andThen(function() {
|
||||
ok(count('.user-stream .item') > 0, "it has stream items");
|
||||
});
|
||||
visit("/groups/discourse/members");
|
||||
andThen(function() {
|
||||
ok(count('.group-members tr') > 0, "it lists group members");
|
||||
});
|
||||
});
|
Loading…
Reference in New Issue