FIX: Incorrect membership action buttons shown for non logged in users.

This commit is contained in:
Guo Xiang Tan
2016-12-29 12:51:36 +08:00
parent 3c4920d234
commit a481bf048f
6 changed files with 32 additions and 7 deletions

View File

@ -6,7 +6,9 @@ test("Browsing Groups", () => {
visit("/groups");
andThen(() => {
equal(count('.groups-table-row'), 18, 'it displays visible groups');
equal(count('.groups-table-row'), 2, 'it displays visible groups');
equal(find('.group-index-join').length, 1, 'it show button to join group');
equal(find('.group-index-request').length, 1, 'it show button to request for group membership');
});
click("a[href='/groups/discourse/members']");