UX: Display group title if it exists.

This commit is contained in:
Guo Xiang Tan
2016-12-07 10:20:13 +08:00
parent a7ee72649d
commit 8c7a0b7684
5 changed files with 35 additions and 22 deletions

View File

@ -39,7 +39,9 @@ test("Admin Browsing Groups", () => {
visit("/groups/discourse");
andThen(() => {
ok($('.nav-stacked li').length === 5, 'it should show messages tab if user is admin');
ok(find('.nav-stacked li').length === 5, 'it should show messages tab if user is admin');
equal(find('.group-title').text(), 'Awesome Team', 'it should display the group title');
equal(find('.group-name').text(), '@discourse', 'it should display the group name');
});
click('.group-edit-btn');